import org.springframework.boot.gradle.tasks.bundling.BootJar plugins { id "java" id "org.springframework.boot" } apply plugin: "io.spring.dependency-management" java { sourceCompatibility = '17' targetCompatibility = '17' } repositories { maven { url "file:${rootDir}/../docker-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.78.1") } 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