Skip to content

Commit 7e050bf

Browse files
hotchemihotchemi
authored andcommitted
Tweak groupId and fix to upload JavadocJar and SourcesJar.
1 parent c366830 commit 7e050bf

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

annotation/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,22 @@ apply plugin: 'com.jfrog.bintray'
55
targetCompatibility = JavaVersion.VERSION_1_6
66
sourceCompatibility = JavaVersion.VERSION_1_6
77

8+
task sourcesJar(type: Jar) {
9+
from sourceSets.main.java.srcDirs
10+
classifier = 'sources'
11+
}
12+
13+
task javadocJar(type: Jar, dependsOn: javadoc) {
14+
classifier = 'javadoc'
15+
from javadoc.destinationDir
16+
}
17+
818
publishing {
919
publications {
1020
MyPublication(MavenPublication) {
1121
from components.java
22+
artifact sourcesJar
23+
artifact javadocJar
1224
groupId GROUP_ID
1325
artifactId ARTIFACT_ID_ANNOTATION
1426
version VERSION

library/build.gradle

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,10 @@ install {
6666
pom.project {
6767
packaging 'aar'
6868
name ARTIFACT_ID_LIBRARY
69+
groupId GROUP_ID
70+
artifactId ARTIFACT_ID_LIBRARY
71+
version VERSION
6972
url WEBSITE
70-
71-
licenses {
72-
license {
73-
name 'The Apache Software License, Version 2.0'
74-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
75-
}
76-
}
77-
scm {
78-
connection "${WEBSITE}.git"
79-
url WEBSITE
80-
}
8173
}
8274
}
8375
}

processor/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ publishing {
4545
publications {
4646
MyPublication(MavenPublication) {
4747
from components.java
48+
artifact sourcesJar
49+
artifact javadocJar
4850
groupId GROUP_ID
4951
artifactId ARTIFACT_ID_PROCESSOR
5052
version VERSION

0 commit comments

Comments
 (0)