Skip to content

Commit ff43993

Browse files
committed
[CALCITE-6687] Add dependency constraints for org.ow2.asm for Gradle build environment in Avatica
1 parent e261a39 commit ff43993

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

build.gradle.kts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ import de.thetaphi.forbiddenapis.gradle.CheckForbiddenApis
3131
import de.thetaphi.forbiddenapis.gradle.CheckForbiddenApisExtension
3232
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
3333

34+
buildscript {
35+
dependencies {
36+
constraints {
37+
"classpath"("org.ow2.asm:asm:${property("asm.version")}")
38+
"classpath"("org.ow2.asm:asm-all:${property("asm.version")}")
39+
"classpath"("org.ow2.asm:asm-analysis:${property("asm.version")}")
40+
"classpath"("org.ow2.asm:asm-commons:${property("asm.version")}")
41+
"classpath"("org.ow2.asm:asm-tree:${property("asm.version")}")
42+
"classpath"("org.ow2.asm:asm-util:${property("asm.version")}")
43+
}
44+
}
45+
}
46+
3447
plugins {
3548
publishing
3649
// Verification
@@ -345,16 +358,6 @@ allprojects {
345358
// By default spotbugs verifies TEST classes as well, and we do not want that
346359
this.sourceSets = listOf(sourceSets["main"])
347360
}
348-
dependencies {
349-
constraints {
350-
"spotbugs"("org.ow2.asm:asm:${"asm".v}")
351-
"spotbugs"("org.ow2.asm:asm-all:${"asm".v}")
352-
"spotbugs"("org.ow2.asm:asm-analysis:${"asm".v}")
353-
"spotbugs"("org.ow2.asm:asm-commons:${"asm".v}")
354-
"spotbugs"("org.ow2.asm:asm-tree:${"asm".v}")
355-
"spotbugs"("org.ow2.asm:asm-util:${"asm".v}")
356-
}
357-
}
358361
}
359362

360363
configure<CheckForbiddenApisExtension> {

0 commit comments

Comments
 (0)