From 707a24a8c786bf36ff9505468e676f285ab813d1 Mon Sep 17 00:00:00 2001 From: idwtd Date: Wed, 19 Aug 2020 01:02:17 -0700 Subject: Add gradle run tasks (#306) * Add gradle run tasks * Bump gradle and use the `mainClass` property--- enigma-swing/build.gradle | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'enigma-swing') diff --git a/enigma-swing/build.gradle b/enigma-swing/build.gradle index 6d2cd5f2..f7769037 100644 --- a/enigma-swing/build.gradle +++ b/enigma-swing/build.gradle @@ -1,4 +1,5 @@ plugins { + id 'application' id 'com.github.johnrengelman.shadow' version '5.2.0' } @@ -13,7 +14,11 @@ dependencies { implementation 'org.drjekyll:fontchooser:2.4' } -jar.manifest.attributes 'Main-Class': 'cuchaz.enigma.gui.Main' +application { + mainClass = 'cuchaz.enigma.gui.Main' +} + +jar.manifest.attributes 'Main-Class': application.mainClass publishing { publications { @@ -22,4 +27,4 @@ publishing { publication.artifact shadowJar } } -} \ No newline at end of file +} -- cgit v1.2.3