From e94f8bba62d6a3b441e688a96e778ee8439480f7 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 30 Mar 2021 20:51:33 +0100 Subject: [PATCH] Ensure that upstream jars have been built See gh-25835 --- spring-boot-project/spring-boot-cli/build.gradle | 1 + .../spring-boot-tools/spring-boot-loader-tools/build.gradle | 2 ++ 2 files changed, 3 insertions(+) diff --git a/spring-boot-project/spring-boot-cli/build.gradle b/spring-boot-project/spring-boot-cli/build.gradle index 5b8cdf46d4..1214978270 100644 --- a/spring-boot-project/spring-boot-cli/build.gradle +++ b/spring-boot-project/spring-boot-cli/build.gradle @@ -98,6 +98,7 @@ test { } task fullJar(type: Jar) { + dependsOn configurations.loader classifier = "full" entryCompression = "stored" from(configurations.runtimeClasspath) { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle index e12d9d6771..42d80f497f 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/build.gradle @@ -42,6 +42,7 @@ sourceSets { } task reproducibleLoaderJar(type: Jar) { + dependsOn configurations.loader from { zipTree(configurations.loader.incoming.files.singleFile).matching { exclude "META-INF/LICENSE.txt" @@ -55,6 +56,7 @@ task reproducibleLoaderJar(type: Jar) { } task reproducibleJarModeLayerToolsJar(type: Jar) { + dependsOn configurations.jarmode from { zipTree(configurations.jarmode.incoming.files.singleFile).matching { exclude "META-INF/LICENSE.txt"