Skip to content

Instantly share code, notes, and snippets.

@samuelloza
Created July 21, 2020 17:40
Show Gist options
  • Save samuelloza/5dc4b9243b1760dbc124a06da2db195e to your computer and use it in GitHub Desktop.
Save samuelloza/5dc4b9243b1760dbc124a06da2db195e to your computer and use it in GitHub Desktop.
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
mainClassName = 'Main'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.12'
}
test {
testLogging {
events "failed"
exceptionFormat "full"
}
}
checkstyle {
toolVersion '8.34'
configFile file('config/checkstyle/checkstyle.xml')
checkstyleMain.source = "src/main/"
checkstyleMain.excludes = ["**/src/test/**"]
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/main/java'
}
check.dependsOn jacocoTestReport
test.finalizedBy("checkstyleMain")
test.finalizedBy("jacocoTestReport")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment