Skip to content

Commit

Permalink
Simplify Java target level build script
Browse files Browse the repository at this point in the history
  • Loading branch information
kusalk committed Dec 24, 2024
1 parent 8a13903 commit d3cf1fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 4 additions & 7 deletions scavenger-agent-java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ java {
withSourcesJar()
}

tasks.withType<JavaCompile>() {
// Compile all modules with target level 8 except for test
if (name != "test") {
val java8 = JavaVersion.VERSION_1_8.toString()
sourceCompatibility = java8
targetCompatibility = java8
}
tasks.withType<JavaCompile>().matching {
it.name in setOf("compileJava", "compileIntegrationTestJava")
}.configureEach {
options.release = 8
}

tasks.withType<ShadowJar> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

import integrationTest.support.AgentBenchmarkExtension;
import integrationTest.support.AgentRunner;
import lombok.extern.java.Log;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.TestTemplate;
import org.junit.jupiter.api.extension.ExtendWith;

@Log
@Disabled("Comment/remove this annotation to run benchmarks")
@ExtendWith(AgentBenchmarkExtension.class)
public class BenchmarkTest {
Expand Down

0 comments on commit d3cf1fa

Please sign in to comment.