File tree Expand file tree Collapse file tree 7 files changed +54
-12
lines changed Expand file tree Collapse file tree 7 files changed +54
-12
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
+ apply plugin : ' com.github.dcendents.android-maven'
2
3
3
4
android {
4
5
compileSdkVersion rootProject. ext. compileSdkVersion
@@ -29,3 +30,4 @@ dependencies {
29
30
compile (" com.android.support:appcompat-v7:${ rootProject.ext.supportVersion} " )
30
31
testCompile ' junit:junit:4.12'
31
32
}
33
+ apply from : ' ../uploadSource.gradle'
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ buildscript {
6
6
}
7
7
dependencies {
8
8
classpath ' com.android.tools.build:gradle:2.3.0'
9
+ classpath ' com.github.dcendents:android-maven-gradle-plugin:1.5'
9
10
10
11
// NOTE: Do not place your application dependencies here; they belong
11
12
// in the individual module build.gradle files
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
-
2
+ apply plugin : ' com.github.dcendents.android-maven '
3
3
android {
4
4
compileSdkVersion rootProject. ext. compileSdkVersion
5
5
buildToolsVersion rootProject. ext. buildToolsVersion
@@ -29,3 +29,4 @@ dependencies {
29
29
compile ' com.android.support:appcompat-v7:25.3.0'
30
30
testCompile ' junit:junit:4.12'
31
31
}
32
+ apply from : ' ../uploadSource.gradle'
Original file line number Diff line number Diff line change 1
- # Project-wide Gradle settings.
2
-
3
- # IDE (e.g. Android Studio) users:
4
- # Gradle settings configured through the IDE *will override*
5
- # any settings specified in this file.
6
-
1
+ # # Project-wide Gradle settings.
2
+ #
7
3
# For more details on how to configure your build environment visit
8
4
# http://www.gradle.org/docs/current/userguide/build_environment.html
9
-
5
+ #
10
6
# Specifies the JVM arguments used for the daemon process.
11
7
# The setting is particularly useful for tweaking memory settings.
12
- org.gradle.jvmargs =-Xmx1536m
13
-
8
+ # Default value: -Xmx1024m -XX:MaxPermSize=256m
9
+ # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
10
+ #
14
11
# When configured, Gradle will run in incubating parallel mode.
15
12
# This option should only be used with decoupled projects. More details, visit
16
13
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17
14
# org.gradle.parallel=true
15
+ # Tue Mar 28 22:57:27 CST 2017
16
+ systemProp.https.proxyPort =1080
17
+ systemProp.http.proxyHost =127.0.0.1
18
+ org.gradle.jvmargs =-Xmx1536m
19
+ systemProp.https.proxyHost =127.0.0.1
20
+ systemProp.http.proxyPort =1080
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-3.3 -all.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-3.4 -all.zip
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
-
2
+ apply plugin : ' com.github.dcendents.android-maven '
3
3
android {
4
4
compileSdkVersion rootProject. ext. compileSdkVersion
5
5
buildToolsVersion rootProject. ext. buildToolsVersion
@@ -29,3 +29,4 @@ dependencies {
29
29
compile ' com.android.support:appcompat-v7:25.3.0'
30
30
testCompile ' junit:junit:4.12'
31
31
}
32
+ apply from : ' ../uploadSource.gradle'
Original file line number Diff line number Diff line change
1
+ // 打包源码jar
2
+ task sourcesJar (type : Jar ) {
3
+ from android. sourceSets. main. java. srcDirs
4
+ classifier = ' sources'
5
+ }
6
+
7
+ task javadoc (type : Javadoc ) {
8
+ failOnError false
9
+ source = android. sourceSets. main. java. sourceFiles
10
+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
11
+ classpath + = configurations. compile
12
+ }
13
+
14
+ // 打包文档jar
15
+ task javadocJar (type : Jar , dependsOn : javadoc) {
16
+ classifier = ' javadoc'
17
+ from javadoc. destinationDir
18
+ }
19
+
20
+ artifacts {
21
+ archives sourcesJar
22
+ archives javadocJar
23
+ }
24
+
25
+ buildscript {
26
+ repositories {
27
+ jcenter()
28
+ }
29
+ dependencies {
30
+ classpath ' com.github.dcendents:android-maven-gradle-plugin:1.5'
31
+ // NOTE: Do not place your application dependencies here; they belong
32
+ // in the individual module build.gradle files
33
+ }
34
+ }
You can’t perform that action at this time.
0 commit comments