diff --git a/build.gradle b/build.gradle index ff844e6..aa61517 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,8 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.1.0' + classpath 'com.android.tools.build:gradle:2.2.2' + classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' // NOTE: Do not place your application dependencies here; they belong diff --git a/mvp/build.gradle b/mvp/build.gradle index 88117a0..6bcb03b 100644 --- a/mvp/build.gradle +++ b/mvp/build.gradle @@ -1,4 +1,7 @@ apply plugin: 'com.android.library' +apply plugin: 'com.github.dcendents.android-maven' + +group = 'com.github.limedroid' android { compileSdkVersion rootProject.ext.android.compileSdkVersion @@ -43,3 +46,16 @@ dependencies { compile rootProject.ext.dependencies["rxlifecycle-components"] compile rootProject.ext.dependencies["rxpermissions"] } + +tasks.withType(JavaCompile) { + options.encoding = "UTF-8" +} + +task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' +} + +artifacts { + archives sourcesJar +}