release: 0.40.3
This commit is contained in:
parent
05f448dd2b
commit
7147845f72
1 changed files with 12 additions and 1 deletions
13
build.gradle
13
build.gradle
|
@ -16,7 +16,7 @@ plugins {
|
|||
apply plugin: "maven-publish"
|
||||
|
||||
|
||||
version = "0.40.3-SNAPSHOT"
|
||||
version = "0.40.3"
|
||||
group = "org.domaindrivenarchitecture.provs"
|
||||
|
||||
|
||||
|
@ -177,6 +177,17 @@ tasks.register('binariesInstall') {
|
|||
}
|
||||
}
|
||||
|
||||
// needs token in env variable: RELEASE_ARTIFACT_TOKEN
|
||||
tasks.register('publishRelease') {
|
||||
dependsOn(uberjarServer, uberjarDesktop, uberjarSyspec)
|
||||
doLast {
|
||||
println "Releasing ..."
|
||||
def token = System.getenv('RELEASE_ARTIFACT_TOKEN')
|
||||
def cmd = "curl -X \"POST\" \"https://repo.prod.meissa.de/api/v1/repos/meissa/provs/releases\" -H \"accept: application/json\" -H \"Content-Type: application/json\" -d '{ \"body\": \"Provides files for release 0.40.3-SNAPSHOT\", \"tag_name\": \"0.40.3-SNAPSHOT\"}' -H \"Authorization: token $token\""
|
||||
exec { commandLine("sh", "-c", cmd) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// publish to repo.prod.meissa.de with task "publishLibraryPublicationToMeissaRepository" -- (using pattern "publishLibraryPublicationTo<MAVEN REPOSITORY NAME>Repository")
|
||||
publishing {
|
||||
|
|
Loading…
Reference in a new issue