-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
58 lines (52 loc) · 1.76 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
buildscript {
val kotlin_version = "1.3.61"
val sqldelight_version = "1.2.2"
val xcodesync_version = "0.1.5"
repositories {
google()
maven ("https://plugins.gradle.org/m2/")
maven ("https://dl.bintray.com/kotlin/kotlin-eap" )
jcenter()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:3.5.3")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
classpath("org.jetbrains.kotlin:kotlin-serialization:$kotlin_version")
classpath("gradle.plugin.com.wiredforcode:gradle-spawn-plugin:0.8.2")
classpath("com.squareup.sqldelight:gradle-plugin:$sqldelight_version")
classpath("co.touchlab:kotlinxcodesync:$xcodesync_version")
}
}
plugins {
id("com.github.ben-manes.versions") version "0.27.0"
}
allprojects {
repositories {
maven ( "https://dl.bintray.com/kotlin/kotlinx" )
maven ( "https://dl.bintray.com/kotlin/ktor" )
maven ( "https://dl.bintray.com/soywiz/soywiz" )
google()
jcenter()
}
}
tasks.register("clean", Delete::class.java) {
delete(rootProject.buildDir)
}
tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
resolutionStrategy {
componentSelection {
all {
val rejected = listOf("eap", "alpha", "beta", "rc", "cr", "m", "preview")
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
.any { it.matches(candidate.version) }
if (rejected) {
reject("Release candidate")
}
}
}
}
// optional parameters
checkForGradleUpdate = true
}