diff options
| author | 2020-08-19 01:02:17 -0700 | |
|---|---|---|
| committer | 2020-08-19 04:02:17 -0400 | |
| commit | 707a24a8c786bf36ff9505468e676f285ab813d1 (patch) | |
| tree | e177ee51314e7c021cba217b6fec88459a78fe63 /enigma-cli | |
| parent | Merge pull request #305 from idwtd/patch-1 (diff) | |
| download | enigma-fork-707a24a8c786bf36ff9505468e676f285ab813d1.tar.gz enigma-fork-707a24a8c786bf36ff9505468e676f285ab813d1.tar.xz enigma-fork-707a24a8c786bf36ff9505468e676f285ab813d1.zip | |
Add gradle run tasks (#306)
* Add gradle run tasks
* Bump gradle and use the `mainClass` property
Diffstat (limited to 'enigma-cli')
| -rw-r--r-- | enigma-cli/build.gradle | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/enigma-cli/build.gradle b/enigma-cli/build.gradle index 8de307e..3490613 100644 --- a/enigma-cli/build.gradle +++ b/enigma-cli/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 | ||
| @@ -6,7 +7,11 @@ dependencies { | |||
| 6 | implementation project(':enigma') | 7 | implementation project(':enigma') |
| 7 | } | 8 | } |
| 8 | 9 | ||
| 9 | jar.manifest.attributes 'Main-Class': 'cuchaz.enigma.command.Main' | 10 | application { |
| 11 | mainClass = 'cuchaz.enigma.command.Main' | ||
| 12 | } | ||
| 13 | |||
| 14 | jar.manifest.attributes 'Main-Class': application.mainClass | ||
| 10 | 15 | ||
| 11 | publishing { | 16 | publishing { |
| 12 | publications { | 17 | publications { |
| @@ -15,4 +20,4 @@ publishing { | |||
| 15 | publication.artifact shadowJar | 20 | publication.artifact shadowJar |
| 16 | } | 21 | } |
| 17 | } | 22 | } |
| 18 | } \ No newline at end of file | 23 | } |