Skip to content

Commit 1652f3e

Browse files
committed
Use metadata rules instead of excludes
...to not publish the excludes.
1 parent 0c3073a commit 1652f3e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ configurations.compileClasspath {
1212
dependencies {
1313
implementation("org.ow2.asm:asm:9.9")
1414
compileOnly("org.gradlex:extra-java-module-info:1.13.1")
15-
compileOnly("com.autonomousapps:dependency-analysis-gradle-plugin:3.4.0") {
16-
exclude("dev.zacsweers.moshix", "moshi-sealed-runtime")
17-
exclude("javax.inject", "javax.inject")
15+
compileOnly("com.autonomousapps:dependency-analysis-gradle-plugin:3.4.0")
16+
}
17+
18+
jvmDependencyConflicts.patch {
19+
module("com.autonomousapps:dependency-analysis-gradle-plugin") {
20+
removeDependency("dev.zacsweers.moshix:moshi-sealed-runtime")
21+
removeDependency("javax.inject:javax.inject")
1822
}
1923
}
2024

0 commit comments

Comments
 (0)