Skip to content

Commit

Permalink
Merge pull request #1238 from square/colinmarsch/cleanup-kotlin-depen…
Browse files Browse the repository at this point in the history
…dencies

Cleanup Kotlin dependencies and use latest Kotlin version
  • Loading branch information
colinmarsch authored Apr 2, 2019
2 parents 73fc8e1 + dac0a0b commit 9d38b80
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 18 deletions.
15 changes: 2 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,12 @@ buildscript {
'minSdk': 14,
'compileSdk': 28,
'errorProne': '2.3.1',
'kotlin': '1.3.11',
'kotlin': '1.3.21',
]
ext.deps = [
'kotlin': [
'gradlePlugin': "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}",
'stdLib': [
'common': "org.jetbrains.kotlin:kotlin-stdlib-common:${versions.kotlin}",
'jdk8': "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}",
'jdk7': "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}",
'jdk6': "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}"
],
'reflect': "org.jetbrains.kotlin:kotlin-reflect:${versions.kotlin}",
'test': [
'common': "org.jetbrains.kotlin:kotlin-test-common",
'annotations': "org.jetbrains.kotlin:kotlin-test-annotations-common",
'jdk': "org.jetbrains.kotlin:kotlin-test-junit"
]
'stdlib': "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}"
]
]
repositories {
Expand Down
2 changes: 1 addition & 1 deletion leakcanary-analyzer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

dependencies {
implementation deps.kotlin.stdLib.jdk8
implementation deps.kotlin.stdlib
implementation 'com.squareup.haha:haha:2.1'
api project(':leakcanary-watcher')
testImplementation 'junit:junit:4.12'
Expand Down
3 changes: 1 addition & 2 deletions leakcanary-android-instrumentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

dependencies {
api deps.kotlin.stdLib.common
api project(':leakcanary-android')
implementation 'androidx.test:runner:1.1.1'
implementation deps.kotlin.reflect
implementation deps.kotlin.stdlib
}

android {
Expand Down
2 changes: 1 addition & 1 deletion leakcanary-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies {
implementation 'androidx.core:core:1.0.1'
implementation 'androidx.annotation:annotation:1.0.2'
testImplementation 'junit:junit:4.12'
api deps.kotlin.stdLib.jdk6
implementation deps.kotlin.stdlib
}

def gitSha() {
Expand Down
2 changes: 1 addition & 1 deletion leakcanary-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

dependencies {
implementation deps.kotlin.stdLib.jdk8
implementation deps.kotlin.stdlib
implementation project(':leakcanary-android')

testImplementation "junit:junit:4.12"
Expand Down

0 comments on commit 9d38b80

Please sign in to comment.