Created
December 13, 2018 14:00
-
-
Save elmolm/da7f8dc9b37a5789fecad720bc258185 to your computer and use it in GitHub Desktop.
Java EE gradle template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'war' | |
id 'eclipse' | |
} | |
sourceCompatibility = '1.8' | |
targetCompatibility = '1.8' | |
tasks.withType(JavaCompile) { | |
options.encoding = "UTF-8" | |
} | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
providedCompile 'javax:javaee-api:8.0' | |
testCompile('org.junit.jupiter:junit-jupiter-api:5.3.2') | |
testCompile('org.junit.jupiter:junit-jupiter-params:5.3.2') | |
testCompile 'org.mockito:mockito-core:2.23.4' | |
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.3.2') | |
} | |
test { | |
useJUnitPlatform() | |
testLogging { | |
events "passed", "skipped", "failed" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment