From ba71b8606bee2b2a73a710439a74748369eb86b0 Mon Sep 17 00:00:00 2001 From: Adel El-Beik Date: Tue, 23 Apr 2024 11:51:08 +0100 Subject: [PATCH] ENT-11802: Resolved messages regarding execution optimisations have been disabled. --- common/logging/build.gradle | 2 ++ node/capsule/build.gradle | 5 +++++ samples/simm-valuation-demo/contracts-states/build.gradle | 1 + testing/testserver/build.gradle | 3 +++ tools/bootstrapper/build.gradle | 2 ++ tools/explorer/build.gradle | 4 ++++ 6 files changed, 17 insertions(+) diff --git a/common/logging/build.gradle b/common/logging/build.gradle index 25dfeadcf2..b706a19432 100644 --- a/common/logging/build.gradle +++ b/common/logging/build.gradle @@ -31,6 +31,8 @@ task generateSource(type: Copy) { into 'src/main' } compileKotlin.dependsOn generateSource +processResources.dependsOn generateSource +sourcesJar.dependsOn generateSource jar { baseName 'corda-common-logging' diff --git a/node/capsule/build.gradle b/node/capsule/build.gradle index 6258b55be3..b18c9a2523 100644 --- a/node/capsule/build.gradle +++ b/node/capsule/build.gradle @@ -88,6 +88,11 @@ tasks.whenTaskAdded { task -> } } +javadoc.dependsOn ':testing:testserver:testcapsule:buildWebserverJar' +javadoc.dependsOn buildCordaJAR +compileTestJava.dependsOn ':testing:testserver:testcapsule:buildWebserverJar' +compileTestJava.dependsOn buildCordaJAR + artifacts { runtimeArtifacts buildCordaJAR } diff --git a/samples/simm-valuation-demo/contracts-states/build.gradle b/samples/simm-valuation-demo/contracts-states/build.gradle index fe4c4485eb..8cb0806485 100644 --- a/samples/simm-valuation-demo/contracts-states/build.gradle +++ b/samples/simm-valuation-demo/contracts-states/build.gradle @@ -78,6 +78,7 @@ tasks.register('generateDependencies') { } } processResources.finalizedBy generateDependencies +jar.dependsOn generateDependencies jar { // Test CorDapp filters out *-tests.jar. We only want the shrinked jar not this one. diff --git a/testing/testserver/build.gradle b/testing/testserver/build.gradle index 3cb142654b..2059acf764 100644 --- a/testing/testserver/build.gradle +++ b/testing/testserver/build.gradle @@ -83,6 +83,9 @@ jar { baseName 'corda-testserver-impl' } +compileJava.dependsOn ':node:capsule:buildCordaJAR' +javadoc.dependsOn ':testing:testserver:testcapsule:buildWebserverJar' + publishing { publications { maven(MavenPublication) { diff --git a/tools/bootstrapper/build.gradle b/tools/bootstrapper/build.gradle index ba25915546..16d26584ad 100644 --- a/tools/bootstrapper/build.gradle +++ b/tools/bootstrapper/build.gradle @@ -49,6 +49,8 @@ jar { duplicatesStrategy = DuplicatesStrategy.EXCLUDE } +jar.dependsOn ':testing:testserver:testcapsule:buildWebserverJar' + publishing { publications { maven(MavenPublication) { diff --git a/tools/explorer/build.gradle b/tools/explorer/build.gradle index 835325c1e3..2dd2a3ae19 100644 --- a/tools/explorer/build.gradle +++ b/tools/explorer/build.gradle @@ -70,6 +70,10 @@ dependencies { implementation "com.github.ben-manes.caffeine:caffeine:$caffeine_version" } +compileJava.dependsOn ':testing:testserver:testcapsule:buildWebserverJar' +startScripts.dependsOn ':testing:testserver:testcapsule:buildWebserverJar' +startScripts.dependsOn ':node:capsule:buildCordaJAR' + tasks.withType(JavaCompile).configureEach { // Resolves a Gradle warning about not scanning for pre-processors. options.compilerArgs << '-proc:none'