diff --git a/build.gradle b/build.gradle index 03bced9..8c18dda 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,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' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -16,6 +17,13 @@ allprojects { repositories { jcenter() } + tasks.withType(Javadoc) { + options { + encoding "UTF-8" + charSet 'UTF-8' + links "http://docs.oracle.com/javase/7/docs/api" + } + } } task clean(type: Delete) { diff --git a/library/build.gradle b/library/build.gradle index 36c7110..afa8cd7 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,4 +1,7 @@ apply plugin: 'com.android.library' +apply plugin: 'com.github.dcendents.android-maven' + +group = 'com.github.limedroid' android { compileSdkVersion 23 @@ -21,3 +24,16 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) } + +tasks.withType(JavaCompile) { + options.encoding = "UTF-8" +} + +task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier = 'sources' +} + +artifacts { + archives sourcesJar +} \ No newline at end of file