Skip to content

Commit

Permalink
Merge branch 'main' into ak/update-docs20241204
Browse files Browse the repository at this point in the history
  • Loading branch information
KuechA authored Jan 10, 2025
2 parents 4745790 + 63563d9 commit 557fc1b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cpg-neo4j/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import groovy.util.Node
import groovy.util.NodeList

/*
* Copyright (c) 2021, Fraunhofer AISEC. All rights reserved.
*
Expand Down Expand Up @@ -42,6 +45,17 @@ publishing {
artifactId = "cpg-neo4j"
name.set("Code Property Graph - Neo4j")
description.set("An Application to translate and persist specified source code as a Code Property Graph to an installed instance of the Neo4j Graph Database.")
withXml {
// Modify the XML to exclude dependencies that start with "cpg-language-".
// This is necessary because we do not want to "leak" the dependency to our dynamically activated
// frontends to the outside
var dependenciesNode = asNode().children().filterIsInstance<Node>().firstOrNull { true && it.name().toString() == "{http://maven.apache.org/POM/4.0.0}dependencies" }
dependenciesNode?.children()?.removeIf {
it is Node &&
(it.name().toString() == "{http://maven.apache.org/POM/4.0.0}dependency") &&
((it.get("artifactId") as? NodeList)?.text()?.startsWith("cpg-language-") == true)
}
}
}
}
}
Expand Down

0 comments on commit 557fc1b

Please sign in to comment.