Skip to content

Commit b8a8418

Browse files
committed
Added generation of sources jar.
1 parent 55e2ce8 commit b8a8418

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dynamicviewpager/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,19 @@ dependencies {
2626
testCompile 'junit:junit:4.12'
2727
compile 'com.android.support:appcompat-v7:24.2.0'
2828
}
29+
30+
// build a jar with source files
31+
task sourcesJar(type: Jar) {
32+
from android.sourceSets.main.java.srcDirs
33+
classifier = 'sources'
34+
}
35+
36+
// build a jar with javadoc
37+
//task javadocJar(type: Jar, dependsOn: Javadoc) {
38+
// classifier = 'javadoc'
39+
//}
40+
41+
artifacts {
42+
archives sourcesJar
43+
// archives javadocJar
44+
}

0 commit comments

Comments
 (0)