
Update `spring-boot-loader-tests` with a test that checks verified BouncyCastle jars can be loaded. Currently the Oracle JDK only supports verification if the jar is unpacked. See gh-28837
30 lines
808 B
Groovy
30 lines
808 B
Groovy
import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|
|
|
plugins {
|
|
id "java"
|
|
id "org.springframework.boot"
|
|
}
|
|
|
|
apply plugin: "io.spring.dependency-management"
|
|
|
|
repositories {
|
|
maven { url "file:${rootDir}/../int-test-maven-repository"}
|
|
mavenCentral()
|
|
maven { url "https://repo.spring.io/snapshot" }
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter")
|
|
implementation("org.bouncycastle:bcprov-jdk18on:1.76")
|
|
}
|
|
|
|
tasks.register("bootJarUnpack", BootJar.class) {
|
|
mainClass = "org.springframework.boot.loaderapp.LoaderSignedJarTestApplication"
|
|
classpath = bootJar.classpath
|
|
requiresUnpack '**/bcprov-jdk18on-*.jar'
|
|
archiveClassifier.set("unpack")
|
|
targetJavaVersion = targetCompatibility
|
|
}
|
|
|
|
build.dependsOn bootJarUnpack |