File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import org.gradle.api.artifacts.ComponentMetadataRule
2+ import org.gradle.api.artifacts.ComponentMetadataContext
3+
4+ class JacksonPlatformRule implements ComponentMetadataRule {
5+ void execute (ComponentMetadataContext ctx ) {
6+ ctx. details. with {
7+ if (id. group. startsWith (" com.fasterxml.jackson" )) {
8+ belongsTo (" com.fasterxml.jackson:jackson-bom:${ id.version} " , false )
9+ }
10+ }
11+ }
12+ }
Original file line number Diff line number Diff line change 1+ import org.gradle.api.artifacts.ComponentMetadataContext
2+ import org.gradle.api.artifacts.ComponentMetadataRule
3+
4+ class KotlinPlatformRule implements ComponentMetadataRule {
5+ void execute (ComponentMetadataContext ctx ) {
6+ ctx. details. with {
7+ if (id. group. startsWith (" org.jetbrains.kotlin" )) {
8+ belongsTo (" org.jetbrains.kotlin:kotlin-platform:${ id.version} " )
9+ }
10+ }
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments