This is an automated email from the ASF dual-hosted git repository.
stoty pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git
The following commit(s) were added to refs/heads/main by this push:
new 48004934e [CALCITE-6687] Add dependency constraints for org.ow2.asm
for Gradle build environment in Avatica
48004934e is described below
commit 48004934e96dc47afe87bb7251bd6e530a59985c
Author: Istvan Toth <[email protected]>
AuthorDate: Tue Nov 12 10:38:07 2024 +0100
[CALCITE-6687] Add dependency constraints for org.ow2.asm for Gradle build
environment in Avatica
---
build.gradle.kts | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/build.gradle.kts b/build.gradle.kts
index 55ae8c2bb..16aa37330 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -31,6 +31,19 @@ import de.thetaphi.forbiddenapis.gradle.CheckForbiddenApis
import de.thetaphi.forbiddenapis.gradle.CheckForbiddenApisExtension
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
+buildscript {
+ dependencies {
+ constraints {
+ "classpath"("org.ow2.asm:asm:${property("asm.version")}")
+ "classpath"("org.ow2.asm:asm-all:${property("asm.version")}")
+ "classpath"("org.ow2.asm:asm-analysis:${property("asm.version")}")
+ "classpath"("org.ow2.asm:asm-commons:${property("asm.version")}")
+ "classpath"("org.ow2.asm:asm-tree:${property("asm.version")}")
+ "classpath"("org.ow2.asm:asm-util:${property("asm.version")}")
+ }
+ }
+}
+
plugins {
publishing
// Verification
@@ -345,16 +358,6 @@ allprojects {
// By default spotbugs verifies TEST classes as well, and we
do not want that
this.sourceSets = listOf(sourceSets["main"])
}
- dependencies {
- constraints {
- "spotbugs"("org.ow2.asm:asm:${"asm".v}")
- "spotbugs"("org.ow2.asm:asm-all:${"asm".v}")
- "spotbugs"("org.ow2.asm:asm-analysis:${"asm".v}")
- "spotbugs"("org.ow2.asm:asm-commons:${"asm".v}")
- "spotbugs"("org.ow2.asm:asm-tree:${"asm".v}")
- "spotbugs"("org.ow2.asm:asm-util:${"asm".v}")
- }
- }
}
configure<CheckForbiddenApisExtension> {