summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle46
1 files changed, 46 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..2922695
--- /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': mainClassName
+ }
+}
+
+test {
+ useJUnitPlatform()
+ testLogging {
+ events 'passed', 'skipped', 'failed'
+ }
+ finalizedBy jacocoTestReport
+}
+
+jacoco {
+ toolVersion = "0.8.6"
+}
+
+jacocoTestReport {
+ dependsOn test
+}
+
+run {
+} \ No newline at end of file