Skip to content

Instantly share code, notes, and snippets.

@sw-samuraj
Last active October 31, 2017 09:18
Show Gist options
  • Save sw-samuraj/d05971ed357d74ec5b33b607df33780d to your computer and use it in GitHub Desktop.
Save sw-samuraj/d05971ed357d74ec5b33b607df33780d to your computer and use it in GitHub Desktop.
A minimalistic Gradle configuration for JUnit 5.
apply plugin: 'java'
apply plugin: 'org.junit.platform.gradle.plugin'
ext.junitVersion = '5.0.1'
repositories {
mavenCentral()
}
dependencies {
testCompile "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testCompileOnly 'org.apiguardian:apiguardian-api:1.0.0'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment