Caleb Cushing
10/30/2024, 7:16 PM-release check if a compile time dependency requires a greater version of java? e.g. I'm releasing against java 11 but I have a dependency that uses 17. If it does not, is there a way to do that?
I seem to recall some dependency I've encountered requires 17, but I think it was a plugin. I'm also using 21 for generating javadoc, so ...Martin
10/30/2024, 8:07 PM-release will do that but Gradle dependency resolution should? (assuming your dependencies have Gradle metadata)Martin
10/30/2024, 8:10 PMMartin
10/30/2024, 8:11 PMtasks.withType<JavaCompile>().configureEach {
options.release.set(8)
}
dependencies {
implementation("org.springframework.boot:spring-boot:3.3.5")
}Martin
10/30/2024, 8:11 PMExecution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve org.springframework.boot:spring-boot:3.3.5.
Required by:
root project :
> Dependency resolution is looking for a library compatible with JVM runtime version 8, but 'org.springframework.boot:spring-boot:3.3.5' is only compatible with JVM runtime version 17 or newer.Martin
10/30/2024, 8:12 PMCaleb Cushing
10/30/2024, 8:15 PMMartin
10/30/2024, 8:24 PMMartin
10/30/2024, 8:24 PMCaleb Cushing
10/30/2024, 8:25 PMCaleb Cushing
10/30/2024, 8:25 PM