From 6fac2b1691a79471d350bbc9ab41651fbb793fda Mon Sep 17 00:00:00 2001 From: Stefan Geyer Date: Sun, 10 Sep 2017 23:40:28 +0200 Subject: [PATCH] Cleaning up for version 1.0.2 release --- README.md | 2 +- build.gradle | 46 ++++++++++++++++++++++++++++------------------ 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 3fee445..5d77760 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Released under the MIT license. com.exsoloscript.challonge challonge-java - 1.0.1 + 1.0.2 ``` diff --git a/build.gradle b/build.gradle index 5c3ea98..02049f7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,15 +1,27 @@ -plugins { - id 'java' - id 'maven' - id 'signing' - id 'nu.studer.credentials' version '1.0.1' - id 'com.github.johnrengelman.shadow' version '1.2.4' -// id 'io.codearte.nexus-staging' +buildscript { + repositories { + mavenCentral() + maven { + url "https://plugins.gradle.org/m2/" + } + } + dependencies { + classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0" + classpath "nu.studer:gradle-credentials-plugin:1.0.3" + classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1" + } } +apply plugin: 'java' +apply plugin: 'maven' +apply plugin: 'signing' +apply plugin: 'nu.studer.credentials' +apply plugin: 'io.codearte.nexus-staging' +apply plugin: 'com.github.johnrengelman.shadow' + group = 'com.exsoloscript.challonge' archivesBaseName = 'challonge-java' -version = '1.0.2-SNAPSHOT' +version = '1.0.2' sourceCompatibility = 1.8 @@ -64,12 +76,10 @@ artifacts { archives shadowJar, javadocJar, sourcesJar } +// Release with: gradlew -Prelease uploadArchives closeAndReleaseRepository if (project.hasProperty('release')) { allprojects { - apply plugin: 'signing' - apply plugin: 'maven' - // Signature of artifacts signing { sign configurations.archives @@ -95,7 +105,7 @@ if (project.hasProperty('release')) { pom.project { name 'challonge-java' packaging 'jar' - + url 'https://github.com/stefangeyer/challonge-java' description 'Java binding for the CHALLONGE! REST Api' scm { @@ -121,10 +131,10 @@ if (project.hasProperty('release')) { } } } - } -} -//nexusStaging { -// username = ossrhUsername -// password = ossrhPassword -//} \ No newline at end of file + nexusStaging { + username = ossrhUsername + password = ossrhPassword + } + } +} \ No newline at end of file