Skip to content

Commit

Permalink
Comment out all the testing stuff
Browse files Browse the repository at this point in the history
Set a Main-Class in the jar's Manifest
  • Loading branch information
BullShark committed Feb 2, 2022
1 parent fea9095 commit 529b1d8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ plugins {

application {
mainClass = 'expectusafterlun.ch.jspeak.JSpeak'
// Use _JAVA_OPTIONS instead
// applicationDefaultJvmArgs = ['-Dawt.useSystemAAFontSettings=gasp -Dswing.aatext=true --enable-preview']
mainClass.set("expectusafterlun.ch.jspeak.JSpeak")
}

apply plugin: 'java'
Expand Down Expand Up @@ -38,7 +35,7 @@ repositories {
dependencies {
// https://mvnrepository.com/artifact/com.miglayout/miglayout-swing
implementation group: 'com.miglayout', name: 'miglayout-swing', version: '5.0'
testImplementation 'junit:junit:4.13'
//testImplementation 'junit:junit:4.13'

// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch04.html
// Example 4-12. Declaring dependencies on subprojects
Expand All @@ -57,6 +54,9 @@ tasks.register('uberJar', Jar) {
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
manifest {
attributes 'Main-Class': 'expectusafterlun.ch.jspeak.JSpeak'
}
}

task executeScript(type:Exec) {
Expand All @@ -73,3 +73,7 @@ jar {
attributes 'Main-Class': 'expectusafterlun.ch.jspeak.JSpeak'
}
}

test {
// useJUnitPlatform()
}

0 comments on commit 529b1d8

Please sign in to comment.