This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite root gradle files using the Kotlin DSL
2 down, 1 to go. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
- Loading branch information
Harsh Shandilya
committed
Dec 6, 2018
1 parent
a900755
commit 5065e08
Showing
4 changed files
with
53 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include(":app") |