File tree Expand file tree Collapse file tree 2 files changed +29
-22
lines changed Expand file tree Collapse file tree 2 files changed +29
-22
lines changed Original file line number Diff line number Diff line change @@ -3,25 +3,6 @@ apply plugin: 'com.jfrog.bintray'
33
44version = versionName
55
6- task sourcesJar (type : Jar ) {
7- from android. sourceSets. main. java. srcDirs
8- classifier = ' sources'
9- }
10-
11- task javadoc (type : Javadoc ) {
12- source = android. sourceSets. main. java. srcDirs
13- classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
14- }
15-
16- task javadocJar (type : Jar , dependsOn : javadoc) {
17- classifier = ' javadoc'
18- from javadoc. destinationDir
19- }
20- artifacts {
21- archives javadocJar
22- archives sourcesJar
23- }
24-
256Properties properties = new Properties ()
267File localProperties = project. rootProject. file(' local.properties' );
278if (localProperties. exists()) {
@@ -37,8 +18,7 @@ bintray {
3718 dryRun = bintrayDryRun
3819 publish = true
3920
40- // configurations = ['archives']
41- publications = [" ViewPagerAnimatorLibrary" ]
21+ publications = [" ViewPagerAnimatorLibrary" , " ViewPagerAnimatorSources" , " ViewPagerAnimatorJavadoc" ]
4222 pkg {
4323 repo = ' maven'
4424 name = " ViewPagerAnimator"
Original file line number Diff line number Diff line change @@ -26,14 +26,41 @@ android {
2626 }
2727}
2828
29+ task sourceJar (type : Jar ) {
30+ from android. sourceSets. main. java. srcDirs
31+ classifier = ' sources'
32+ }
33+
34+ task javadoc (type : Javadoc ) {
35+ source = android. sourceSets. main. java. srcDirs
36+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
37+ }
38+
39+ task javadocJar (type : Jar , dependsOn : javadoc) {
40+ classifier = ' javadoc'
41+ from javadoc. destinationDir
42+ }
43+
2944publishing {
3045 publications {
3146 ViewPagerAnimatorLibrary (MavenPublication ) {
3247 groupId ' com.stylingandroid.viewpageranimator'
33- artifactId ' library '
48+ artifactId ' viewpageranimator '
3449 version versionName
3550 artifact(" $buildDir /outputs/aar/viewpageranimator-release.aar" )
3651 }
52+ ViewPagerAnimatorSources (MavenPublication ) {
53+ groupId ' com.stylingandroid.viewpageranimator'
54+ artifactId ' viewpageranimator'
55+ version versionName
56+ artifact sourceJar
57+ }
58+ ViewPagerAnimatorJavadoc (MavenPublication ) {
59+ groupId ' com.stylingandroid.viewpageranimator'
60+ artifactId ' viewpageranimator'
61+ version versionName
62+ artifact javadocJar
63+ }
3764 }
3865}
3966
You can’t perform that action at this time.
0 commit comments