Slackbot
01/08/2024, 9:13 PMVampire
01/08/2024, 10:33 PMdependencies {
developmentOnly("org.springframework.boot:spring-boot-devtools")
}
And the explicit requireCapability anyway sounds fishy, as it is the default capability anyway, so a no-op. Or which coordinates is libs.spring.boot.devtools pointing at?Caleb Cushing
01/08/2024, 10:57 PMCaleb Cushing
01/08/2024, 11:08 PMCaleb Cushing
01/08/2024, 11:08 PMVampire
01/08/2024, 11:11 PMCaleb Cushing
01/08/2024, 11:13 PMCaleb Cushing
01/08/2024, 11:13 PMCaleb Cushing
01/09/2024, 4:51 PMYou just re-request the default capability, so you can as well just leave it out.I don't understand... what should my code look like (not using the spring boot plugin)
Vampire
01/09/2024, 5:33 PMruntimeOnly(libs.spring.boot.devtools) {
capabilities {
requireCapability("org.springframework.boot:spring-boot-devtools")
}
}
is identical to
runtimeOnly(libs.spring.boot.devtools)Caleb Cushing
01/09/2024, 5:36 PMVampire
01/09/2024, 5:37 PMCaleb Cushing
01/09/2024, 5:37 PMCaleb Cushing
01/09/2024, 5:38 PMCaleb Cushing
01/09/2024, 5:39 PMVampire
01/09/2024, 5:40 PMdependencyScope configuration on which you declare that dependency.
A resolvable configuration extending it.
And then configuring whatever run tasks you have to also include the results of that resolvable configuration.Caleb Cushing
01/09/2024, 5:40 PMtestRuntimeOnly for this module anyways...Vampire
01/09/2024, 5:41 PMVampire
01/09/2024, 5:41 PMtestRuntimeOnly if that is where you need it, that should probably work.Vampire
01/09/2024, 5:42 PMrun task or similarCaleb Cushing
01/09/2024, 5:43 PMapi(platform(libs.spring.boot.dependencies))
api(libs.spring.boot.autoconfigure) {
capabilities {
requireCapability("org.springframework.boot:spring-boot-devtools")
}
}Vampire
01/09/2024, 5:43 PMVampire
01/09/2024, 5:44 PMVampire
01/09/2024, 5:44 PMCaleb Cushing
01/09/2024, 5:44 PMCaleb Cushing
01/09/2024, 5:44 PMCaleb Cushing
01/09/2024, 5:45 PM> Could not resolve org.springframework.boot:spring-boot-autoconfigure.
Required by:
project :test-app
> Unable to find a variant of org.springframework.boot:spring-boot-autoconfigure:2.5.15 providing the requested capability org.springframework.boot:spring-boot-devtools:
- Variant apiElements provides org.springframework.boot:spring-boot-autoconfigure:2.5.15
- Variant runtimeElements provides org.springframework.boot:spring-boot-autoconfigure:2.5.15
- Variant mavenOptionalApiElements provides org.springframework.boot:spring-boot-autoconfigure-maven-optional:2.5.15
- Variant mavenOptionalRuntimeElements provides org.springframework.boot:spring-boot-autoconfigure-maven-optional:2.5.15
- Variant javadocElements provides org.springframework.boot:spring-boot-autoconfigure:2.5.15
- Variant sourcesElements provides org.springframework.boot:spring-boot-autoconfigure:2.5.15Vampire
01/09/2024, 5:45 PMorg.springframework.boot:spring-boot-autoconfigure-devtools or similar.Caleb Cushing
01/09/2024, 5:45 PMVampire
01/09/2024, 5:45 PMVampire
01/09/2024, 5:45 PMCaleb Cushing
01/09/2024, 5:46 PM: that has nothing after itCaleb Cushing
01/09/2024, 5:46 PMVampire
01/09/2024, 5:46 PMCaleb Cushing
01/09/2024, 5:46 PMCaleb Cushing
01/09/2024, 5:46 PMVampire
01/09/2024, 5:47 PM: means "left message" details here as listCaleb Cushing
01/09/2024, 5:47 PMCaleb Cushing
01/09/2024, 5:47 PMVampire
01/09/2024, 5:48 PMcom.example:my-library-oracle or com.example:my-library-mssql where the coordinates are com.example:my-libraryVampire
01/09/2024, 5:50 PMCaleb Cushing
01/09/2024, 5:50 PMVampire
01/09/2024, 5:51 PMhow it tells it's a variantWho is "it"?
Caleb Cushing
01/09/2024, 6:03 PMVampire
01/09/2024, 6:17 PMVampire
01/09/2024, 6:18 PMCaleb Cushing
01/09/2024, 6:18 PMVampire
01/09/2024, 6:19 PMCaleb Cushing
01/09/2024, 6:19 PMVampire
01/09/2024, 6:19 PMCaleb Cushing
01/09/2024, 6:20 PMWho is "it"?
Vampire
01/09/2024, 6:22 PMCaleb Cushing
01/09/2024, 6:28 PMCaleb Cushing
01/09/2024, 6:28 PMVampire
01/09/2024, 6:29 PMCaleb Cushing
01/09/2024, 6:30 PMCaleb Cushing
01/09/2024, 6:30 PMCaleb Cushing
01/09/2024, 6:30 PMVampire
01/09/2024, 6:30 PMCaleb Cushing
01/09/2024, 6:31 PMVampire
01/09/2024, 6:32 PMVampire
01/09/2024, 6:32 PMCaleb Cushing
01/09/2024, 6:32 PMCaleb Cushing
01/09/2024, 6:32 PMCaleb Cushing
01/09/2024, 6:33 PMCaleb Cushing
01/09/2024, 6:33 PMCaleb Cushing
01/09/2024, 6:34 PMCaleb Cushing
01/09/2024, 6:34 PMCaleb Cushing
01/09/2024, 6:35 PMVampire
01/09/2024, 6:38 PM