Skip to content
Permalink
Browse files

Rewrite root gradle files using the Kotlin DSL

2 down, 1 to go.

Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
  • Loading branch information...
msfjarvis committed Dec 6, 2018
1 parent a900755 commit 5065e082055cde19e41ee02920ca07d0e33c89f5
Showing with 53 additions and 48 deletions.
  1. +0 −47 build.gradle
  2. +52 −0 build.gradle.kts
  3. +0 −1 settings.gradle
  4. +1 −0 settings.gradle.kts

This file was deleted.

@@ -0,0 +1,52 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask

buildscript {
repositories {
google()
jcenter()
mavenCentral()
maven(url = "https://maven.fabric.io/public")
}
dependencies {
classpath("com.android.tools.build:gradle:3.2.1")
classpath("com.google.gms:google-services:4.2.0")
classpath("io.fabric.tools:gradle:1.26.1")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

plugins {
id("com.github.ben-manes.versions") version "0.20.0"
}

allprojects {
repositories {
google()
jcenter()
maven(url = "https://jitpack.io")
}
}

tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
checkForGradleUpdate = true
resolutionStrategy {
componentSelection {
all {
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview")
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
.any { it.matches(candidate.version)
}
if (rejected) {
reject("Release candidate")
}
}
}
}
}

tasks {
register("clean", Delete::class) {
delete(rootProject.buildDir)
}
}

This file was deleted.

@@ -0,0 +1 @@
include(":app")

0 comments on commit 5065e08

Please sign in to comment.
You can’t perform that action at this time.