Skip to content

Commit

Permalink
Add artifactType with jar for utils' runtimeElements
Browse files Browse the repository at this point in the history
We should add artifactType with jar to ensure standard
runtimeElements variant has a max priority selection
sequence than other variants that brought by kotlin plugin.

Signed-off-by: utzcoz <utzcoz@outlook.com>
  • Loading branch information
utzcoz committed Oct 15, 2022
1 parent 47477eb commit 37b2e5d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions utils/build.gradle
Expand Up @@ -13,10 +13,27 @@ spotless {
}
}


tasks.withType(GenerateModuleMetadata) {
enabled = false
}

afterEvaluate {
configurations {
runtimeElements {
attributes {
// We should add artifactType with jar to ensure standard runtimeElements variant
// has a max priority selection sequence than other variants that brought by
// kotlin plugin.
attribute(
Attribute.of("artifactType", String.class),
ArtifactTypeDefinition.JAR_TYPE
)
}
}
}
}

dependencies {
api project(":annotations")
api project(":pluginapi")
Expand Down

0 comments on commit 37b2e5d

Please sign in to comment.