Skip to content

Commit 7db5ce9

Browse files
committed
include graphql java manually
- the library does not include maven dependencies - the war file is modified to use this version instead of the one received from maven
1 parent 3bd7df3 commit 7db5ce9

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

lib/graphql-java-17.6.jar

2.65 MB
Binary file not shown.

scheduling-api-http/build.gradle

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,33 @@ war {
3131
rootSpec.exclude("**/application-test.properties")
3232
}
3333

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+
3461
// FIXME: investigate why transitive dependencies of dependencies defined
3562
// with providedCompile are still included in the WAR file that is generated
3663
dependencies {

0 commit comments

Comments
 (0)