File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 31
31
rootSpec. exclude(" **/application-test.properties" )
32
32
}
33
33
34
+ task updateWar (type : Zip , dependsOn : war) {
35
+ def originalWar = file(" build/libs/scheduling-api-${ version} .war" )
36
+
37
+ archiveName = " scheduling-api-${ version} .war"
38
+
39
+ from(zipTree(originalWar)) {
40
+ // Remove the original graphql jar if it exists
41
+ exclude(" **/WEB-INF/lib/graphql-java-17.6.jar" )
42
+ }
43
+
44
+ // Include our own graphql jar
45
+ from(" $rootDir /lib/graphql-java-17.6.jar" ) {
46
+ into(' WEB-INF/lib/' )
47
+ }
48
+
49
+ destinationDir file(" ${ buildDir} /distributions" )
50
+ }
51
+
52
+ task copyWar (type :Copy , dependsOn : updateWar) {
53
+ // copy back the modified war into the libs folder
54
+ from " ${ buildDir} /distributions/scheduling-api-${ version} .war"
55
+ into " ${ buildDir} /libs"
56
+
57
+ }
58
+
59
+ build. dependsOn copyWar
60
+
34
61
// FIXME: investigate why transitive dependencies of dependencies defined
35
62
// with providedCompile are still included in the WAR file that is generated
36
63
dependencies {
You can’t perform that action at this time.
0 commit comments