Skip to content

Commit

Permalink
Adding C++ frontend as 'optional' integration test dependency to Neo4j (
Browse files Browse the repository at this point in the history
#1933)

* Adding C++ frontend as 'optional' integration test dependency to Neo4j

* Update cpg-neo4j/build.gradle.kts

Co-authored-by: Maximilian Kaul <maximilian.kaul@aisec.fraunhofer.de>

---------

Co-authored-by: Maximilian Kaul <maximilian.kaul@aisec.fraunhofer.de>
  • Loading branch information
oxisto and maximiliankaul authored Jan 14, 2025
1 parent 013f5e5 commit 80d8100
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpg-neo4j/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,11 @@ dependencies {
annotationProcessor(libs.picocli.codegen)

integrationTestImplementation(libs.kotlin.reflect)

// We depend on the C++ frontend for the integration tests, but the frontend is only available if enabled.
// If it's not available, the integration tests fail (which is ok). But if we would directly reference the
// project here, the build system would fail any task since it will not find a non-enabled project.
findProject(":cpg-language-cxx")?.also {
integrationTestImplementation(it)
}
}

0 comments on commit 80d8100

Please sign in to comment.