summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorAdrien Hopkins <ahopk127@my.yorku.ca>2021-05-22 14:05:44 -0500
committerAdrien Hopkins <ahopk127@my.yorku.ca>2021-05-22 14:05:44 -0500
commit8645325803f8580c823cc4c2cec2ad76906b52bb (patch)
treefff893611dfd82aca4af5e677ab782045d5543d9 /build.gradle
parent184b7cc697ffc2dcbd49cfb3d0fd7b14bdac8803 (diff)
parent277500e27010839e03659870bc5890f1535aa8c8 (diff)
Merge branch 'develop' into feature-settings-tab
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