mirror of
https://github.com/corda/corda.git
synced 2025-01-18 02:39:51 +00:00
ENT-1463, ENT-1903: Raise minimum JDK to 8u171 to fix ZIP compression bugs, (#3367)
* Update JarFilter unit tests to show any Gradle stacktraces. * Raise minimum version of JDK8 to 8u171 - fixes ZIP compression bugs.
This commit is contained in:
parent
81730b0a14
commit
14dcce49ac
@ -84,8 +84,9 @@ buildscript {
|
||||
|
||||
ext.deterministic_rt_version = '1.0-SNAPSHOT'
|
||||
|
||||
// Update 121 is required for ObjectInputFilter and at time of writing 131 was latest:
|
||||
ext.java8_minUpdateVersion = '131'
|
||||
// Update 121 is required for ObjectInputFilter.
|
||||
// Updates [131, 161] also have zip compression bugs on MacOS (High Sierra).
|
||||
ext.java8_minUpdateVersion = '171'
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
|
@ -88,8 +88,7 @@ class DummyJar(
|
||||
jar.write(arrayOfJunk(DATA_SIZE))
|
||||
|
||||
// One uncompressed text file
|
||||
val text = """
|
||||
Jar: ${_path.toAbsolutePath()}
|
||||
val text = """Jar: ${_path.toAbsolutePath()}
|
||||
Class: ${testClass.name}
|
||||
""".toByteArray()
|
||||
jar.putNextEntry(uncompressed("comment.txt", text))
|
||||
|
@ -262,7 +262,7 @@ task jarFilter(type: JarFilterTask) {
|
||||
testProjectDir.newFile("build.gradle").writeText(script)
|
||||
return GradleRunner.create()
|
||||
.withProjectDir(testProjectDir.root)
|
||||
.withArguments(getBasicArgsForTasks("jarFilter", "--stacktrace"))
|
||||
.withArguments(getBasicArgsForTasks("jarFilter"))
|
||||
.withPluginClasspath()
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ task metafix(type: MetaFixerTask) {
|
||||
testProjectDir.newFile("build.gradle").writeText(script)
|
||||
return GradleRunner.create()
|
||||
.withProjectDir(testProjectDir.root)
|
||||
.withArguments(getBasicArgsForTasks("metafix", "--stacktrace"))
|
||||
.withArguments(getBasicArgsForTasks("metafix"))
|
||||
.withPluginClasspath()
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ private val testGradleUserHome: String get() = testGradleUserHomeValue
|
||||
?: throw AssumptionViolatedException("System property 'test.gradle.user.home' not set.")
|
||||
|
||||
fun getGradleArgsForTasks(vararg taskNames: String): MutableList<String> = getBasicArgsForTasks(*taskNames).apply { add("--info") }
|
||||
fun getBasicArgsForTasks(vararg taskNames: String): MutableList<String> = mutableListOf(*taskNames, "-g", testGradleUserHome)
|
||||
fun getBasicArgsForTasks(vararg taskNames: String): MutableList<String> = mutableListOf(*taskNames, "--stacktrace", "-g", testGradleUserHome)
|
||||
|
||||
@Throws(IOException::class)
|
||||
fun copyResourceTo(resourceName: String, target: Path) {
|
||||
|
Loading…
Reference in New Issue
Block a user