Skip to content

Instantly share code, notes, and snippets.

@jeserkin
Last active February 28, 2020 21:38
Show Gist options
  • Save jeserkin/2a5dae31b130e2ddf35b375b229f61f3 to your computer and use it in GitHub Desktop.
Save jeserkin/2a5dae31b130e2ddf35b375b229f61f3 to your computer and use it in GitHub Desktop.
Gradle and JUnit setup
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
// compileJava.options.fork = true
// compileJava.options.forkOptions.executable = /path_to_javac
repositories {
mavenCentral()
}
dependencies {
testImplementation(
'junit:junit:4.12',
'org.junit.jupiter:junit-jupiter-api:5.4.2'
)
testRuntime(
'org.junit.jupiter:junit-jupiter-engine:5.4.2',
'org.junit.vintage:junit-vintage-engine:5.4.2'
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment