import net.ltgt.gradle.errorprone.errorprone plugins { id("io.github.reyerizo.gradle.jcstress") } buildscript { extra.apply{ set("moduleName", "io.perfmark.javafifteen") } } val jdkVersion = JavaVersion.VERSION_15 description = "PerfMark Java15 API" sourceSets { create("jmh") } val jmhImplementation by configurations.getting { extendsFrom(configurations.implementation.get()) } val jmhAnnotationProcessor by configurations.getting { extendsFrom(configurations.annotationProcessor.get()) } dependencies { implementation(project(":perfmark-impl")) compileOnly(libs.jsr305) testImplementation(project(":perfmark-api")) testImplementation(project(":perfmark-testing")) jcstressImplementation(project(":perfmark-impl")) jmhImplementation(project(":perfmark-api")) jmhImplementation(project(":perfmark-impl")) jmhImplementation(project(":perfmark-java15")) jmhImplementation(project(":perfmark-testing")) jmhImplementation(libs.junit) jmhImplementation(libs.jmhcore) jmhAnnotationProcessor(libs.jmhanno) } tasks.named("compileJava") { sourceCompatibility = jdkVersion.toString() targetCompatibility = jdkVersion.toString() } tasks.named("javadoc") { exclude("io/perfmark/java15/**") } tasks.register("jmh") { description = "Runs integration tests." group = "stress" testClassesDirs = sourceSets["jmh"].output.classesDirs classpath = sourceSets["jmh"].runtimeClasspath } // ./gradlew --no-daemon clean :perfmark-java9:jcstress jcstress { jcstressDependency = "org.openjdk.jcstress:jcstress-core:0.5" // mode "tough" deoptRatio = "2" } tasks.named("compileJmhJava") { options.errorprone.excludedPaths.set(".*/build/generated/sources/annotationProcessor/.*") } tasks.named("compileJcstressJava") { options.errorprone.excludedPaths.set(".*/build/generated/sources/annotationProcessor/.*") }