Skip to content

Commit bc51875

Browse files
committed
add maven
1 parent 75981b1 commit bc51875

File tree

5 files changed

+34
-5
lines changed

5 files changed

+34
-5
lines changed

.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.

LoadManagerLib/build.gradle

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
4+
group='com.yuphee.preload'
25

36
android {
47
compileSdkVersion 25
@@ -29,3 +32,27 @@ dependencies {
2932
compile 'com.android.support:appcompat-v7:25.0.+'
3033
testCompile 'junit:junit:4.12'
3134
}
35+
36+
// build a jar with source files
37+
task sourcesJar(type: Jar) {
38+
from android.sourceSets.main.java.srcDirs
39+
classifier = 'sources'
40+
}
41+
42+
task javadoc(type: Javadoc) {
43+
failOnError false
44+
source = android.sourceSets.main.java.sourceFiles
45+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
46+
classpath += configurations.compile
47+
}
48+
49+
// build a jar with javadoc
50+
task javadocJar(type: Jar, dependsOn: javadoc) {
51+
classifier = 'javadoc'
52+
from javadoc.destinationDir
53+
}
54+
55+
artifacts {
56+
archives sourcesJar
57+
archives javadocJar
58+
}

app/src/main/java/com/zhangyf/loadmanager/listener/DefaultLoadListener.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ public void onLoadingEnd(View loadingView) {
5050
view.stopAnimation();
5151
}
5252

53+
54+
5355
}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.0'
9-
8+
classpath 'com.android.tools.build:gradle:2.3.0'
9+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
1212
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Dec 28 10:00:20 PST 2015
1+
#Tue Mar 14 16:34:39 CST 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

0 commit comments

Comments
 (0)