2023-10-06 12:35:13 +08:00
|
|
|
import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id "java"
|
|
|
|
id "org.springframework.boot"
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: "io.spring.dependency-management"
|
|
|
|
|
|
|
|
repositories {
|
2024-06-25 19:04:40 +08:00
|
|
|
maven { url "file:${rootDir}/../docker-test-maven-repository"}
|
2023-10-06 12:35:13 +08:00
|
|
|
mavenCentral()
|
|
|
|
maven { url "https://repo.spring.io/snapshot" }
|
|
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter")
|
2024-05-06 15:50:20 +08:00
|
|
|
implementation("org.bouncycastle:bcprov-jdk18on:1.78.1")
|
2023-10-06 12:35:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register("bootJarUnpack", BootJar.class) {
|
|
|
|
mainClass = "org.springframework.boot.loaderapp.LoaderSignedJarTestApplication"
|
|
|
|
classpath = bootJar.classpath
|
|
|
|
requiresUnpack '**/bcprov-jdk18on-*.jar'
|
|
|
|
archiveClassifier.set("unpack")
|
|
|
|
targetJavaVersion = targetCompatibility
|
|
|
|
}
|
|
|
|
|
2024-05-06 15:50:20 +08:00
|
|
|
build.dependsOn bootJarUnpack
|