mirror of
https://github.com/lightbend/config.git
synced 2025-03-13 18:50:45 +08:00
commit
558c1e22f5
13
.travis.yml
13
.travis.yml
@ -5,13 +5,20 @@ language: scala
|
||||
|
||||
before_install:
|
||||
# using jabba for custom jdk management
|
||||
- curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.11.2/install.sh | bash && . ~/.jabba/jabba.sh
|
||||
- jabba install adopt@1.8.202-08
|
||||
- java -version
|
||||
- curl -sL https://git.io/jabba | bash && . ~/.jabba/jabba.sh
|
||||
- jabba install adopt@1.8.212-03
|
||||
- jabba install adopt@1.11.0-3
|
||||
|
||||
script:
|
||||
- jabba use $JDK
|
||||
- java -version
|
||||
- sbt ++$TRAVIS_SCALA_VERSION test doc
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- env: JDK=adopt@1.8.212-03
|
||||
- env: JDK=adopt@1.11.0-3
|
||||
|
||||
before_cache:
|
||||
# Remove to avoid unnecessary cache updates
|
||||
- find $HOME/.sbt -name "*.lock" -delete
|
||||
|
@ -151,7 +151,8 @@ lazy val commonSettings: Seq[Setting[_]] = Def.settings(
|
||||
unpublished,
|
||||
scalariformPreferences := scalariformPreferences.value
|
||||
.setPreference(IndentSpaces, 4)
|
||||
.setPreference(FirstArgumentOnNewline, Preserve)
|
||||
.setPreference(FirstArgumentOnNewline, Preserve),
|
||||
Compile / compile / javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
|
||||
)
|
||||
|
||||
def proj(id: String, base: File) = Project(id, base) settings commonSettings
|
||||
|
@ -302,7 +302,13 @@ public class ConfigImpl {
|
||||
final Properties systemProperties = System.getProperties();
|
||||
final Properties systemPropertiesCopy = new Properties();
|
||||
synchronized (systemProperties) {
|
||||
systemPropertiesCopy.putAll(systemProperties);
|
||||
for (Map.Entry<Object, Object> entry: systemProperties.entrySet()) {
|
||||
// Java 11 introduces 'java.version.date', but we don't want that to
|
||||
// overwrite 'java.version'
|
||||
if (!entry.getKey().toString().startsWith("java.version.")) {
|
||||
systemPropertiesCopy.put(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
return systemPropertiesCopy;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user