mirror of
https://github.com/corda/corda.git
synced 2024-12-24 07:06:44 +00:00
Reduce test execution times by explicitly configure quasar package exclusions (#5161)
* Reduce test execution times by explicitly configure quasar package exclusions (using new quasar util extension introduced in Corda gradle plugins 5.0.1-SNAPSHOT). * Remove SNAPSHOT from Corda gradle plugins version identifier. * Incorporating PR review feedback from CR. * Minor consolidation clean-up. * Minor consolidation clean-up. * Minor consolidation clean-up.
This commit is contained in:
parent
d22fd56202
commit
06db5973d5
20
build.gradle
20
build.gradle
@ -15,6 +15,26 @@ buildscript {
|
|||||||
|
|
||||||
ext.quasar_group = 'co.paralleluniverse'
|
ext.quasar_group = 'co.paralleluniverse'
|
||||||
ext.quasar_version = constants.getProperty("quasarVersion")
|
ext.quasar_version = constants.getProperty("quasarVersion")
|
||||||
|
ext.quasar_exclusions = [
|
||||||
|
'co.paralleluniverse**',
|
||||||
|
'groovy**',
|
||||||
|
'com.esotericsoftware.**',
|
||||||
|
'jdk**',
|
||||||
|
'junit**',
|
||||||
|
'kotlin**',
|
||||||
|
'net.rubygrapefruit.**',
|
||||||
|
'org.gradle.**',
|
||||||
|
'org.apache.**',
|
||||||
|
'org.jacoco.**',
|
||||||
|
'org.junit**',
|
||||||
|
'org.slf4j**',
|
||||||
|
'worker.org.gradle.**',
|
||||||
|
'com.nhaarman.mockito_kotlin**',
|
||||||
|
'org.assertj**',
|
||||||
|
'org.hamcrest**',
|
||||||
|
'org.mockito**',
|
||||||
|
'org.opentest4j**'
|
||||||
|
]
|
||||||
|
|
||||||
// gradle-capsule-plugin:1.0.2 contains capsule:1.0.1 by default.
|
// gradle-capsule-plugin:1.0.2 contains capsule:1.0.1 by default.
|
||||||
// We must configure it manually to use the latest capsule version.
|
// We must configure it manually to use the latest capsule version.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# their own projects. So don't get fancy with syntax!
|
# their own projects. So don't get fancy with syntax!
|
||||||
|
|
||||||
cordaVersion=5.0-SNAPSHOT
|
cordaVersion=5.0-SNAPSHOT
|
||||||
gradlePluginsVersion=5.0.0
|
gradlePluginsVersion=5.0.1
|
||||||
kotlinVersion=1.2.71
|
kotlinVersion=1.2.71
|
||||||
java8MinUpdateVersion=171
|
java8MinUpdateVersion=171
|
||||||
# ***************************************************************#
|
# ***************************************************************#
|
||||||
|
@ -170,6 +170,35 @@ task smokeTest(type: Test) {
|
|||||||
classpath = sourceSets.smokeTest.runtimeClasspath
|
classpath = sourceSets.smokeTest.runtimeClasspath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// quasar exclusions upon agent code instrumentation at run-time
|
||||||
|
quasar {
|
||||||
|
excludePackages.addAll(
|
||||||
|
"antlr**",
|
||||||
|
"com.codahale**",
|
||||||
|
"com.fasterxml.**",
|
||||||
|
"com.github.benmanes.caffeine.**",
|
||||||
|
"com.google.**",
|
||||||
|
"com.lmax.**",
|
||||||
|
"com.zaxxer.**",
|
||||||
|
"net.bytebuddy**",
|
||||||
|
"io.github.classgraph**",
|
||||||
|
"io.netty*",
|
||||||
|
"liquibase**",
|
||||||
|
"net.i2p.crypto.**",
|
||||||
|
"nonapi.io.github.classgraph.**",
|
||||||
|
"org.apiguardian.**",
|
||||||
|
"org.bouncycastle**",
|
||||||
|
"org.codehaus.**",
|
||||||
|
"org.h2**",
|
||||||
|
"org.hibernate**",
|
||||||
|
"org.jboss.**",
|
||||||
|
"org.objenesis**",
|
||||||
|
"org.w3c.**",
|
||||||
|
"org.xml**",
|
||||||
|
"org.yaml**",
|
||||||
|
"rx**")
|
||||||
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
testArtifacts testJar
|
testArtifacts testJar
|
||||||
}
|
}
|
||||||
|
@ -226,6 +226,35 @@ task integrationTest(type: Test) {
|
|||||||
systemProperty 'testing.global.port.allocation.starting.port', 10000
|
systemProperty 'testing.global.port.allocation.starting.port', 10000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// quasar exclusions upon agent code instrumentation at run-time
|
||||||
|
quasar {
|
||||||
|
excludePackages.addAll(
|
||||||
|
"antlr**",
|
||||||
|
"com.codahale**",
|
||||||
|
"com.fasterxml.**",
|
||||||
|
"com.github.benmanes.caffeine.**",
|
||||||
|
"com.google.**",
|
||||||
|
"com.lmax.**",
|
||||||
|
"com.zaxxer.**",
|
||||||
|
"net.bytebuddy**",
|
||||||
|
"io.github.classgraph**",
|
||||||
|
"io.netty*",
|
||||||
|
"liquibase**",
|
||||||
|
"net.i2p.crypto.**",
|
||||||
|
"nonapi.io.github.classgraph.**",
|
||||||
|
"org.apiguardian.**",
|
||||||
|
"org.bouncycastle**",
|
||||||
|
"org.codehaus.**",
|
||||||
|
"org.h2**",
|
||||||
|
"org.hibernate**",
|
||||||
|
"org.jboss.**",
|
||||||
|
"org.objenesis**",
|
||||||
|
"org.w3c.**",
|
||||||
|
"org.xml**",
|
||||||
|
"org.yaml**",
|
||||||
|
"rx**")
|
||||||
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
baseName 'corda-node'
|
baseName 'corda-node'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user