File tree Expand file tree Collapse file tree 3 files changed +17
-11
lines changed
Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,22 @@ apply plugin: 'com.jfrog.bintray'
55targetCompatibility = JavaVersion . VERSION_1_6
66sourceCompatibility = 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+
818publishing {
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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments