diff options
| author | 2020-08-19 01:02:17 -0700 | |
|---|---|---|
| committer | 2020-08-19 04:02:17 -0400 | |
| commit | 707a24a8c786bf36ff9505468e676f285ab813d1 (patch) | |
| tree | e177ee51314e7c021cba217b6fec88459a78fe63 /enigma-swing | |
| parent | Merge pull request #305 from idwtd/patch-1 (diff) | |
| download | enigma-707a24a8c786bf36ff9505468e676f285ab813d1.tar.gz enigma-707a24a8c786bf36ff9505468e676f285ab813d1.tar.xz enigma-707a24a8c786bf36ff9505468e676f285ab813d1.zip | |
Add gradle run tasks (#306)
* Add gradle run tasks
* Bump gradle and use the `mainClass` property
Diffstat (limited to 'enigma-swing')
| -rw-r--r-- | enigma-swing/build.gradle | 9 |
1 files changed, 7 insertions, 2 deletions
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 @@ | |||
| 1 | plugins { | 1 | plugins { |
| 2 | id 'application' | ||
| 2 | id 'com.github.johnrengelman.shadow' version '5.2.0' | 3 | id 'com.github.johnrengelman.shadow' version '5.2.0' |
| 3 | } | 4 | } |
| 4 | 5 | ||
| @@ -13,7 +14,11 @@ dependencies { | |||
| 13 | implementation 'org.drjekyll:fontchooser:2.4' | 14 | implementation 'org.drjekyll:fontchooser:2.4' |
| 14 | } | 15 | } |
| 15 | 16 | ||
| 16 | jar.manifest.attributes 'Main-Class': 'cuchaz.enigma.gui.Main' | 17 | application { |
| 18 | mainClass = 'cuchaz.enigma.gui.Main' | ||
| 19 | } | ||
| 20 | |||
| 21 | jar.manifest.attributes 'Main-Class': application.mainClass | ||
| 17 | 22 | ||
| 18 | publishing { | 23 | publishing { |
| 19 | publications { | 24 | publications { |
| @@ -22,4 +27,4 @@ publishing { | |||
| 22 | publication.artifact shadowJar | 27 | publication.artifact shadowJar |
| 23 | } | 28 | } |
| 24 | } | 29 | } |
| 25 | } \ No newline at end of file | 30 | } |