
Create a small Groovy script that can be used in `settings.gradle` files to extend `repositories` to support the various maven repositories required for our build. See gh-42333
30 lines
743 B
Groovy
30 lines
743 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}/../docker-test-maven-repository"}
|
|
mavenCentral()
|
|
spring.mavenRepositories()
|
|
}
|
|
|
|
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
|