forked from sqldelight/sqldelight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (68 loc) · 2.17 KB
/
build.gradle
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
buildscript {
dependencies {
classpath("com.squareup.okhttp3:okhttp") {
version {
strictly '4.4.1'
}
}
}
}
plugins {
alias(deps.plugins.grammarKitComposer) apply false
alias(deps.plugins.kotlin.multiplatform) apply false
alias(deps.plugins.kotlin.jvm) apply false
alias(deps.plugins.kotlin.android) apply false
alias(deps.plugins.kotlin.js) apply false
alias(deps.plugins.ksp) apply false
alias(deps.plugins.android.application) apply false
alias(deps.plugins.android.library) apply false
alias(deps.plugins.publish) apply false
alias(deps.plugins.dokka) apply false
alias(deps.plugins.spotless)
}
spotless {
kotlin {
target "**/*.kt"
targetExclude "**/gen/**/*.*", "**/generated/**/*.*", "sqldelight-compiler/integration-tests/src/test/kotlin/com/example/**/*.*", "sqldelight-compiler/src/test/migration-interface-fixtures/**/*.*"
ktlint(deps.versions.ktlint.get()).userData(["indent_size": "2"])
trimTrailingWhitespace()
endWithNewline()
}
}
allprojects {
repositories {
mavenCentral()
google()
maven { url 'https://www.jetbrains.com/intellij-repository/releases' }
maven { url "https://cache-redirector.jetbrains.com/intellij-dependencies" }
}
tasks.withType(Test).configureEach {
testLogging {
events = ["failed", "skipped", "passed"]
exceptionFormat "full"
}
}
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType(org.jetbrains.grammarkit.tasks.GenerateParserTask) {
doFirst {
// https://github.com/JetBrains/gradle-grammar-kit-plugin/pull/78.
logging.captureStandardOutput(LogLevel.INFO)
}
}
// https://youtrack.jetbrains.com/issue/KT-46466
tasks.withType(org.gradle.plugins.signing.Sign) { signingTask ->
tasks.withType(org.gradle.api.publish.maven.tasks.AbstractPublishToMaven) { publishTask ->
publishTask.dependsOn(signingTask)
}
}
configurations.all {
exclude group: 'com.jetbrains.rd'
exclude group: 'com.github.jetbrains', module: 'jetCheck'
exclude group: 'org.roaringbitmap'
}
group = GROUP
version = VERSION_NAME
}