1- plugins {
2- id ' java'
3- id ' maven'
4- id ' signing'
5- id ' nu.studer.credentials' version ' 1.0.1'
6- id ' com.github.johnrengelman.shadow' version ' 1.2.4'
7- // id 'io.codearte.nexus-staging'
1+ buildscript {
2+ repositories {
3+ mavenCentral()
4+ maven {
5+ url " https://plugins.gradle.org/m2/"
6+ }
7+ }
8+ dependencies {
9+ classpath " io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0"
10+ classpath " nu.studer:gradle-credentials-plugin:1.0.3"
11+ classpath " com.github.jengelman.gradle.plugins:shadow:2.0.1"
12+ }
813}
914
15+ apply plugin : ' java'
16+ apply plugin : ' maven'
17+ apply plugin : ' signing'
18+ apply plugin : ' nu.studer.credentials'
19+ apply plugin : ' io.codearte.nexus-staging'
20+ apply plugin : ' com.github.johnrengelman.shadow'
21+
1022group = ' com.exsoloscript.challonge'
1123archivesBaseName = ' challonge-java'
12- version = ' 1.0.2-SNAPSHOT '
24+ version = ' 1.0.2'
1325
1426sourceCompatibility = 1.8
1527
@@ -64,12 +76,10 @@ artifacts {
6476 archives shadowJar, javadocJar, sourcesJar
6577}
6678
79+ // Release with: gradlew -Prelease uploadArchives closeAndReleaseRepository
6780if (project. hasProperty(' release' )) {
6881
6982 allprojects {
70- apply plugin : ' signing'
71- apply plugin : ' maven'
72-
7383 // Signature of artifacts
7484 signing {
7585 sign configurations. archives
@@ -95,7 +105,7 @@ if (project.hasProperty('release')) {
95105 pom. project {
96106 name ' challonge-java'
97107 packaging ' jar'
98-
108+ url ' https://github.com/stefangeyer/challonge-java '
99109 description ' Java binding for the CHALLONGE! REST Api'
100110
101111 scm {
@@ -121,10 +131,10 @@ if (project.hasProperty('release')) {
121131 }
122132 }
123133 }
124- }
125- }
126134
127- // nexusStaging {
128- // username = ossrhUsername
129- // password = ossrhPassword
130- // }
135+ nexusStaging {
136+ username = ossrhUsername
137+ password = ossrhPassword
138+ }
139+ }
140+ }
0 commit comments