Skip to content

Commit

Permalink
Use SUPPORT_LIBRARY_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
hisaichi5518 committed Sep 19, 2017
1 parent bcfd9c8 commit 5b0ae81
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ allprojects {
}
}

ext {
SUPPORT_LIBRARY_VERSION = "26.1.0"
}

task clean(type: Delete) {
delete rootProject.buildDir
}
2 changes: 1 addition & 1 deletion example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
exclude group: 'com.android.support', module: 'support-annotations'
})

compile 'com.android.support:appcompat-v7:26.+'
compile "com.android.support:appcompat-v7:${SUPPORT_LIBRARY_VERSION}"
compile 'com.android.support.constraint:constraint-layout:1.0.2'

annotationProcessor project(':processor')
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile "com.android.support:appcompat-v7:${SUPPORT_LIBRARY_VERSION}"
testCompile 'junit:junit:4.12'
}
2 changes: 2 additions & 0 deletions processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ sourceCompatibility = JavaVersion.VERSION_1_8
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':annotation')

compileOnly "com.android.support:support-annotations:${SUPPORT_LIBRARY_VERSION}"
}

0 comments on commit 5b0ae81

Please sign in to comment.