Skip to content

Commit

Permalink
Move root build.gradle to kts
Browse files Browse the repository at this point in the history
  • Loading branch information
alorma committed Jun 8, 2021
1 parent 28193a1 commit a8717bb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 35 deletions.
29 changes: 0 additions & 29 deletions build.gradle

This file was deleted.

21 changes: 21 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32")
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

task<Delete>("clean") {
setDelete(rootProject.buildDir)
}
6 changes: 3 additions & 3 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ plugins {
apply(from= "../config/android-quality.gradle")

android {
compileSdk = ext["compileSdkVersionDeclared"] as Int
compileSdk = 30

defaultConfig {
minSdk = ext["minSdkVersionDeclared"] as Int
targetSdk = ext["compileSdkVersionDeclared"] as Int
minSdk = 19
targetSdk = 30
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
6 changes: 3 additions & 3 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ plugins {
apply(from = "../config/android-quality.gradle")

android {
compileSdk = ext["compileSdkVersionDeclared"] as Int
compileSdk = 30

defaultConfig {
minSdk = ext["minSdkVersionDeclared"] as Int
targetSdk = ext["compileSdkVersionDeclared"] as Int
minSdk = 19
targetSdk = 30

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments["clearPackageData"] = "true"
Expand Down

0 comments on commit a8717bb

Please sign in to comment.