Slackbot
11/16/2022, 5:41 PMChris Lee
11/16/2022, 5:45 PMcombined with the Java 8 toolchain?Copy codeThe consumer was configured to find a runtime of a library compatible with Java 11
Eric Kolotyluk
11/16/2022, 5:45 PMChris Lee
11/16/2022, 5:46 PMaccess-ai
is looking for libraries from those projects compatible with Java 11. You’ve stated those projects use Java 8.Eric Kolotyluk
11/16/2022, 5:47 PMEric Kolotyluk
11/16/2022, 5:49 PMaccess-ai
uses
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
Chris Lee
11/16/2022, 5:51 PM…not sure what causes that. May be worth reviewing how those ones are built, is everyone using the same Gradle version, etc.Copy codeNone of the consumable configurations have attributes.
Eric Kolotyluk
11/16/2022, 5:54 PM…not sure what causes that.Thank you for being honest
is everyone using the same Gradle version?😆 😅 🤣 😂 I think our project has more different versions of Gradle wrapper than there are stars in the universe...
Chris Lee
11/16/2022, 5:55 PMEric Kolotyluk
11/16/2022, 5:57 PMEric Kolotyluk
11/16/2022, 5:57 PMChris Lee
11/16/2022, 5:58 PM./gradlew wrapper
(twice) will do the upgrade.Eric Kolotyluk
11/16/2022, 6:00 PM./gradlew wrapper
?
Usually, I use gradle wrapper
which is always the latest version of Gradle...Chris Lee
11/16/2022, 6:01 PM./gradlew wrapper --gradle-version 7.5.1
.Eric Kolotyluk
11/16/2022, 6:02 PMeric.kolotyluk@Y2RCV7009N access-ai % ./gradlew wrapper
fails twiceChris Lee
11/16/2022, 6:02 PMEric Kolotyluk
11/16/2022, 6:04 PMeric.kolotyluk@Y2RCV7009N access-ai % ./gradlew wrapper --gradle-version 7.5.1
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/eric.kolotyluk/git/autonomous-iam/access/access-ai/build.gradle' line: 266
* What went wrong:
A problem occurred evaluating root project 'access-ai'.
> Could not resolve all files for configuration ':runtimeClasspath'.
> Could not resolve project :observability:bundle.
Required by:
project :
project : > project :common-utils
> No matching configuration of project :observability:bundle was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally but:
- None of the consumable configurations have attributes.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 502ms
This is precisely why Gradle wrapper is such a disaster... It sanity checks the gradle files, and refuses the upgrade until it is happyChris Lee
11/16/2022, 6:05 PMChris Lee
11/16/2022, 6:06 PMChris Lee
11/16/2022, 6:09 PMdoFirst
block.Chris Lee
11/16/2022, 6:10 PMjar {
archiveFileName = "${project.name}.jar"
doFirst {
manifest {
attributes('Main-Class': 'com.forgerock.access.access.Main',
'Class-Path': configurations.runtimeClasspath.files.collect { "libs/$it.name" }.join(' ') // line 266
)
}
}
}
Eric Kolotyluk
11/16/2022, 6:14 PMEric Kolotyluk
11/16/2022, 6:15 PMjar {
archiveFileName = "${project.name}.jar"
doFirst {
manifest {
attributes('Main-Class': 'com.forgerock.access.access.Main',
'Class-Path': configurations.runtimeClasspath.files.collect { "libs/$it.name" }.join(' ')
)
}
}
}
Same errorChris Lee
11/16/2022, 6:15 PMjar
task, as all we did is move the problem from configuration time to execution time.Eric Kolotyluk
11/16/2022, 6:16 PMeric.kolotyluk@Y2RCV7009N access-ai % ./gradlew --version
------------------------------------------------------------
Gradle 7.5.1
------------------------------------------------------------
🥳Eric Kolotyluk
11/16/2022, 6:25 PMbuild.gradle
errors because of version 7.5.1, I am left with
eric.kolotyluk@Y2RCV7009N access-ai % ./gradlew clean build
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':copyLibs'.
> Could not resolve all task dependencies for configuration ':runtimeClasspath'.
> Could not resolve project :observability:bundle.
Required by:
project :
project : > project :common-utils
> No matching configuration of project :observability:bundle 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.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
Chris Lee
11/16/2022, 6:26 PMcommon-utils
defined in build.gradle?Eric Kolotyluk
11/16/2022, 6:27 PM//JAS libraries
implementation project(":service-commons")
implementation project(":service-config")
implementation project(":modules-api")
implementation project(":common-utils")
implementation project(":encrypt-utils")
implementation project(":gcp-utils")
implementation project(":jas-rest-client-java")
implementation project(":event-lib")
include ':observability:bundle'
project(':observability').projectDir = file('../observability')
project(':observability:bundle').projectDir = file('../observability/bundle')
include ':service-commons'
project(":service-commons").projectDir = file("../../autonomous-commons/service-commons")
include ':service-config'
project(":service-config").projectDir = file("../../autonomous-commons/service-config")
include ':modules-api'
project(":modules-api").projectDir = file("../../modules/api")
include 'common-utils'
project(":common-utils").projectDir = file("../../utils")
include 'gcp-utils'
project(":gcp-utils").projectDir = file("../../autonomous-commons/gcp-utils")
include 'encrypt-utils'
project(":encrypt-utils").projectDir = file("../../jas/common-utils")
include ':jas-rest-client-java'
project(":jas-rest-client-java").projectDir = file("../../autonomous-commons/jas-rest-client-java")
include 'event-lib'
project(":event-lib").projectDir = file("../../autonomous-commons/event-lib")
Chris Lee
11/16/2022, 6:28 PMimplementation(project(":observability:bundle"))?
Eric Kolotyluk
11/16/2022, 6:29 PMimplementation project(':observability:bundle')
Eric Kolotyluk
11/16/2022, 6:30 PMinclude ':observability:bundle'
project(':observability').projectDir = file('../observability')
project(':observability:bundle').projectDir = file('../observability/bundle')
Chris Lee
11/16/2022, 6:33 PM:observability:bundle
creating a jar library?Eric Kolotyluk
11/16/2022, 6:36 PMChris Lee
11/16/2022, 6:37 PMChris Lee
11/16/2022, 6:39 PM./gradlew :observability:bundle:clean :observability:bundle:jar
Eric Kolotyluk
11/16/2022, 6:41 PMeric.kolotyluk@Y2RCV7009N access-ai % ./gradlew :observability:bundle:clean :observability:bundle:jar
FAILURE: Build failed with an exception.
* What went wrong:
Task 'clean' not found in project ':observability:bundle'.
* Try:
> Run gradlew tasks to get a list of available tasks.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 423ms
Chris Lee
11/16/2022, 6:42 PMclean
etc). what plugins does that project apply?Eric Kolotyluk
11/16/2022, 6:43 PMChris Lee
11/16/2022, 6:43 PMEric Kolotyluk
11/16/2022, 6:44 PMChris Lee
11/16/2022, 6:44 PMplugins {
id 'java-library'
}
Chris Lee
11/16/2022, 6:45 PM:observability:bundle
? Suspect it’s not as the clean
task was missing there.Chris Lee
11/16/2022, 6:47 PMAs indicated above, this plugin adds basic building blocks for working with JVM projects. Its feature set has been superseded by other plugins, offering more features based on your project type. Instead of applying it directly to your project, you should look into the^^^ for theorjava-library
plugins or one of the supported alternative JVM language.application
java
plugin. Should be using java-library
to create a JAR.Chris Lee
11/16/2022, 6:48 PMjava
is redundant).Eric Kolotyluk
11/16/2022, 6:49 PMeric.kolotyluk@Y2RCV7009N access-ai % ./gradlew clean build
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':copyLibs'.
> Could not resolve all task dependencies for configuration ':runtimeClasspath'.
> Could not resolve project :observability:bundle.
Required by:
project :
project : > project :common-utils
> No matching configuration of project :observability:bundle 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.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 449ms
Chris Lee
11/16/2022, 6:50 PM./gradlew :observability:bundle:clean :observability:bundle:jar
Eric Kolotyluk
11/16/2022, 6:50 PMEric Kolotyluk
11/16/2022, 6:51 PMeric.kolotyluk@Y2RCV7009N access-ai % ./gradlew :observability:bundle:clean :observability:bundle:jar
FAILURE: Build failed with an exception.
* What went wrong:
Task 'clean' not found in project ':observability:bundle'.
* Try:
> Run gradlew tasks to get a list of available tasks.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 425ms
Chris Lee
11/16/2022, 6:51 PMid 'java'
is redundant, included in application.Chris Lee
11/16/2022, 6:52 PMjava-library
plugin, which provided a clean task.Eric Kolotyluk
11/16/2022, 6:55 PMChris Lee
11/16/2022, 6:55 PM./gradlew :observability:bundle:clean
Eric Kolotyluk
11/16/2022, 6:56 PMeric.kolotyluk@Y2RCV7009N access-ai % ./gradlew :observability:bundle:clean
FAILURE: Build failed with an exception.
* What went wrong:
Task 'clean' not found in project ':observability:bundle'.
* Try:
> Run gradlew tasks to get a list of available tasks.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 430ms
Chris Lee
11/16/2022, 6:57 PM./gradlew :observability:bundle:jar
?Eric Kolotyluk
11/16/2022, 6:57 PMeric.kolotyluk@Y2RCV7009N access-ai % ./gradlew :observability:bundle:jar
FAILURE: Build failed with an exception.
* What went wrong:
Task 'jar' not found in project ':observability:bundle'.
* Try:
> Run gradlew tasks to get a list of available tasks.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 384ms
Chris Lee
11/16/2022, 6:58 PM./gradlew :observability:bundle:tasks --all
Eric Kolotyluk
11/16/2022, 6:58 PMeric.kolotyluk@Y2RCV7009N access-ai % ./gradlew :observability:bundle:tasks --all
> Task :observability:bundle:tasks
------------------------------------------------------------
Tasks runnable from project ':observability:bundle'
------------------------------------------------------------
Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in project ':observability:bundle'.
dependencies - Displays all dependencies declared in project ':observability:bundle'.
dependencyInsight - Displays the insight into a specific dependency in project ':observability:bundle'.
help - Displays a help message.
javaToolchains - Displays the detected java toolchains.
outgoingVariants - Displays the outgoing variants of project ':observability:bundle'.
projects - Displays the sub-projects of project ':observability:bundle'.
properties - Displays the properties of project ':observability:bundle'.
resolvableConfigurations - Displays the configurations that can be resolved in project ':observability:bundle'.
tasks - Displays the tasks runnable from project ':observability:bundle'.
Other tasks
-----------
components - Displays the components produced by project ':observability:bundle'. [deprecated]
dependentComponents - Displays the dependent components of components in project ':observability:bundle'. [deprecated]
model - Displays the configuration model of project ':observability:bundle'. [deprecated]
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD SUCCESSFUL in 404ms
1 actionable task: 1 executed
Chris Lee
11/16/2022, 6:59 PMChris Lee
11/16/2022, 7:00 PMinclude ':observability:bundle'
project(':observability').projectDir = file('../observability')
project(':observability:bundle').projectDir = file('../observability/bundle')
…is that the correct pathing? Is there a build.gradle in ../observability/bundle
?Chris Lee
11/16/2022, 7:02 PM//include ':observability:bundle'
//project(':observability').projectDir = file('../../observability')
//project(':observability:bundle').projectDir = file('../../observability/bundle')
Eric Kolotyluk
11/16/2022, 7:02 PMEric Kolotyluk
11/16/2022, 7:03 PMChris Lee
11/16/2022, 7:04 PMEric Kolotyluk
11/16/2022, 7:04 PMEric Kolotyluk
11/16/2022, 7:07 PMeric.kolotyluk@Y2RCV7009N access-ai % ./gradlew clean build
> Task :common-utils:compileJava
Note: /Users/eric.kolotyluk/git/autonomous-iam/utils/src/main/java/com/forgerock/autoid/utils/Mapper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :event-lib:compileJava
Note: /Users/eric.kolotyluk/git/autonomous-iam/autonomous-commons/event-lib/src/main/java/com/forgerock/autoid/event/pubsub/PubSubHelper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :service-commons:jandex
Index has been written to /Users/eric.kolotyluk/git/autonomous-iam/autonomous-commons/service-commons/build/resources/main/META-INF/jandex.idx
> Task :service-commons:jar
Execution optimizations have been disabled for task ':service-commons:jar' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/Users/eric.kolotyluk/git/autonomous-iam/autonomous-commons/service-commons/build/resources/main'. Reason: Task ':service-commons:jar' uses this output of task ':service-commons:jandex' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to <https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency> for more details about this problem.
> Task :compileScala
'jvm-1.11' is not a valid choice for '-target'
bad option: '-target:jvm-1.11'
> Task :compileScala FAILED
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':compileScala'.
> Compilation failed
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
BUILD FAILED in 24s
42 actionable tasks: 34 executed, 8 up-to-date
STACK OVERFLOW???Chris Lee
11/16/2022, 7:08 PM> Task :compileScala
'jvm-1.11' is not a valid choice for '-target'
bad option: '-target:jvm-1.11'
Eric Kolotyluk
11/16/2022, 7:10 PMChris Lee
11/16/2022, 7:11 PM1.11
- or derived (incorrectly) from the Java 11 version that is set, which may indicate an older Scala plugin version.Eric Kolotyluk
11/16/2022, 7:13 PMimplementation "com.fasterxml.jackson.module:jackson-module-scala_2.12:${jacksonVersion}"
???Chris Lee
11/16/2022, 7:15 PMEric Kolotyluk
11/16/2022, 7:17 PMEric Kolotyluk
11/16/2022, 7:17 PMChris Lee
11/16/2022, 7:18 PMChris Lee
11/16/2022, 7:19 PM1.x
qualified Java versions for anything after 1.8 (iirc). Anyhow, you’ll need to track down where the Scala JVM version is set and correct it.Eric Kolotyluk
11/16/2022, 7:29 PMChris Lee
11/16/2022, 7:31 PMupdate the dependency to 2.10.7, or
remove the toolchain definition and go back to the old block
Eric Kolotyluk
11/16/2022, 7:35 PMEric Kolotyluk
11/16/2022, 7:40 PMEric Kolotyluk
11/16/2022, 7:40 PMEric Kolotyluk
11/16/2022, 7:54 PMscala {
compileScala.targetCompatibility = 1.8
ScalaCompileOptions.metaClass.useAnt = false
}
has no effectEric Kolotyluk
11/16/2022, 8:15 PMtasks.withType(ScalaCompile) {
scalaCompileOptions.with {
sourceCompatibility = "1.8"
targetCompatibility = '1.8'
}
}
Eric Kolotyluk
11/16/2022, 8:17 PMChris Lee
11/16/2022, 8:17 PMChris Lee
11/16/2022, 8:17 PMimplementation 'org.scala-lang:scala-library:2.12.1'
Eric Kolotyluk
11/16/2022, 8:17 PMChris Lee
11/16/2022, 8:18 PMEric Kolotyluk
11/16/2022, 8:18 PMChris Lee
11/16/2022, 8:23 PMapply plugin: 'scala'
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
dependencies {
implementation 'org.scala-lang:scala-library:2.10.4'
}
Eric Kolotyluk
11/16/2022, 8:23 PMChris Lee
11/16/2022, 8:23 PMEric Kolotyluk
11/16/2022, 8:24 PMEric Kolotyluk
11/16/2022, 8:25 PMEric Kolotyluk
11/16/2022, 8:35 PMjava {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
results in
eric.kolotyluk@Y2RCV7009N access-ai % ./gradlew clean build
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':copyLibs'.
> Could not resolve all task dependencies for configuration ':runtimeClasspath'.
> Could not resolve project :service-commons.
Required by:
project :
> No matching variant of project :service-commons was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally but:
- Variant 'apiElements' capability com.forgerock.autoid:service-commons:1.0-SNAPSHOT declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Variant 'mainSourceElements' capability com.forgerock.autoid:service-commons:1.0-SNAPSHOT declares a component, and its dependencies declared externally:
- Incompatible because this component declares a component of category 'verification' and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about its usage (required a runtime)
- Variant 'runtimeElements' capability com.forgerock.autoid:service-commons:1.0-SNAPSHOT declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Variant 'testResultsElementsForTest' capability com.forgerock.autoid:service-commons:1.0-SNAPSHOT:
- Incompatible because this component declares a component of category 'verification' and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about its usage (required a runtime)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings>
Chris Lee
11/16/2022, 8:46 PMEric Kolotyluk
11/16/2022, 8:47 PMEric Kolotyluk
11/16/2022, 8:49 PMEric Kolotyluk
11/16/2022, 8:51 PMEric Kolotyluk
11/16/2022, 10:00 PMChris Lee
11/17/2022, 12:07 AMpublic fun Settings.includeProject(path: String) {
if (path.contains("/") || path.contains("\\")) {
throw GradleException("Invalid project path; must use ':' as project path separator")
}
val projectPath = when {
path.startsWith(":") -> path
else -> ":$path"
}
include(projectPath)
val projectDesc = findProject(projectPath)
check(projectDesc != null) { "Unable to resolve project @ path '$projectPath'" }
val projectDir = File("../../" + projectPath.drop(1).replace(":","/"))
check(projectDir.exists()) { "Project directory does not exist: $projectDir"}
projectDesc.projectDir = projectDir
}
/*
### Original
include ':observability:bundle'
project(':observability').projectDir = file('../observability')
project(':observability:bundle').projectDir = file('../observability/bundle')
Could become:
includeProject(":observability:bundle")
*/
Eric Kolotyluk
11/17/2022, 6:18 PM