Skip to content

Commit 1ead0e3

Browse files
author
AllenCoder@126.com
committed
upload readme
1 parent b52d79a commit 1ead0e3

File tree

7 files changed

+54
-12
lines changed

7 files changed

+54
-12
lines changed

apputils/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
23

34
android {
45
compileSdkVersion rootProject.ext.compileSdkVersion
@@ -29,3 +30,4 @@ dependencies {
2930
compile ("com.android.support:appcompat-v7:${rootProject.ext.supportVersion}")
3031
testCompile 'junit:junit:4.12'
3132
}
33+
apply from: '../uploadSource.gradle'

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:2.3.0'
9+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
910

1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files

dbutils/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apply plugin: 'com.android.library'
2-
2+
apply plugin: 'com.github.dcendents.android-maven'
33
android {
44
compileSdkVersion rootProject.ext.compileSdkVersion
55
buildToolsVersion rootProject.ext.buildToolsVersion
@@ -29,3 +29,4 @@ dependencies {
2929
compile 'com.android.support:appcompat-v7:25.3.0'
3030
testCompile 'junit:junit:4.12'
3131
}
32+
apply from: '../uploadSource.gradle'

gradle.properties

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
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+
#
73
# For more details on how to configure your build environment visit
84
# http://www.gradle.org/docs/current/userguide/build_environment.html
9-
5+
#
106
# Specifies the JVM arguments used for the daemon process.
117
# 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+
#
1411
# When configured, Gradle will run in incubating parallel mode.
1512
# This option should only be used with decoupled projects. More details, visit
1613
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1714
# 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

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ 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-3.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4-all.zip

mediautil/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apply plugin: 'com.android.library'
2-
2+
apply plugin: 'com.github.dcendents.android-maven'
33
android {
44
compileSdkVersion rootProject.ext.compileSdkVersion
55
buildToolsVersion rootProject.ext.buildToolsVersion
@@ -29,3 +29,4 @@ dependencies {
2929
compile 'com.android.support:appcompat-v7:25.3.0'
3030
testCompile 'junit:junit:4.12'
3131
}
32+
apply from: '../uploadSource.gradle'

uploadSource.gradle

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
}

0 commit comments

Comments
 (0)