-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish artefacts to Sonatype OSSRH (#32)
* Clean up root build.gradle * Publish to Sonatype OSSRH Use Gradle maven-publish, signing, and nexus-staging plugin to publish the plugin artifacts to Sonatype OSSRH
- Loading branch information
1 parent
49a2bef
commit c4acac8
Showing
4 changed files
with
120 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,32 @@ | ||
project('spring-security-cas') { | ||
buildscript { | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
} | ||
dependencies { | ||
classpath "io.github.gradle-nexus:publish-plugin:1.1.0" | ||
} | ||
} | ||
|
||
version = project.projectVersion | ||
|
||
ext.isSnapshot = project.projectVersion.endsWith('-SNAPSHOT') | ||
ext.isReleaseVersion = !isSnapshot | ||
|
||
if (isReleaseVersion) { | ||
apply plugin: 'maven-publish' | ||
apply plugin: "io.github.gradle-nexus.publish-plugin" | ||
|
||
nexusPublishing { | ||
repositories { | ||
sonatype { | ||
def ossUser = System.getenv("SONATYPE_USERNAME") ?: project.hasProperty("sonatypeOssUsername") ? project.sonatypeOssUsername : '' | ||
def ossPass = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : '' | ||
def ossStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: project.hasProperty("sonatypeOssStagingProfileId") ? project.sonatypeOssStagingProfileId : '' | ||
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/") | ||
username = ossUser | ||
password = ossPass | ||
stagingProfileId = ossStagingProfileId | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
grailsVersion=5.1.1 | ||
projectVersion=5.0.0-SNAPSHOT | ||
projectVersion=4.0.0-TEST | ||
threeZeroXProjectVersion=3.0.1 | ||
casClientCoreVersion=3.4.1 | ||
springSecurityCoreVersion=5.0.0-SNAPSHOT | ||
springSecurityVersion=5.6.1 | ||
javaxServletApiVersion=4.0.1 | ||
assetPipelineVersion=3.4.3 | ||
projectDesc=The CAS plugin adds CAS single sign-on support to a Grails application that uses Spring Security. | ||
projectUrl=https://github.com/grails-plugins/grails-spring-security-cas | ||
githubSlug=grails-plugins/grails-spring-security-cas | ||
projectUrl=https://github.com/grails/grails-spring-security-cas | ||
githubSlug=grails/grails-spring-security-cas | ||
githubBranch=master | ||
developers=Burt Beckwith | ||
vcsUrl=https://github.com/grails-plugins/grails-spring-security-cas | ||
websiteUrl=https://github.com/grails-plugins/grails-spring-security-cas | ||
issueTrackerUrl=https://github.com/grails-plugins/grails-spring-security-cas/issues | ||
vcsUrl=https://github.com/grails/grails-spring-security-cas | ||
websiteUrl=https://github.com/grails/grails-spring-security-cas | ||
issueTrackerUrl=https://github.com/grails/grails-spring-security-cas/issues |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters