diff --git a/kontor-spring/build.gradle b/kontor-spring/build.gradle index 3ce7f09..7bc586b 100644 --- a/kontor-spring/build.gradle +++ b/kontor-spring/build.gradle @@ -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) +// } } } diff --git a/kontor-spring/gradle.properties b/kontor-spring/gradle.properties index f910060..9a561e0 100644 --- a/kontor-spring/gradle.properties +++ b/kontor-spring/gradle.properties @@ -1,3 +1,5 @@ description='Kontor with Spring Boot' version=0.3.0-SNAPSHOT group=de.thpeetz +nexusUser=kontor +nexusPassword=kontorNexus