Skip to content

Commit

Permalink
Add new nexus release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
feidens committed Dec 14, 2021
1 parent c1642ac commit 108ca08
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
}

group 'org.cryptimeleon'
archivesBaseName = project.name
boolean isRelease = project.hasProperty("release")
version = '3.1.0' + (isRelease ? "" : "-SNAPSHOT")


sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
Expand All @@ -22,7 +22,7 @@ repositories {
mavenCentral()
}

def mathVersionNoSuffix = '3.0.0'
def mathVersionNoSuffix = '3.+'

dependencies {

Expand Down Expand Up @@ -148,15 +148,13 @@ publishing {
}
}
}
}

nexusPublishing {
repositories {
maven {
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_TOKEN")
}
name = 'OSSRH'
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
url = version.endsWith('SNAPSHOT') ? '' : releasesRepoUrl
sonatype {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_TOKEN")
}
}
}
Expand Down

0 comments on commit 108ca08

Please sign in to comment.