forked from sqldelight/sqldelight
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
94 lines (83 loc) · 2.67 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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)
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()).editorConfigOverride([
"indent_size": "2",
"disabled_rules": "package-name",
"ij_kotlin_allow_trailing_comma": "true",
"ij_kotlin_allow_trailing_comma_on_call_site": "true",
])
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
}
tasks.named("dokkaHtmlMultiModule").configure {
outputDirectory = file("$rootDir/docs/2.x")
moduleName.set("SQLDelight")
pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase": """
{
"footerMessage": "Copyright © 2022 Square, Inc.",
"customStyleSheets": ["${file("docs/css/logo-styles.css")}"]
}
"""])
}