-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (35 loc) · 956 Bytes
/
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
buildscript {
val kotlinVersion: String by project
val androidGradleVersion: String by project
val robovmVersion: String by project
repositories {
mavenLocal()
google()
jcenter()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("com.android.tools.build:gradle:$androidGradleVersion")
classpath("com.mobidevelop.robovm:robovm-gradle-plugin:$robovmVersion")
}
}
val gradleVersion: String by project
val gradleVersionForWrapper = gradleVersion
// configure existing wrapper task
tasks.withType<Wrapper> {
gradleVersion = gradleVersionForWrapper
}
// configure all projects group and version
val packageName: String by project
val versionName: String by project
allprojects {
group = packageName
version = versionName
}
subprojects {
repositories {
mavenLocal()
jcenter()
google()
}
}