DevOps-fix

This commit is contained in:
2026-04-15 18:08:47 +03:00
parent 937f267771
commit bf20813611
+32 -4
View File
@@ -11,6 +11,37 @@ runs:
cat > ~/.gradle/init.gradle.kts << 'EOF'
import java.net.URI
initscript {
repositories {
mavenCentral()
mavenLocal()
maven {
url = uri("http://192.168.76.117/repository/devspace-prod-mvn-hosted/")
isAllowInsecureProtocol = true
}
}
dependencies {
classpath("ru.otpbank.plugin:Plugin:0.10.0")
}
}
allprojects {
plugins.apply(ru.otpbank.devspace.plugin.BuildDataPublishPlugin::class.java)
afterEvaluate {
configure<ru.otpbank.devspace.plugin.extensions.ProjectDataExtension>{
this.url.set(uri("http://ui.devspace.xx/devspace-gateway/api/private/v1/generate"))
this.systemToken.set("54894981-c443-4ee0-9d2c-34b2a5f8713e")
authUrl=uri("http://192.168.76.150/realms/devspace-dev/protocol/openid-connect/token")
username="test"
password="test"
clientId="headless"
clientSecret="djCcy3s1TKxtO51a6TsvQ4D0EsR3RliE"
}
}
}
// ----------------------- / Plugin / -----------------------
val OTP_REPO_PREFIX = "https://nexus.isb/repository/"
val MAVEN_CENTRAL = "https://repo.maven.apache.org/maven2/"
val GRADLE_PLUGIN_REPOSITORY = "https://plugins.gradle.org/m2/"
@@ -25,10 +56,7 @@ runs:
repo.url == URI("${OTP_REPO_PREFIX}pluginsgradle-mvn-proxy/") ->
repo.url = URI(GRADLE_PLUGIN_REPOSITORY)
repo.url.toString().startsWith(OTP_REPO_PREFIX) -> {
repo.url =
URI(
"http://192.168.76.117/repository/${repo.url.toString().removePrefix(OTP_REPO_PREFIX)}"
)
repo.url =URI("http://192.168.76.117/repository/${repo.url.toString().removePrefix(OTP_REPO_PREFIX)}")
repo.isAllowInsecureProtocol = true
}
}