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
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ configurations.matching({ it.name.startsWith('akka23') }).each({


// Run 2.3 tests along with the rest of unit tests
tasks.named("test") {
tasks.named("test", Test) {
dependsOn "akka23Test"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ addTestSuiteForDir 'version101IastTest', 'iastTest'
addTestSuiteForDir 'version102IastTest', 'iastTest'
addTestSuiteForDir 'latestDepIastTest', 'iastTest'

compileLagomTestJava {
tasks.named("compileLagomTestJava", JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

compileLagomTestGroovy {
tasks.named("compileLagomTestGroovy", GroovyCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
Expand Down Expand Up @@ -170,32 +170,32 @@ dependencies {
lagomTestImplementation group: 'com.lightbend.lagom', name: 'lagom-javadsl-testkit_2.11', version: '1.4.0'
}

compileBaseTestGroovy {
tasks.named("compileBaseTestGroovy", GroovyCompile) {
classpath = classpath.plus(files(compileBaseTestScala.destinationDirectory))
dependsOn "compileBaseTestScala"
}

compileBaseForkedTestGroovy {
tasks.named("compileBaseForkedTestGroovy", GroovyCompile) {
classpath = classpath.plus(files(compileBaseTestScala.destinationDirectory))
dependsOn "compileBaseTestScala"
}

compileVersion101TestGroovy {
tasks.named("compileVersion101TestGroovy", GroovyCompile) {
classpath = classpath.plus(files(compileVersion101TestScala.destinationDirectory))
dependsOn "compileVersion101TestScala"
}

compileVersion101ForkedTestGroovy {
tasks.named("compileVersion101ForkedTestGroovy", GroovyCompile) {
classpath = classpath.plus(files(compileVersion101TestScala.destinationDirectory))
dependsOn "compileVersion101TestScala"
}

compileVersion102Scala213TestGroovy {
tasks.named("compileVersion102Scala213TestGroovy", GroovyCompile) {
classpath = classpath.plus(files(compileVersion102Scala213TestScala.destinationDirectory))
dependsOn "compileVersion102Scala213TestScala"
}

compileLatestDepTestGroovy {
tasks.named("compileLatestDepTestGroovy", GroovyCompile) {
classpath = classpath.plus(files(compileLatestDepTestScala.destinationDirectory))
dependsOn "compileLatestDepTestScala"
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ addTestSuiteExtendingForDir('latestDepForkedTest', 'latestDepTest', 'test')

apply from: "$rootDir/gradle/configure_tests.gradle"

latestDepTest {
tasks.named("latestDepTest", Test) {
finalizedBy 'latestDepForkedTest'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,4 @@ dependencies {
testRuntimeOnly project(':dd-java-agent:instrumentation:jetty:jetty-appsec:jetty-appsec-9.3')
testRuntimeOnly project(':dd-java-agent:instrumentation:servlet:jakarta-servlet-5.0')
testRuntimeOnly project(':dd-java-agent:instrumentation:servlet:javax-servlet:javax-servlet-3.0')


}
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ apply from: "$rootDir/gradle/java.gradle"

addTestSuiteForDir('latestDepTest', 'test')

test {
tasks.named("test", Test) {
environment "_HANDLER", "Handler"
}

forkedTest {
tasks.named("forkedTest", Test) {
environment "_HANDLER", "Handler"
}

latestDepTest {
tasks.named("latestDepTest", Test) {
environment "_HANDLER", "Handler"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ dependencies {
latestDepTestImplementation group: 'com.amazonaws', name: 'aws-java-sdk-dynamodb', version: '+'
}

tasks.named("test") {
tasks.named("test", Test) {
dependsOn "test_before_1_11_106"
}

tasks.named("forkedTest") {
tasks.named("forkedTest", Test) {
dependsOn "test_before_1_11_106ForkedTest"
}
4 changes: 2 additions & 2 deletions dd-java-agent/instrumentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ plugins {
apply from: "$rootDir/gradle/java.gradle"


tasks.register("latestDepTest")
tasks.register("latestDepTest", Test)

Project parent_project = project
subprojects { Project subProj ->
Expand Down Expand Up @@ -129,7 +129,7 @@ if (project.gradle.startParameter.taskNames.any { it.endsWith("generateMuzzleRep
}


tasks.named('shadowJar') {
tasks.named('shadowJar', ShadowJar) {
duplicatesStrategy = DuplicatesStrategy.FAIL
dependencies {
// the tracer is now in a separate shadow jar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
latestDepTestImplementation group: 'io.netty', name: 'netty-transport', version: '+'
}

tasks.named("latestDepTest") {
tasks.named("latestDepTest", Test) {
dependsOn "latestDep4Test"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ dependencies {
}
}

forbiddenApisMain_java11 {
tasks.named("forbiddenApisMain_java11") {
failOnMissingClasses = false
}

test {
tasks.named("test", Test) {
useJUnitPlatform()
}

Expand Down
2 changes: 1 addition & 1 deletion dd-java-agent/instrumentation/finatra-2.9/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ tasks.named("compileLatestPre207TestGroovy", GroovyCompile) {
dependsOn "compileLatestPre207TestScala"
}

tasks.named("latestDepTest") {
tasks.named("latestDepTest", Test) {
finalizedBy latestPre207Test
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ dependencies {
compileOnly project(":dd-java-agent:instrumentation:junit:junit-4.10")
}

forbiddenApisMain {
tasks.named("forbiddenApisMain") {
failOnMissingClasses = false
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ dependencies {
compileOnly gradleApi()
}

forbiddenApisMain {
tasks.named("forbiddenApisMain") {
failOnMissingClasses = false
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ dependencies {
compileOnly gradleApi()
}

forbiddenApisMain {
tasks.named("forbiddenApisMain") {
failOnMissingClasses = false
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ apply from: "${rootDir}/gradle/tries.gradle"

addTestSuiteForDir('latestDepTest', 'test')

compileJava.dependsOn 'generateClassNameTries'
sourcesJar.dependsOn 'generateClassNameTries'
tasks.named("compileJava", JavaCompile) {
dependsOn("generateClassNameTries")
}

tasks.named("sourcesJar", Jar) {
dependsOn("generateClassNameTries")
}

dependencies {
testImplementation project(':dd-java-agent:agent-tooling')
Expand Down
2 changes: 1 addition & 1 deletion dd-java-agent/instrumentation/jakarta-jms/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repositories {
}
}

compileTestGroovy {
tasks.named("compileTestGroovy", GroovyCompile) {
it.javaLauncher = getJavaLauncherFor(17)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ addTestSuiteExtendingForDir('latestDepJava11Test', 'latestDepTest', 'test')
tasks.named("compileLatestDepJava11TestJava", JavaCompile) {
configureCompiler(it, 11)
}

tasks.named("compileLatestDepJava11TestGroovy", GroovyCompile) {
javaLauncher = getJavaLauncherFor(11)
}
tasks.named("latestDepJava11Test") {

tasks.named("latestDepJava11Test", Test) {
javaLauncher = getJavaLauncherFor(11)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ tasks.named("compilePreviewTestJava", JavaCompile) {
options.compilerArgs.add("--enable-preview")
}
// Configure tests execution
tasks.named("previewTest") {
tasks.named("previewTest", Test) {
jvmArgs = ['--enable-preview']
}
// Require the preview test suite to run as part of module check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ tasks.named("compileMain_java11Java", JavaCompile) {
configureCompiler(it, 11, JavaVersion.VERSION_11)
}

tasks.named("compileTestGroovy") {
tasks.named("compileTestGroovy", GroovyCompile) {
javaLauncher = getJavaLauncherFor(11)
}

forbiddenApisMain_java11 {
tasks.named("forbiddenApisMain_java11") {
failOnMissingClasses = false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: "idea"
}
}

forbiddenApisMain_java11 {
tasks.named("forbiddenApisMain_java11") {
failOnMissingClasses = false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dependencies {
latestDepTestImplementation group: 'org.jboss.resteasy', name: 'resteasy-jaxrs', version: '+'
}

tasks.named("test") {
tasks.named("test", Test) {
dependsOn "resteasy31Test"
dependsOn "nestedTest"
}
2 changes: 1 addition & 1 deletion dd-java-agent/instrumentation/jdbc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ tasks.named("check") {
dependsOn "oldPostgresTest"
}

tasks.named("latestDepJava11Test") {
tasks.named("latestDepJava11Test", Test) {
javaLauncher = getJavaLauncherFor(11)
}

Expand Down
7 changes: 4 additions & 3 deletions dd-java-agent/instrumentation/jersey/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ apply from: "$rootDir/gradle/java.gradle"
addTestSuiteForDir('jersey2JettyTest', 'jersey2JettyTest')
addTestSuiteForDir('jersey3JettyTest', 'jersey3JettyTest')

compileJersey3JettyTestGroovy {
tasks.named("compileJersey3JettyTestGroovy", GroovyCompile) {
javaLauncher = getJavaLauncherFor(11)
}

compileTestJava.configure {
configureCompiler(it, 11, JavaVersion.VERSION_11)
}

jersey3JettyTest {
tasks.named("jersey3JettyTest", Test) {
javaLauncher = getJavaLauncherFor(11)
}
test {
tasks.named("test", Test) {
javaLauncher = getJavaLauncherFor(11)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ apply from: "$rootDir/gradle/java.gradle"

addTestSuiteForDir('latestDepTest', 'test')

tasks.named("compileMain_java17Java") {
tasks.named("compileMain_java17Java", JavaCompile) {
configureCompiler(it, 17, JavaVersion.VERSION_17)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ addTestSuiteExtendingForDir('ee10LatestDepForkedTest', 'ee10LatestDepTest', 'tes
}
}

forbiddenApisMain_java17 {
tasks.named("forbiddenApisMain_java17") {
failOnMissingClasses = false
}

Expand Down
2 changes: 1 addition & 1 deletion dd-java-agent/instrumentation/jms/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ addTestSuiteExtendingForDir('latestDepForkedTest', 'latestDepTest', 'test')

apply from: "$rootDir/gradle/configure_tests.gradle"

latestDepTest {
tasks.named("latestDepTest", Test) {
finalizedBy 'latestDepForkedTest'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ dependencies {
latestDepTestImplementation group: 'org.scalameta', name: 'munit_2.13', version: '+'
}

tasks.named("compileTestGroovy") {
tasks.named("compileTestGroovy", GroovyCompile) {
dependsOn compileTestScala
classpath += files(sourceSets.test.scala.destinationDirectory)
}

tasks.named("compileLatestDepTestGroovy") {
tasks.named("compileLatestDepTestGroovy", GroovyCompile) {
dependsOn compileLatestDepTestScala
classpath += files(sourceSets.latestDepTest.scala.destinationDirectory)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies {
iastLatestDepTest3Implementation project(':dd-java-agent:agent-iast:iast-test-fixtures')
}

iastLatestDepTest3.configure {
tasks.named("iastLatestDepTest3", Test) {
javaLauncher = getJavaLauncherFor(17)
jvmArgs = ['--add-opens', 'java.base/java.util=ALL-UNNAMED']
}
Expand Down
2 changes: 1 addition & 1 deletion dd-java-agent/instrumentation/mule-4.5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ sourceSets {
}
}

tasks.named("compileMain_java11Java") {
tasks.named("compileMain_java11Java", JavaCompile) {
configureCompiler(it, 11, JavaVersion.VERSION_1_8)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ dependencies {
latestDepTestImplementation group: 'io.netty', name: 'netty-buffer', version: '+'
}

tasks.named("latestDepTest") {
tasks.named("latestDepTest", Test) {
dependsOn "latestDep4Test"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies {
latestDepTestImplementation group: 'io.netty', name: 'netty-common', version: '+'
}

tasks.named("latestDepTest") {
tasks.named("latestDepTest", Test) {
dependsOn "latestDep4Test"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ dependencies {
latestDepTestImplementation group: 'io.netty', name: 'netty-common', version: '+'
}

tasks.named("latestDepTest") {
tasks.named("latestDepTest", Test) {
dependsOn "latestDep4Test"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ tasks.named("compileLatestDepTestGroovy", GroovyCompile) {
classpath += files(sourceSets.latestDepTest.scala.classesDirectory)
}


dependencies {
compileOnly group: 'org.apache.pekko', name: "pekko-actor_2.12", version: pekkoVersion

Expand Down
Loading