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 { repositories {
mavenCentral() maven { setUrl("https://nexus.thpeetz.de/repository/maven-central") }
//mavenCentral()
maven { setUrl("https://maven.vaadin.com/vaadin-prereleases") } maven { setUrl("https://maven.vaadin.com/vaadin-prereleases") }
maven { setUrl("https://repo.spring.io/milestone") } maven { setUrl("https://repo.spring.io/milestone") }
} }
@@ -34,7 +35,8 @@ plugins {
} }
repositories { repositories {
mavenCentral() maven { setUrl("https://nexus.thpeetz.de/repository/maven-central") }
//mavenCentral()
ruby.gems() ruby.gems()
maven { setUrl("https://maven.vaadin.com/vaadin-prereleases") } maven { setUrl("https://maven.vaadin.com/vaadin-prereleases") }
maven { setUrl("https://repo.spring.io/milestone") } maven { setUrl("https://repo.spring.io/milestone") }
@@ -106,15 +108,24 @@ publishing {
artifact pdfArtifact artifact pdfArtifact
} }
bootJava(MavenPublication) { bootJava(MavenPublication) {
artifact tasks.named("bootDistTar") artifact tasks.named("bootJar")
} }
} }
repositories { repositories {
maven { maven {
name = "gitlabPackageRegistry" url = version.endsWith('SNAPSHOT') ?
url = uri("https://gitlab.com/api/v4/projects/64726715/packages/maven") 'https://nexus.thpeetz.de/repository/maven-snapshots' :
credentials(PasswordCredentials) '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)
// }
} }
} }
+2
View File
@@ -1,3 +1,5 @@
description='Kontor with Spring Boot' description='Kontor with Spring Boot'
version=0.3.0-SNAPSHOT version=0.3.0-SNAPSHOT
group=de.thpeetz group=de.thpeetz
nexusUser=kontor
nexusPassword=kontorNexus