summaryrefslogtreecommitdiff
path: root/hello_sdl_java_ee/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'hello_sdl_java_ee/build.gradle')
-rw-r--r--hello_sdl_java_ee/build.gradle26
1 files changed, 26 insertions, 0 deletions
diff --git a/hello_sdl_java_ee/build.gradle b/hello_sdl_java_ee/build.gradle
new file mode 100644
index 000000000..5c1b1eb70
--- /dev/null
+++ b/hello_sdl_java_ee/build.gradle
@@ -0,0 +1,26 @@
+plugins {
+ id 'java'
+}
+
+version '1.0-SNAPSHOT'
+
+sourceCompatibility = 1.8
+
+repositories {
+ mavenCentral()
+ mavenLocal()
+ google()
+ jcenter()
+}
+// This extraLibs solution is explained here: https://discuss.gradle.org/t/how-to-include-dependencies-in-jar/19571/5
+configurations {
+ // configuration that holds jars to include in the jar
+ extraLibs
+}
+dependencies {
+ extraLibs fileTree(dir: 'libs', include: ['*.jar'])
+ //testCompile group: 'junit', name: 'junit', version: '4.12'
+ extraLibs project(path: ':sdl_java_ee')
+ configurations.implementation.extendsFrom(configurations.extraLibs)
+
+}