Last active
August 27, 2019 04:49
-
-
Save ecojuntak/37af41ca821ab4e1be6f0beaffc2fd15 to your computer and use it in GitHub Desktop.
This file contains 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
/* | |
* This file was generated by the Gradle 'init' task. | |
* | |
* This generated file contains a sample Java project to get you started. | |
* For more details take a look at the Java Quickstart chapter in the Gradle | |
* User Manual available at https://docs.gradle.org/5.5.1/userguide/tutorial_java_projects.html | |
*/ | |
plugins { | |
// Apply the java plugin to add support for Java | |
id 'java' | |
id 'jacoco' | |
id 'com.github.sherter.google-java-format' version '0.8' | |
id 'application' | |
} | |
repositories { | |
// Use jcenter for resolving dependencies. | |
// You can declare any Maven/Ivy/file repository here. | |
jcenter() | |
} | |
application { | |
// Define the main class for the application | |
mainClassName = 'com.gojek.bootcamp.calculator.App' | |
} | |
googleJavaFormat { | |
options style: 'AOSP' | |
} | |
dependencies { | |
// Use JUnit test framework | |
testImplementation 'junit:junit:4.12' | |
} | |
test { | |
beforeTest { descriptor -> | |
logger.lifecycle("Running test: ${descriptor}") | |
} | |
finalizedBy jacocoTestReport | |
testLogging { | |
afterSuite { desc, result -> | |
if (!desc.parent) { | |
println "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment