@@ -18,9 +18,15 @@ plugins {
1818 id ' java-library'
1919 id ' maven-publish'
2020 id ' signing'
21- id ' io.morethan.jmhreport'
22- id ' me.champeau.jmh'
23- id ' io.github.reyerizo.gradle.jcstress'
21+ }
22+
23+ def compositeConsumer = System . getProperty(" rsocket.java.composite.consumer" )
24+ def includePerformancePlugins = compositeConsumer == null
25+
26+ if (includePerformancePlugins) {
27+ apply plugin : ' io.morethan.jmhreport'
28+ apply plugin : ' me.champeau.jmh'
29+ apply plugin : ' io.github.reyerizo.gradle.jcstress'
2430}
2531
2632dependencies {
@@ -40,15 +46,19 @@ dependencies {
4046 testRuntimeOnly ' ch.qos.logback:logback-classic'
4147 testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine'
4248
43- jcstressImplementation(project(" :rsocket-test" ))
44- jcstressImplementation ' org.slf4j:slf4j-api'
45- jcstressImplementation " ch.qos.logback:logback-classic"
46- jcstressImplementation ' io.projectreactor:reactor-test'
49+ if (includePerformancePlugins) {
50+ jcstressImplementation(project(" :rsocket-test" ))
51+ jcstressImplementation ' org.slf4j:slf4j-api'
52+ jcstressImplementation " ch.qos.logback:logback-classic"
53+ jcstressImplementation ' io.projectreactor:reactor-test'
54+ }
4755}
4856
49- jcstress {
50- mode = ' sanity' // sanity, quick, default, tough
51- jcstressDependency = " org.openjdk.jcstress:jcstress-core:0.16"
57+ if (includePerformancePlugins) {
58+ jcstress {
59+ mode = ' sanity' // sanity, quick, default, tough
60+ jcstressDependency = " org.openjdk.jcstress:jcstress-core:0.16"
61+ }
5262}
5363
5464jar {
0 commit comments