11apply plugin : " java"
2- apply plugin : " maven"
2+ apply plugin : ' com.github.dcendents.android- maven' // ADD THIS
33// Top-level build file where you can add configuration options common to all sub-projects/modules.
44
55buildscript {
66 repositories {
77 jcenter()
88 }
99 dependencies {
10- classpath ' com.android.tools.build:gradle:2.3.0 '
11-
10+ classpath ' com.android.tools.build:gradle:2.3.1 '
11+ classpath ' com.github.dcendents:android-maven-gradle-plugin:1.5 '
1212 // NOTE: Do not place your application dependencies here; they belong
1313 // in the individual module build.gradle files
1414 }
@@ -21,54 +21,54 @@ allprojects {
2121}
2222
2323ext {
24- versionName = " 1.0.10 "
24+ versionName = " 1.0.15 "
2525 versionCode = 2
2626}
2727
2828allprojects {
2929 version = " ${ versionName} "
3030}
3131
32- sourceSets {
33- api
34- core
35- datastore
36- }
37-
38- sourceSets. all { set ->
39- def jarTask = task(" ${ set.name} Zip" , type : Zip ) {
40- baseName = " $set . name "
41- from set. output
42- }
43-
44- def javadoc = task(type : Javadoc ) {
45- failOnError false
46- source = android. sourceSets. main. java. sourceFiles
47- classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
48- classpath + = configurations. compile
49- }
50-
51- def javadocJar = task(type : Zip , dependsOn : javadoc) {
52- classifier = " ${ set.name} "
53- from javadoc. destinationDir
54- }
55- artifacts {
56- archives jarTask
57- archives javadocJar
58- }
59- }
32+ // sourceSets {
33+ // api
34+ // core
35+ // datastore
36+ // }
6037
61- jar {
62- from sourceSets. api. output
63- from sourceSets. datastore. output
64- from sourceSets. core. output
65- }
38+ // sourceSets.all { set ->
39+ // def jarTask = task("${set.name}Jar", type: Jar) {
40+ // baseName = "$set.name"
41+ // classifier = ""
42+ // }
43+ //
44+ // def javadoc = task(type: Javadoc) {
45+ // failOnError false
46+ // source = android.sourceSets.main.java.sourceFiles
47+ // classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
48+ // classpath += configurations.compile
49+ // }
50+ //
51+ // def javadocJar = task(type: Jar, dependsOn: javadoc) {
52+ // classifier = "${set.name}"
53+ // from javadoc.destinationDir
54+ // }
55+ // artifacts {
56+ // archives jarTask
57+ // archives javadocJar
58+ // }
59+ // }
60+ //
61+ // jar {
62+ // from sourceSets.api.output
63+ // from sourceSets.datastore.output
64+ // from sourceSets.core.output
65+ // }
6666
67- // this step is necessary when installing both jars in the local maven repository
68- install {
69- repositories. mavenInstaller {
70- addFilter(' api' ) { artifact , file -> artifact. name. endsWith(' api' ) }
71- addFilter(' core' ) { artifact , file -> artifact. name. endsWith(' core' ) }
72- addFilter(' datastore' ) { artifact , file -> artifact. name. endsWith(' datastore' ) }
73- }
74- }
67+ // // this step is necessary when installing both jars in the local maven repository
68+ // install {
69+ // repositories.mavenInstaller {
70+ // addFilter('api') { artifact, file -> artifact.name.endsWith('api') }
71+ // addFilter('core') { artifact, file -> artifact.name.endsWith('core') }
72+ // addFilter('datastore') { artifact, file -> artifact.name.endsWith('datastore') }
73+ // }
74+ // }
0 commit comments