Slackbot
10/12/2022, 2:10 PMThomas Broyer
10/12/2022, 2:31 PM:observability:bundle
to engine
, or better: use composite builds instead: https://docs.gradle.org/current/userguide/composite_builds.htmlEric Kolotyluk
10/12/2022, 3:11 PM:observability:bundle
to engine
but that did not work either...
settings.gradle
include ':observability:bundle'
project(':observability').projectDir = file('../observability')
project(':observability:bundle').projectDir = file('../observability/bundle')
eric.kolotyluk@Y2RCV7009N engine % ./gradlew build
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':distTar'.
> Could not resolve all task dependencies for configuration ':runtimeClasspath'.
> Could not resolve project observabilitybundle.
Required by:
project : > project :common-utils
> No matching configuration of project observabilitybundle was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally but:
- None of the consumable configurations have attributes.I have tried reading "Composing builds" several times, and it really makes my head hurt. I will try again...
Thomas Broyer
10/12/2022, 3:37 PM../../observability
rather than ../observability
?Eric Kolotyluk
10/12/2022, 3:44 PMeric.kolotyluk@Y2RCV7009N engine % ./gradlew build
> Task :common-utils:compileJava
Note: /Users/eric.kolotyluk/git/autonomous-iam/utils/src/main/java/com/forgerock/autoid/jsonTransform/JSLT.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :jar FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jar'.
> Entry com/forgerock/autoid/jsonTransform/Module$Factory.class is a duplicate but no duplicate handling strategy has been set. Please refer to <https://docs.gradle.org/7.5.1/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy> for details.
but I think I know how to fix that...Eric Kolotyluk
10/12/2022, 3:49 PMduplicatesStrategy = DuplicatesStrategy.EXCLUDE
solves that problem ๐Vampire
10/12/2022, 11:54 PMEric Kolotyluk
10/13/2022, 2:14 PMVampire
10/13/2022, 2:22 PMEric Kolotyluk
10/13/2022, 3:16 PM