diff options
| author | 2020-08-19 01:02:17 -0700 | |
|---|---|---|
| committer | 2020-08-19 04:02:17 -0400 | |
| commit | 707a24a8c786bf36ff9505468e676f285ab813d1 (patch) | |
| tree | e177ee51314e7c021cba217b6fec88459a78fe63 /enigma-server | |
| 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-server')
| -rw-r--r-- | enigma-server/build.gradle | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/enigma-server/build.gradle b/enigma-server/build.gradle index bf72b184..c447138d 100644 --- a/enigma-server/build.gradle +++ b/enigma-server/build.gradle | |||
| @@ -1,6 +1,14 @@ | |||
| 1 | plugins { | ||
| 2 | id 'application' | ||
| 3 | } | ||
| 4 | |||
| 1 | dependencies { | 5 | dependencies { |
| 2 | implementation project(':enigma') | 6 | implementation project(':enigma') |
| 3 | implementation 'net.sf.jopt-simple:jopt-simple:6.0-alpha-3' | 7 | implementation 'net.sf.jopt-simple:jopt-simple:6.0-alpha-3' |
| 4 | } | 8 | } |
| 5 | 9 | ||
| 6 | jar.manifest.attributes 'Main-Class': 'cuchaz.enigma.network.DedicatedEnigmaServer' | 10 | application { |
| 11 | mainClass = 'cuchaz.enigma.network.DedicatedEnigmaServer' | ||
| 12 | } | ||
| 13 | |||
| 14 | jar.manifest.attributes 'Main-Class': application.mainClass | ||