Skip to content

Commit

Permalink
Update Gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Szymanski committed Aug 22, 2018
1 parent 2f3355f commit 4d9f9ef
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 40 deletions.
56 changes: 27 additions & 29 deletions api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
apply plugin: 'com.android.library'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'groovyx.android'
apply from: 'jacoco.gradle'

android {
compileSdkVersion 25
buildToolsVersion '25.0.2'

defaultConfig {
minSdkVersion 14
Expand Down Expand Up @@ -115,34 +113,34 @@ bintray {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-annotations:25.2.0'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-jackson:2.1.0'
compile 'com.squareup.okhttp3:okhttp:3.3.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.0'
compile 'com.google.dagger:dagger:2.7'
apt 'com.google.dagger:dagger-compiler:2.7'
compile 'javax.annotation:javax.annotation-api:1.2'
compile 'com.pixplicity.easyprefs:library:1.8.1@aar'
compile 'com.github.creatubbles:java-jsonapi-converter:87dbdaf'

testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.8'
testCompile 'org.robolectric:robolectric:3.0'

testCompile "org.powermock:powermock-module-junit4:1.6.5"
testCompile "org.powermock:powermock-module-junit4-rule:1.6.5"
testCompile "org.powermock:powermock-api-mockito:1.6.5"
testCompile "org.powermock:powermock-classloading-xstream:1.6.5"

testCompile 'org.codehaus.groovy:groovy:2.4.7:grooid'
testCompile "com.andrewreitz:spock-android:1.2.1"
testCompile 'com.android.support.test:testing-support-lib:0.1'
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-annotations:25.2.0'
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.retrofit2:converter-jackson:2.1.0'
implementation 'com.squareup.okhttp3:okhttp:3.3.0'
api 'com.squareup.okhttp3:logging-interceptor:3.3.0'
implementation 'com.google.dagger:dagger:2.7'
annotationProcessor 'com.google.dagger:dagger-compiler:2.7'
implementation 'javax.annotation:javax.annotation-api:1.2'
implementation 'com.pixplicity.easyprefs:library:1.8.1@aar'
api 'com.github.creatubbles:java-jsonapi-converter:87dbdaf'

testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:1.10.8'
testImplementation 'org.robolectric:robolectric:3.0'

testImplementation "org.powermock:powermock-module-junit4:1.6.5"
testImplementation "org.powermock:powermock-module-junit4-rule:1.6.5"
testImplementation "org.powermock:powermock-api-mockito:1.6.5"
testImplementation "org.powermock:powermock-classloading-xstream:1.6.5"

testImplementation 'org.codehaus.groovy:groovy:2.4.7:grooid'
testImplementation "com.andrewreitz:spock-android:1.2.1"
testImplementation 'com.android.support.test:testing-support-lib:0.1'
testImplementation('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude group: 'org.codehaus.groovy'
exclude group: 'junit'
}
testCompile 'cglib:cglib-nodep:3.2.4'
testCompile 'org.objenesis:objenesis:2.2'
testImplementation 'cglib:cglib-nodep:3.2.4'
testImplementation 'org.objenesis:objenesis:2.2'
}
15 changes: 7 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'

android {
compileSdkVersion 24
buildToolsVersion '25.0.2'

defaultConfig {
applicationId "com.creatubbles.app"
Expand Down Expand Up @@ -32,13 +30,14 @@ android {
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:24.2.1'
implementation 'com.android.support:design:24.2.1'

compile 'com.jakewharton:butterknife:7.0.1'
implementation 'com.jakewharton:butterknife:7.0.1'
annotationProcessor 'com.jakewharton:butterknife:7.0.1'

compile project(':api')
implementation project(':api')

testCompile 'junit:junit:4.12'
testImplementation 'junit:junit:4.12'
}
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'me.tatarka:gradle-retrolambda:3.3.0'
classpath 'org.codehaus.groovy:groovy-android-gradle-plugin:1.1.0'
// NOTE: Do not place your application dependencies here; they belong
Expand All @@ -18,6 +18,7 @@ buildscript {

allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip

0 comments on commit 4d9f9ef

Please sign in to comment.