RED-7404 - change external-api-v1
This commit is contained in:
parent
3cf0f76ba5
commit
96f7b4cd27
@ -1,9 +1,5 @@
|
|||||||
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
|
||||||
import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.iqser.red.service.java-conventions")
|
id("com.iqser.red.service.java-conventions")
|
||||||
id("org.springframework.boot") version "3.1.3"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -27,34 +23,19 @@ dependencies {
|
|||||||
|
|
||||||
description = "persistence-service-external-api-v1"
|
description = "persistence-service-external-api-v1"
|
||||||
|
|
||||||
tasks.getByName<BootJar>("bootJar") {
|
publishing {
|
||||||
enabled = false
|
publications {
|
||||||
}
|
create<MavenPublication>(name) {
|
||||||
|
from(components["java"])
|
||||||
tasks.getByName<Jar>("jar") {
|
|
||||||
enabled = true
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.named<BootBuildImage>("bootBuildImage") {
|
|
||||||
|
|
||||||
environment.put("BPE_DELIM_JAVA_TOOL_OPTIONS", " ")
|
|
||||||
environment.put("BPE_APPEND_JAVA_TOOL_OPTIONS", "-Dfile.encoding=UTF-8")
|
|
||||||
|
|
||||||
imageName.set("nexus.knecon.com:5001/red/${project.name}:${project.version}")
|
|
||||||
if (project.hasProperty("buildbootDockerHostNetwork")) {
|
|
||||||
network.set("host")
|
|
||||||
}
|
|
||||||
docker {
|
|
||||||
if (project.hasProperty("buildbootDockerHostNetwork")) {
|
|
||||||
bindHostToBuilder.set(true)
|
|
||||||
}
|
}
|
||||||
verboseLogging.set(true)
|
}
|
||||||
|
repositories {
|
||||||
publishRegistry {
|
maven {
|
||||||
username.set(providers.gradleProperty("mavenUser").getOrNull())
|
url = uri("https://nexus.knecon.com/repository/red-platform-releases/")
|
||||||
password.set(providers.gradleProperty("mavenPassword").getOrNull())
|
credentials {
|
||||||
email.set(providers.gradleProperty("mavenEmail").getOrNull())
|
username = providers.gradleProperty("mavenUser").getOrNull();
|
||||||
url.set("https://nexus.knecon.com:5001/")
|
password = providers.gradleProperty("mavenPassword").getOrNull();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user