diff options
author | Adrien Hopkins <ahopk127@my.yorku.ca> | 2021-03-27 18:10:56 -0500 |
---|---|---|
committer | Adrien Hopkins <ahopk127@my.yorku.ca> | 2021-03-27 18:10:56 -0500 |
commit | 782cf0c76e09abab1c2e11288d610330f383e732 (patch) | |
tree | f8cd3fa0dc799349a2b4746f5d31da89190b66ff /build.gradle | |
parent | fe4135a68cfed92ef336eec663e9c42c2c97dcbc (diff) | |
parent | 0f9a56ac310a1276dbf3b42859a2374828223879 (diff) |
Merge branch 'feature-gradle' into develop
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..1a2ef44 --- /dev/null +++ b/build.gradle @@ -0,0 +1,46 @@ +plugins { + id "java" + id "application" + id "jacoco" +} + +java { + sourceCompatibility = JavaVersion.VERSION_11 +} + +mainClassName = "org.unitConverter.converterGUI.UnitConverterGUI" + +repositories { + mavenCentral() +} + +dependencies { + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0' + testImplementation 'org.junit.jupiter:junit-jupiter-params:5.7.0' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0' +} + +jar { + manifest { + attributes 'Main-Class': "org.unitConverter.converterGUI.UnitConverterGUI" + } +} + +test { + useJUnitPlatform() + testLogging { + events 'passed', 'skipped', 'failed' + } + finalizedBy jacocoTestReport +} + +jacoco { + toolVersion = "0.8.6" +} + +jacocoTestReport { + dependsOn test +} + +run { +}
\ No newline at end of file |