prep for release

This commit is contained in:
GasparAM 2023-04-10 17:23:17 +04:00
parent e05a00d85f
commit 621fb80180
2 changed files with 28 additions and 1 deletions

View file

@ -1,5 +1,6 @@
plugins {
id 'java'
id 'maven-publish'
id 'org.springframework.boot' version '3.0.4'
id 'io.spring.dependency-management' version '1.1.0'
id 'org.graalvm.buildtools.native' version '0.9.20'
@ -68,4 +69,27 @@ tasks.register('openWithBrowser') {
}
}
// openWithBrowser.dependsOn('build')
publishing {
publications {
maven(MavenPublication) {
artifactId = 'spring-petclinic'
from components.java
// artifact(build/libs/finance-$version+.jar) {
// extension 'jar'
}
}
repositories {
maven {
// def releasesRepoUrl = layout.buildDirectory.dir("http://localhost:8079/repository/maven-releases/")
// def snapshotsRepoUrl = layout.buildDirectory.dir("http://localhost:8079/repository/maven-snapshots/")
url = "http://localhost:8079/repository/maven-snapshots/"
allowInsecureProtocol=true
credentials {
username 'admin'
password 'admin'
}
// url = layout.buildDirectory.dir('http://localhost:8079/repository/maven-releases/')
}
}
}

View file

@ -3,3 +3,6 @@ distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
nexusUrl=http://localhost:8079/nexus
nexusUsername=admin
nexusPassword=admin