修訂 | 9d7dc915cf2a3a0aa13de66b07f89251b13c75f8 (tree) |
---|---|
時間 | 2023-11-15 04:23:11 |
作者 | Hotshot5000 <sebastian_bugiu@yaho...> |
Commiter | Hotshot5000 |
Using shadowJar in order to build fat jars.
@@ -2,6 +2,10 @@ buildscript { | ||
2 | 2 | repositories { |
3 | 3 | mavenLocal() |
4 | 4 | mavenCentral() |
5 | + gradlePluginPortal() | |
6 | + } | |
7 | + dependencies { | |
8 | + classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.2" | |
5 | 9 | } |
6 | 10 | } |
7 | 11 |
@@ -41,6 +45,7 @@ subprojects | ||
41 | 45 | apply plugin: 'eclipse' |
42 | 46 | apply plugin: 'idea' |
43 | 47 | apply plugin: 'java-library' |
48 | + apply plugin: 'com.github.johnrengelman.shadow' | |
44 | 49 | |
45 | 50 | sourceCompatibility = 1.8 |
46 | 51 | targetCompatibility = 1.8 |
@@ -63,9 +68,20 @@ subprojects | ||
63 | 68 | javadoc { |
64 | 69 | options.addStringOption('Xdoclint:none', '-quiet') |
65 | 70 | } |
71 | + | |
72 | +// jar { | |
73 | +// from { | |
74 | +// configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } | |
75 | +// } | |
76 | +// manifest { | |
77 | +//// attributes "Main-Class": "com.orthanc.mypackage.Main" | |
78 | +// } | |
79 | +// duplicatesStrategy = DuplicatesStrategy.EXCLUDE | |
80 | +// } | |
66 | 81 | } |
67 | 82 | |
68 | 83 | apply plugin: 'eclipse' |
69 | 84 | eclipse.project.name = "root" |
70 | 85 | |
71 | -apply from: rootProject.file('publish.gradle') | |
\ No newline at end of file | ||
86 | +apply from: rootProject.file('publish.gradle') | |
87 | + |
@@ -1,4 +1,8 @@ | ||
1 | 1 | dependencies { |
2 | 2 | implementation project(":gdx-jnigen") |
3 | 3 | implementation gradleApi() |
4 | -} | |
\ No newline at end of file | ||
4 | +} | |
5 | + | |
6 | +//tasks.named('jar') { | |
7 | +// dependsOn(":gdx-jnigen:jar") | |
8 | +//} | |
\ No newline at end of file |
@@ -1,5 +1,5 @@ | ||
1 | -sourceCompatibility = 1.7 | |
2 | -targetCompatibility = 1.7 | |
1 | +sourceCompatibility = 1.8 | |
2 | +targetCompatibility = 1.8 | |
3 | 3 | |
4 | 4 | eclipse { |
5 | 5 | project { |