From 80d8100740e404ac4099d541cd0aa02e5a6088e6 Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Tue, 14 Jan 2025 17:40:58 +0100 Subject: [PATCH] Adding C++ frontend as 'optional' integration test dependency to Neo4j (#1933) * Adding C++ frontend as 'optional' integration test dependency to Neo4j * Update cpg-neo4j/build.gradle.kts Co-authored-by: Maximilian Kaul --------- Co-authored-by: Maximilian Kaul --- cpg-neo4j/build.gradle.kts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cpg-neo4j/build.gradle.kts b/cpg-neo4j/build.gradle.kts index 340ba8dfae..9a54068396 100644 --- a/cpg-neo4j/build.gradle.kts +++ b/cpg-neo4j/build.gradle.kts @@ -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) + } }