File tree Expand file tree Collapse file tree 5 files changed +46
-78
lines changed Expand file tree Collapse file tree 5 files changed +46
-78
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id ' groovy-gradle-plugin'
3+ }
4+
5+ repositories {
6+ mavenCentral()
7+ }
8+
9+ dependencies {
10+ implementation(" com.gradleup.shadow:com.gradleup.shadow.gradle.plugin:9.1.0" )
311}
Original file line number Diff line number Diff line change 1+ plugins {
2+ id ' java-conv'
3+ id ' com.gradleup.shadow'
4+ id ' application'
5+ }
6+
7+ shadowJar {
8+ archiveBaseName. set(' gumtree' )
9+ archiveClassifier. set(' ' )
10+ archiveVersion. set(' ' )
11+ mergeServiceFiles()
12+ mergeServiceFiles {
13+ path = ' META-INF/annotations'
14+ }
15+ }
16+
17+ application {
18+ mainClass = ' com.github.gumtreediff.client.Run'
19+ applicationName = ' gumtree'
20+ }
21+
22+ tasks. named(' shadowJar' , com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar ) {
23+ archiveBaseName. set(' gumtree' )
24+ }
25+
26+ shadowDistZip. enabled = true
27+ distTar. enabled = false
28+ distZip. enabled = false
29+ startScripts. enabled = false
30+ shadowDistTar. enabled = false
31+
32+ jar. enabled = false
33+
34+ build. finalizedBy installShadowDist
Original file line number Diff line number Diff line change 11plugins {
2- id ' java-conv'
3- id ' com.gradleup.shadow' version ' 9.0.0-rc3'
4- id ' application'
2+ id ' java-dist-conv'
53}
64
75description = ' GumTree minimal distribution.'
@@ -16,39 +14,4 @@ dependencies {
1614 implementation project(' :gen.xml' )
1715 implementation project(' :gen.yaml' )
1816 implementation project(' :gen.json' )
19- }
20-
21- shadowJar {
22- archiveBaseName. set(' gumtree' )
23- archiveClassifier. set(' ' )
24- archiveVersion. set(' ' )
25- mergeServiceFiles()
26- mergeServiceFiles {
27- path = ' META-INF/annotations'
28- }
29- }
30-
31- distributions {
32- shadow {
33- distributionBaseName = ' gumtree'
34- }
35- }
36-
37- application {
38- mainClass = ' com.github.gumtreediff.client.Run'
39- applicationName = ' gumtree'
40- }
41-
42- tasks. named(' shadowJar' , com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar ) {
43- archiveBaseName. set(' gumtree' )
44- }
45-
46- shadowDistZip. enabled = true
47- distTar. enabled = false
48- distZip. enabled = false
49- startScripts. enabled = false
50- shadowDistTar. enabled = false
51-
52- jar. enabled = false
53-
54- build. finalizedBy installShadowDist
17+ }
Original file line number Diff line number Diff line change 11plugins {
2- id ' java-conv'
3- id ' com.gradleup.shadow' version ' 9.0.0-rc3'
4- id ' application'
2+ id ' java-dist-conv'
53}
64
75description = ' GumTree distribution.'
@@ -19,38 +17,3 @@ dependencies {
1917 implementation project(' :gen.xml' )
2018 implementation project(' :gen.yaml' )
2119}
22-
23- shadowJar {
24- archiveBaseName. set(' gumtree' )
25- archiveClassifier. set(' ' )
26- archiveVersion. set(' ' )
27- mergeServiceFiles()
28- mergeServiceFiles {
29- path = ' META-INF/annotations'
30- }
31- }
32-
33- distributions {
34- shadow {
35- distributionBaseName = ' gumtree'
36- }
37- }
38-
39- application {
40- mainClass = ' com.github.gumtreediff.client.Run'
41- applicationName = ' gumtree'
42- }
43-
44- tasks. named(' shadowJar' , com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar ) {
45- archiveBaseName. set(' gumtree' )
46- }
47-
48- shadowDistZip. enabled = true
49- distTar. enabled = false
50- distZip. enabled = false
51- startScripts. enabled = false
52- shadowDistTar. enabled = false
53-
54- jar. enabled = false
55-
56- build. finalizedBy installShadowDist
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ ENV TZ=GMT
2828ENV LANG=C.UTF-8
2929
3030# Copy gumtree distribution from build-stage.
31- COPY --from=build-stage /opt/gumtree/dist/build/install/gumtree / /opt/gumtree
31+ COPY --from=build-stage /opt/gumtree/dist/build/install/dist-shadow / /opt/gumtree
3232# Copy srcml package from build-stage.
3333COPY --from=build-stage /*.deb /opt
3434
You can’t perform that action at this time.
0 commit comments