Skip to content

Commit 6fac2b1

Browse files
committed
Cleaning up for version 1.0.2 release
1 parent 683b33b commit 6fac2b1

2 files changed

Lines changed: 29 additions & 19 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Released under the MIT license.
1212
<dependency>
1313
<groupId>com.exsoloscript.challonge</groupId>
1414
<artifactId>challonge-java</artifactId>
15-
<version>1.0.1</version>
15+
<version>1.0.2</version>
1616
</dependency>
1717
```
1818

build.gradle

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
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+
1022
group = 'com.exsoloscript.challonge'
1123
archivesBaseName = 'challonge-java'
12-
version = '1.0.2-SNAPSHOT'
24+
version = '1.0.2'
1325

1426
sourceCompatibility = 1.8
1527

@@ -64,12 +76,10 @@ artifacts {
6476
archives shadowJar, javadocJar, sourcesJar
6577
}
6678

79+
// Release with: gradlew -Prelease uploadArchives closeAndReleaseRepository
6780
if (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

Comments
 (0)