|
|
|
|
@ -17,6 +17,7 @@
@@ -17,6 +17,7 @@
|
|
|
|
|
package org.springframework.boot.image.paketo; |
|
|
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
|
import java.io.FileInputStream; |
|
|
|
|
import java.io.FileWriter; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.io.PrintWriter; |
|
|
|
|
@ -24,6 +25,7 @@ import java.util.ArrayList;
@@ -24,6 +25,7 @@ import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays; |
|
|
|
|
import java.util.Collections; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Properties; |
|
|
|
|
import java.util.function.Consumer; |
|
|
|
|
import java.util.function.Predicate; |
|
|
|
|
import java.util.jar.Attributes; |
|
|
|
|
@ -68,13 +70,22 @@ class PaketoBuilderTests {
@@ -68,13 +70,22 @@ class PaketoBuilderTests {
|
|
|
|
|
GradleBuild gradleBuild; |
|
|
|
|
|
|
|
|
|
@BeforeEach |
|
|
|
|
void configureGradleBuild() { |
|
|
|
|
void configureGradleBuild() throws IOException { |
|
|
|
|
this.gradleBuild.scriptProperty("systemTestMavenRepository", |
|
|
|
|
new File("build/system-test-maven-repository").getAbsoluteFile().toURI().toASCIIString()); |
|
|
|
|
this.gradleBuild.scriptProperty("nativeBuildToolsVersion", getNativeBuildToolsVersion()); |
|
|
|
|
this.gradleBuild.expectDeprecationMessages("BPL_SPRING_CLOUD_BINDINGS_ENABLED.*true.*Deprecated"); |
|
|
|
|
this.gradleBuild.expectDeprecationMessages("BOM table is deprecated"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private String getNativeBuildToolsVersion() throws IOException { |
|
|
|
|
Properties gradleProperties = new Properties(); |
|
|
|
|
try (FileInputStream input = new FileInputStream("../../gradle.properties")) { |
|
|
|
|
gradleProperties.load(input); |
|
|
|
|
return gradleProperties.getProperty("nativeBuildToolsVersion"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void executableJarApp() throws Exception { |
|
|
|
|
writeMainClass(); |
|
|
|
|
|