Skip to content

Commit

Permalink
add jitpack的gradle配置
Browse files Browse the repository at this point in the history
  • Loading branch information
limedroid committed Feb 11, 2017
1 parent 31c0ddb commit d30d4a4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions mvp/build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
}

0 comments on commit d30d4a4

Please sign in to comment.