Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dependencies {
implementation("org.ow2.asm", "asm", "9.8")
implementation("org.ow2.asm", "asm-tree", "9.8")

testImplementation("org.spockframework", "spock-core", "2.3-groovy-3.0")
testImplementation(libs.spock.core)
testImplementation("org.codehaus.groovy", "groovy-all", "3.0.17")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {
implementation("com.github.javaparser", "javaparser-symbol-solver-core", "3.24.4")

testImplementation("net.bytebuddy", "byte-buddy", "1.17.5")
testImplementation("org.spockframework", "spock-core", "2.3-groovy-3.0")
testImplementation(libs.spock.core)
testImplementation("org.objenesis", "objenesis", "3.0.1")
testImplementation("org.codehaus.groovy", "groovy-all", "3.0.17")
testImplementation("javax.servlet", "javax.servlet-api", "3.0.1")
Expand Down
8 changes: 8 additions & 0 deletions buildSrc/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
include(":call-site-instrumentation-plugin")

dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}
13 changes: 3 additions & 10 deletions dd-java-agent/instrumentation/spring-webflux-6/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ dependencies {
}
bootTestImplementation project(':dd-java-agent:instrumentation:spring-webflux-5')
// our default version of spock is too old
bootTestImplementation group: 'org.spockframework', name: 'spock-core', version: '2.4-M1-groovy-3.0'
bootTestImplementation group: 'org.spockframework', name: 'spock-junit4', version: '2.4-M1-groovy-3.0'
bootTestImplementation group: 'org.spockframework', name: 'spock-spring', version: '2.4-M1-groovy-3.0'
bootTestImplementation libs.bundles.spock24.spring

latestDepBootTestImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-webflux', version: '3.+'
latestDepBootTestImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: '3.+', {
Expand All @@ -64,10 +62,7 @@ dependencies {
}
latestDepBootTestImplementation project(':dd-java-agent:instrumentation:spring-webflux-5')
// our default version of spock is too old
latestDepBootTestImplementation group: 'org.spockframework', name: 'spock-core', version: '2.4-M1-groovy-3.0'
latestDepBootTestImplementation group: 'org.spockframework', name: 'spock-junit4', version: '2.4-M1-groovy-3.0'
latestDepBootTestImplementation group: 'org.spockframework', name: 'spock-spring', version: '2.4-M1-groovy-3.0'

latestDepBootTestImplementation libs.bundles.spock24.spring

iastTestImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-reactor-netty', version: '3.0.0'
iastTestImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-json', version: '3.0.0'
Expand All @@ -85,8 +80,6 @@ dependencies {
iastTestImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-json', version: '3.0.0'

// our default version of spock is too old
iastTestImplementation group: 'org.spockframework', name: 'spock-core', version: '2.4-M1-groovy-3.0'
iastTestImplementation group: 'org.spockframework', name: 'spock-junit4', version: '2.4-M1-groovy-3.0'
iastTestImplementation group: 'org.spockframework', name: 'spock-spring', version: '2.4-M1-groovy-3.0'
iastTestImplementation libs.bundles.spock24.spring
}

6 changes: 6 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ okhttp-legacy = "[3.0,3.12.12]" # 3.12.x is last version to support Java7
okio = "1.17.6" # Datadog fork

spock = "2.3-groovy-3.0"
spock24 = "2.4-M6-groovy-3.0"
groovy = "3.0.24"
junit5 = "5.9.2"
logback = "1.2.3"
Expand Down Expand Up @@ -64,6 +65,10 @@ spock-core = { module = "org.spockframework:spock-core", version.ref = "spock" }
spock-junit4 = { module = "org.spockframework:spock-junit4", version.ref = "spock" }
objenesis = { module = "org.objenesis:objenesis", version = "3.3" } # Used by Spock for mocking:

spock24-core = { module = "org.spockframework:spock-core", version.ref = "spock24" }
spock24-junit4 = { module = "org.spockframework:spock-junit4", version.ref = "spock24" }
spock24-spring = { module = "org.spockframework:spock-spring", version = "spock24" }

groovy = { module = "org.codehaus.groovy:groovy-all", version.ref = "groovy" }
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit5" }
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit5" }
Expand Down Expand Up @@ -100,6 +105,7 @@ asm = ["asm", "asmcommons"]
cafe-crypto = ["cafe-crypto-curve25519", "cafe-crypto-ed25519"]
# Testing
spock = ["spock-core", "spock-junit4", "objenesis"]
spock24-spring = ["spock24-core", "spock24-junit4", "spock24-spring"]
junit5 = ["junit-jupiter", "junit-jupiter-params"]
mockito = ["mokito-core", "mokito-junit-jupiter", "byte-buddy", "byte-buddy-agent"]
test-logging = ["logback-classic", "log4j-over-slf4j", "jcl-over-slf4j", "jul-to-slf4j"]
Expand Down