add Nexus config
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
2026-07-22 22:54:36 +02:00
parent c685e9aca5
commit 81d6018e0f
2 changed files with 20 additions and 7 deletions
+18 -7
View File
@@ -8,7 +8,8 @@ buildscript {
}
}
repositories {
mavenCentral()
maven { setUrl("https://nexus.thpeetz.de/repository/maven-central") }
//mavenCentral()
maven { setUrl("https://maven.vaadin.com/vaadin-prereleases") }
maven { setUrl("https://repo.spring.io/milestone") }
}
@@ -34,7 +35,8 @@ plugins {
}
repositories {
mavenCentral()
maven { setUrl("https://nexus.thpeetz.de/repository/maven-central") }
//mavenCentral()
ruby.gems()
maven { setUrl("https://maven.vaadin.com/vaadin-prereleases") }
maven { setUrl("https://repo.spring.io/milestone") }
@@ -106,15 +108,24 @@ publishing {
artifact pdfArtifact
}
bootJava(MavenPublication) {
artifact tasks.named("bootDistTar")
}
artifact tasks.named("bootJar")
}
}
repositories {
maven {
name = "gitlabPackageRegistry"
url = uri("https://gitlab.com/api/v4/projects/64726715/packages/maven")
credentials(PasswordCredentials)
url = version.endsWith('SNAPSHOT') ?
'https://nexus.thpeetz.de/repository/maven-snapshots' :
'https://nexus.thpeetz.de/repository/maven-releases'
credentials {
username = project.findProperty('nexusUser')
password = project.findProperty('nexusPassword')
}
}
// maven {
// name = "gitlabPackageRegistry"
// url = uri("https://gitlab.com/api/v4/projects/64726715/packages/maven")
// credentials(PasswordCredentials)
// }
}
}