Skip to content

Commit 80134d2

Browse files
committed
Automatic-Module-Name manifest entries for Jigsaw
Includes upgrade to Jetty 9.4.7 GA. Issue: SPR-13716
1 parent 185c2bf commit 80134d2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

build.gradle

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ configure(allprojects) { project ->
5151
ext.javamailVersion = "1.6.0"
5252
ext.jaxbVersion = "2.2.11"
5353
ext.jaxwsVersion = "2.2.11"
54-
ext.jettyVersion = "9.4.7.RC0"
54+
ext.jettyVersion = "9.4.7.v20170914"
5555
ext.junitJupiterVersion = '5.0.0'
5656
ext.junitPlatformVersion = '1.0.0'
5757
ext.junitVintageVersion = "4.12.0"
@@ -91,11 +91,10 @@ configure(allprojects) { project ->
9191
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
9292
}
9393

94-
def commonCompilerArgs = [
95-
"-Xlint:serial", "-Xlint:cast", "-Xlint:classfile", "-Xlint:dep-ann",
96-
"-Xlint:divzero", "-Xlint:empty", "-Xlint:finally", "-Xlint:overrides",
97-
"-Xlint:path", "-Xlint:processing", "-Xlint:static", "-Xlint:try", "-Xlint:-options"
98-
]
94+
def commonCompilerArgs =
95+
["-Xlint:serial", "-Xlint:cast", "-Xlint:classfile", "-Xlint:dep-ann",
96+
"-Xlint:divzero", "-Xlint:empty", "-Xlint:finally", "-Xlint:overrides",
97+
"-Xlint:path", "-Xlint:processing", "-Xlint:static", "-Xlint:try", "-Xlint:-options"]
9998

10099
compileJava.options*.compilerArgs = commonCompilerArgs +
101100
["-Xlint:varargs", "-Xlint:fallthrough", "-Xlint:rawtypes",
@@ -177,10 +176,11 @@ configure(subprojects - project(":spring-build-src")) { subproject ->
177176
apply from: "${gradleScriptDir}/publish-maven.gradle"
178177

179178
jar {
180-
manifest.attributes["Created-By"] =
181-
"${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"
182179
manifest.attributes["Implementation-Title"] = subproject.name
183180
manifest.attributes["Implementation-Version"] = subproject.version
181+
manifest.attributes["Automatic-Module-Name"] = subproject.name.replace('-', '.') // for Jigsaw
182+
manifest.attributes["Created-By"] =
183+
"${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"
184184

185185
from("${rootProject.projectDir}/src/dist") {
186186
include "license.txt"
@@ -285,10 +285,10 @@ configure(rootProject) {
285285
def gradleBatOpts = "$gradleOpts -XX:MaxHeapSize=256m"
286286
File wrapperFile = file("gradlew")
287287
wrapperFile.text = wrapperFile.text.replace("DEFAULT_JVM_OPTS=",
288-
"GRADLE_OPTS=\"$gradleOpts \$GRADLE_OPTS\"\nDEFAULT_JVM_OPTS=")
288+
"GRADLE_OPTS=\"$gradleOpts \$GRADLE_OPTS\"\nDEFAULT_JVM_OPTS=")
289289
File wrapperBatFile = file("gradlew.bat")
290290
wrapperBatFile.text = wrapperBatFile.text.replace("set DEFAULT_JVM_OPTS=",
291-
"set GRADLE_OPTS=$gradleBatOpts %GRADLE_OPTS%\nset DEFAULT_JVM_OPTS=")
291+
"set GRADLE_OPTS=$gradleBatOpts %GRADLE_OPTS%\nset DEFAULT_JVM_OPTS=")
292292
}
293293
}
294294

0 commit comments

Comments
 (0)