From f22a9eb26052214d7b99c5c1f06844222983d7fa Mon Sep 17 00:00:00 2001 From: Seil0 Date: Sat, 8 Jun 2019 15:32:05 +0200 Subject: [PATCH] added com.github.johnrengelman.shadow this makes it a lot easier to build a runnable jar file --- client/build.gradle | 20 ++++++++++++-------- client/settings.gradle | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/client/build.gradle b/client/build.gradle index 8c6bad7..b928591 100644 --- a/client/build.gradle +++ b/client/build.gradle @@ -15,10 +15,21 @@ buildscript { plugins { id 'org.jetbrains.kotlin.jvm' version '1.3.31' + id "com.github.johnrengelman.shadow" version "5.0.0" + id "application" } -group 'com.hso' +compileKotlin { + kotlinOptions.jvmTarget = "1.8" +} +compileTestKotlin { + kotlinOptions.jvmTarget = "1.8" +} + +group 'org.hso' version '1.0-SNAPSHOT' +archivesBaseName = 'TextureSync' +mainClassName = 'org.hso.texturesyncclient.app.Main' repositories { mavenCentral() @@ -30,10 +41,3 @@ dependencies { implementation "com.jfoenix:jfoenix:8.0.9" implementation 'com.google.code.gson:gson:2.8.5' } - -compileKotlin { - kotlinOptions.jvmTarget = "1.8" -} -compileTestKotlin { - kotlinOptions.jvmTarget = "1.8" -} \ No newline at end of file diff --git a/client/settings.gradle b/client/settings.gradle index 25ebf14..ea75463 100644 --- a/client/settings.gradle +++ b/client/settings.gradle @@ -1,2 +1,2 @@ -rootProject.name = 'texuresync_client' +rootProject.name = 'texturesync_client'