Run all tests on all java version
MODIFY
dd-java-agent/dd-java-agent.gradle
dd-java-agent/dd-java-agent.gradle
@@ -2,12 +2,6 @@ plugins {
id "com.github.johnrengelman.shadow" version "4.0.4"
}
-// Set properties before any plugins get loaded
-project.ext {
- // Execute tests on all JVMs, even rare and outdated ones
- integrationTests = true
-}
-
description = 'dd-java-agent'
apply from: "${rootDir}/gradle/java.gradle"

MODIFY
dd-java-agent/instrumentation/hibernate/core-3.3/core-3.3.gradle
dd-java-agent/instrumentation/hibernate/core-3.3/core-3.3.gradle
* instrumentation isn't able to reference it.
*/
-// Set properties before any plugins get loaded
-project.ext {
- // Execute tests on all JVMs, even rare and outdated ones
- coreJavaInstrumentation = true
- minJavaVersionForTests = JavaVersion.VERSION_1_7
-}
-
muzzle {
pass {
group = "org.hibernate"

MODIFY
dd-java-agent/instrumentation/hibernate/core-4.0/core-4.0.gradle
dd-java-agent/instrumentation/hibernate/core-4.0/core-4.0.gradle
-// Set properties before any plugins get loaded
-project.ext {
- // Execute tests on all JVMs, even rare and outdated ones
- coreJavaInstrumentation = true
- minJavaVersionForTests = JavaVersion.VERSION_1_7
-}
-
muzzle {
pass {
group = "org.hibernate"

MODIFY
dd-java-agent/instrumentation/hibernate/core-4.3/core-4.3.gradle
dd-java-agent/instrumentation/hibernate/core-4.3/core-4.3.gradle
-// Set properties before any plugins get loaded
-project.ext {
- // Execute tests on all JVMs, even rare and outdated ones
- coreJavaInstrumentation = true
- minJavaVersionForTests = JavaVersion.VERSION_1_7
-}
-
muzzle {
pass {
group = "org.hibernate"

MODIFY
dd-java-agent/instrumentation/http-url-connection/http-url-connection.gradle
dd-java-agent/instrumentation/http-url-connection/http-url-connection.gradle
-// Set properties before any plugins get loaded
-project.ext {
- // Execute tests on all JVMs, even rare and outdated ones
- coreJavaInstrumentation = true
-}
-
apply from: "${rootDir}/gradle/java.gradle"
dependencies {

MODIFY
dd-java-agent/instrumentation/java-concurrent/akka-2.5-testing/akka-2.5-testing.gradle
dd-java-agent/instrumentation/java-concurrent/akka-2.5-testing/akka-2.5-testing.gradle
// Set properties before any plugins get loaded
ext {
minJavaVersionForTests = JavaVersion.VERSION_1_8
- // Execute tests on all JVMs, even rare and outdated ones
- coreJavaInstrumentation = true
}
apply from: "${rootDir}/gradle/java.gradle"

MODIFY
dd-java-agent/instrumentation/java-concurrent/akka-testing/akka-testing.gradle
dd-java-agent/instrumentation/java-concurrent/akka-testing/akka-testing.gradle
-// Set properties before any plugins get loaded
-ext {
- // Execute tests on all JVMs, even rare and outdated ones
- coreJavaInstrumentation = true
-}
-
apply from: "${rootDir}/gradle/java.gradle"
apply from: "${rootDir}/gradle/test-with-scala.gradle"

MODIFY
dd-java-agent/instrumentation/java-concurrent/java-concurrent.gradle
dd-java-agent/instrumentation/java-concurrent/java-concurrent.gradle
-// Set properties before any plugins get loaded
-project.ext {
- // Execute tests on all JVMs, even rare and outdated ones
- coreJavaInstrumentation = true
-}
-
apply from: "${rootDir}/gradle/java.gradle"
apply from: "${rootDir}/gradle/test-with-scala.gradle"
apply from: "${rootDir}/gradle/test-with-kotlin.gradle"

MODIFY
dd-java-agent/instrumentation/java-concurrent/scala-testing/scala-testing.gradle
dd-java-agent/instrumentation/java-concurrent/scala-testing/scala-testing.gradle
-// Set properties before any plugins get loaded
-project.ext {
- // Execute tests on all JVMs, even rare and outdated ones
- coreJavaInstrumentation = true
-}
-
apply from: "${rootDir}/gradle/java.gradle"
apply from: "${rootDir}/gradle/test-with-scala.gradle"

MODIFY
dd-java-agent/instrumentation/jdbc/jdbc.gradle
dd-java-agent/instrumentation/jdbc/jdbc.gradle
-// Set properties before any plugins get loaded
-project.ext {
- // Execute tests on all JVMs, even rare and outdated ones
- coreJavaInstrumentation = true
-}
-
apply from: "${rootDir}/gradle/java.gradle"
apply plugin: 'org.unbroken-dome.test-sets'

MODIFY
gradle/java.gradle
gradle/java.gradle
@@ -255,22 +255,6 @@ def isJdkForced(String javaName) {
return (project.hasProperty('forceJdk') && project.getProperty('forceJdk').contains(javaName))
}
-// JVM names we would like to run complete test suite on
-// Note: complete test suite is always run on JVM used for compilation
-// Note2: apparently there is no way to have a 'global' variable, so instead we have per project
-// attribute that has same value in all projects
-project.ext.majorSupportedJVMs = ["7", "11"]
-
-def isTestingEnabled(String javaName) {
- if (javaName in project.majorSupportedJVMs) {
- return true
- }
- if (project.findProperty("coreJavaInstrumentation") || project.findProperty("integrationTests")) {
- return true
- }
- return false
-}
-
// Disable default test tasks if current JVM doesn't match version requirements
tasks.withType(Test).configureEach {
if (name.endsWith("Generated")) {
@@ -326,7 +310,7 @@ for (def env : System.getenv().entrySet()) {
jvmArgs '-XX:CompileCommand=exclude,net.bytebuddy.description.type.TypeDescription$Generic$Visitor$Substitutor::onParameterizedType'
}
- onlyIf { (isJavaVersionAllowed(javaVersion) && isTestingEnabled(javaName)) || isJdkForced(javaName) }
+ onlyIf { isJavaVersionAllowed(javaVersion) || isJdkForced(javaName) }
if (applyCodeCoverage) {
jacoco {
// Disable jacoco for additional JVM tests to speed things up a bit

Run all tests on all java version