-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (48 loc) · 1.29 KB
/
Copy pathbuild.gradle
File metadata and controls
57 lines (48 loc) · 1.29 KB
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
buildscript {
apply from: 'versions.gradle'
repositories {
mavenLocal()
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.android.tools.build:gradle:$androidToolsVersion"
classpath "com.joom.colonist:colonist-gradle-plugin:$COLONIST_VERSION"
}
}
plugins {
id "org.jlleitschuh.gradle.ktlint" version "10.2.1"
}
allprojects {
version = COLONIST_VERSION
group = COLONIST_GROUP
buildscript {
repositories {
mavenLocal()
google()
mavenCentral()
gradlePluginPortal()
}
}
repositories {
mavenLocal()
google()
mavenCentral()
}
apply plugin: "org.jlleitschuh.gradle.ktlint"
tasks.withType(Test).configureEach {
failOnNoDiscoveredTests = false
}
gradle.projectsEvaluated {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11
apiVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion.fromVersion(kotlinLanguageVersion)
languageVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion.fromVersion(kotlinLanguageVersion)
allWarningsAsErrors = true
}
}
}
}