Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 45a74ed

Browse files
author
Inkception
committed
clean up build.gradle
1 parent 7d541fd commit 45a74ed

5 files changed

Lines changed: 3 additions & 147 deletions

File tree

build.gradle

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -46,88 +46,8 @@ subprojects {
4646
from javadoc
4747
classifier = 'javadoc'
4848
}
49-
50-
/*
51-
publishing {
52-
repositories {
53-
maven {
54-
credentials {
55-
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
56-
username project.ossrhUsername
57-
password project.ossrhPassword
58-
}
59-
}
60-
61-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
62-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
63-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
64-
}
65-
}
66-
67-
publications {
68-
mavenJava(MavenPublication) {
69-
afterEvaluate {
70-
artifactId = jar.baseName
71-
}
72-
73-
artifact sourcesJar
74-
artifact javadocJar
75-
76-
from components.java
77-
78-
pom {
79-
url = 'https://github.com/stefangeyer/challonge-java'
80-
81-
licenses {
82-
license {
83-
name = 'The MIT License'
84-
url = 'https://github.com/stefangeyer/challonge-java/blob/master/LICENSE.txt'
85-
}
86-
}
87-
88-
developers {
89-
developer {
90-
id = 'sgeyer'
91-
name = 'Stefan Geyer'
92-
email = 'stefangeyer@outlook.com'
93-
}
94-
}
95-
96-
scm {
97-
connection = 'scm:git:git://github.com/stefangeyer/challonge-java.git'
98-
developerConnection = 'scm:git:ssh://github.com/stefangeyer/challonge-java.git'
99-
url = 'https://github.com/stefangeyer/challonge-java'
100-
}
101-
}
102-
}
103-
}
104-
105-
*/
106-
}
107-
108-
/*
109-
signing {
110-
useGpgCmd()
111-
sign publishing.publications.mavenJava
112-
}
11349
}
11450

115-
116-
117-
task localPublish {
118-
dependsOn('core:localPublish')
119-
dependsOn('serializers:localPublish')
120-
dependsOn('rest:localPublish')
121-
}
122-
123-
task remotePublish {
124-
dependsOn('core:remotePublish')
125-
dependsOn('serializers:remotePublish')
126-
dependsOn('rest:remotePublish')
127-
}
128-
129-
*/
130-
13151
task codeCoverageReport(type: JacocoReport) {
13252
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
13353

core/build.gradle

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,8 @@ task delombok(type: DelombokTask, dependsOn: compileJava) {
1616
}
1717
}
1818

19-
/*
20-
task localPublish {
21-
dependsOn('publishToMavenLocal')
22-
}
23-
24-
task remotePublish {
25-
dependsOn('publish')
26-
}
27-
*/
28-
2919
javadoc {
3020
dependsOn delombok
3121
source = delombok.outputDir
3222
failOnError = false
33-
}
34-
35-
/*
36-
publishing {
37-
publications {
38-
mavenJava {
39-
pom {
40-
name = 'Challonge Java'
41-
description = 'Java and JVM bindings for the Challonge API'
42-
}
43-
}
44-
}
45-
}
46-
*/
23+
}

rest/build.gradle

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
allprojects {
22
group 'at.stefangeyer.challonge.rest'
3-
}
4-
/*
5-
6-
task localPublish {
7-
dependsOn('retrofit:localPublish')
8-
}
9-
10-
task remotePublish {
11-
dependsOn('retrofit:remotePublish')
12-
}
13-
14-
*/
3+
}

rest/retrofit/build.gradle

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,4 @@ dependencies {
33
compile group: 'com.squareup.retrofit2', name: 'retrofit', version: property('retrofit.version')
44

55
testCompile group: 'com.squareup.retrofit2', name: 'retrofit-mock', version: property('retrofit.mock.version')
6-
}
7-
8-
/*
9-
publishing {
10-
publications {
11-
mavenJava {
12-
pom {
13-
name = 'Challonge Java Retrofit Rest Client'
14-
description = 'Retrofit rest client for Challonge Java'
15-
}
16-
}
17-
}
18-
}
19-
20-
task localPublish {
21-
dependsOn('publishToMavenLocal')
22-
}
23-
24-
task remotePublish {
25-
dependsOn('publish')
26-
}
27-
28-
*/
6+
}

serializers/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
allprojects {
22
group 'at.stefangeyer.challonge.serializer'
3-
}
4-
5-
task localPublish {
6-
dependsOn('gson:localPublish')
7-
}
8-
9-
task remotePublish {
10-
dependsOn('gson:remotePublish')
113
}

0 commit comments

Comments
 (0)