File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id ' java'
3+ id ' com.github.johnrengelman.shadow' version ' 8.1.1' apply false
34}
45
56compileJava. options. encoding = " UTF-8"
67compileTestJava. options. encoding = " UTF-8"
78
89allprojects {
9- version = ' 1.0.3 '
10+ version = ' 1.0.4 '
1011 group = ' cz.foresttech'
1112
1213 repositories {
@@ -31,21 +32,26 @@ subprojects {
3132 useJUnitPlatform()
3233 }
3334
34- build {
35- dependsOn jar
36- }
37-
3835 if (! (project. name in [' shared' ])) {
3936 apply plugin : ' maven-publish'
37+ apply plugin : ' com.github.johnrengelman.shadow'
4038
4139 dependencies {
4240 implementation project(' :shared' )
4341 }
4442
45- jar {
46- archiveBaseName. set(rootProject. name + ' -' + project. name)
47- archiveVersion. set(version)
48- destinationDirectory. set(file(" $rootDir /build/libs" ))
43+ build {
44+ dependsOn shadowJar
45+ }
46+
47+ shadowJar {
48+ dependsOn(jar)
49+
50+ archiveFileName = " ${ rootProject.name} -${ project.name} -${ project.version} .jar"
51+ archiveClassifier. set(" " )
52+ destinationDirectory = file(" $rootDir /build/libs" )
53+
54+ configurations = [project. configurations. runtimeClasspath]
4955 }
5056
5157 publishing {
You can’t perform that action at this time.
0 commit comments