Skip to content

Commit

Permalink
Update to AS 2.2.1 & Gradle 3.1. Got rid of apt (artem-zinnatullin#207)
Browse files Browse the repository at this point in the history
* Update to AS 2.2.1 & Gradle 3.1. Got rid of apt

* Update Dexcount plugin
  • Loading branch information
vanniktech authored and artem-zinnatullin committed Oct 16, 2016
1 parent 1af1cbf commit 4b3aeae
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 19 deletions.
7 changes: 3 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'hu.supercluster.paperwork'
apply from: '../code_quality_tools/jacoco.gradle'
apply plugin: 'com.frogermcs.androiddevmetrics'
Expand Down Expand Up @@ -113,7 +112,7 @@ android {
// Libraries declared in dependencies.gradle in the root of the project
dependencies {
compile libraries.dagger
apt libraries.daggerCompiler
annotationProcessor libraries.daggerCompiler

compile libraries.rxJava
compile libraries.rxLint
Expand All @@ -125,7 +124,7 @@ dependencies {
compile libraries.jacksonDataBind

// Do not compile AutoValue dependencies to the app.
apt libraries.autoValue
annotationProcessor libraries.autoValue
// Make AutoValue annotation visible to the compiler.
provided libraries.autoValue

Expand All @@ -136,7 +135,7 @@ dependencies {
compile libraries.supportCardView

compile libraries.butterKnife
apt libraries.butterKnifeCompiler
annotationProcessor libraries.butterKnifeCompiler

compile libraries.picasso
compile libraries.picassoOkHttpDownloader
Expand Down
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ buildscript {

classpath gradlePlugins.android

// Compile-time annotation processing.
classpath gradlePlugins.apt

// Backport of some Java 8 language features such as Lambdas and method references.
classpath gradlePlugins.retrolambda

Expand Down
6 changes: 2 additions & 4 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ ext.versions = [
compileSdk : 23,
buildTools : '23.0.3',

androidGradlePlugin : '2.1.2',
aptGradlePlugin : '1.8',
androidGradlePlugin : '2.2.1',
retrolambdaGradlePlugin : '3.2.5',
lombokGradlePlugin : '0.2.3.a2',
paperworkGradlePlugin : '1.2.7',
jacocoGradlePlugin : '0.7.6.201602180812',
androidDevMetricsGradlePlugin: '0.4',
errorProneVersion : '0.0.8',
errorProneCoreVersion : '2.0.9',
dexcountPlugin : '0.5.4',
dexcountPlugin : '0.6.1',
versionsGradlePlugin : '0.13.0',
buildScan : '1.1.1',

Expand Down Expand Up @@ -52,7 +51,6 @@ ext.versions = [

ext.gradlePlugins = [
android : "com.android.tools.build:gradle:$versions.androidGradlePlugin",
apt : "com.neenbedankt.gradle.plugins:android-apt:$versions.aptGradlePlugin",
retrolambda : "me.tatarka:gradle-retrolambda:$versions.retrolambdaGradlePlugin",
lombok : "me.tatarka.retrolambda.projectlombok:lombok.ast:$versions.lombokGradlePlugin",
paperwork : "hu.supercluster:paperwork-plugin:$versions.paperworkGradlePlugin",
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon May 30 20:17:48 ICT 2016
#Thu Oct 13 19:11:10 CEST 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-bin.zip
5 changes: 5 additions & 0 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,9 @@ function splitJvmOpts() {
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [[ "$(uname)" == "Darwin" ]] && [[ "$HOME" == "$PWD" ]]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
6 changes: 0 additions & 6 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ goto fail
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args

:win9xME_args
@rem Slurp the command line arguments.
Expand All @@ -60,11 +59,6 @@ set _SKIP=2
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*
goto execute

:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$

:execute
@rem Setup the command line
Expand Down

0 comments on commit 4b3aeae

Please sign in to comment.