forked from sqldelight/sqldelight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (74 loc) · 2.06 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
import org.jetbrains.grammarkit.tasks.GenerateParser
buildscript {
apply from: "$rootDir/gradle/dependencies.gradle"
repositories {
mavenCentral()
google()
jcenter()
gradlePluginPortal()
maven {
url 'https://jitpack.io'
}
}
dependencies {
classpath deps.plugins.download
classpath deps.plugins.kotlin
classpath deps.plugins.dokka
classpath deps.plugins.intellij
classpath deps.plugins.android
classpath deps.plugins.grammarKitComposer
classpath deps.plugins.publish
classpath deps.plugins.spotless
classpath deps.plugins.changelog
classpath deps.plugins.shadow
// Used for the sample
// classpath "com.squareup.sqldelight:gradle-plugin:${versions.sqldelight}"
}
}
apply plugin: "com.diffplug.spotless"
apply from: "$rootDir/gradle/dependencies.gradle"
spotless {
kotlin {
target "**/*.kt"
targetExclude "**/gen/**/*.*", "**/generated/**/*.*", "sqldelight-compiler/integration-tests/src/test/kotlin/com/example/**/*.*"
ktlint(versions.ktlint).userData(["indent_size": "2"])
trimTrailingWhitespace()
endWithNewline()
}
}
allprojects {
repositories {
mavenCentral()
google()
jcenter()
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_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
configurations {
grammar
}
dependencies {
grammar deps.intellij.indexing
grammar deps.intellij.analysisImpl
grammar deps.intellij.asm
}
tasks.withType(GenerateParser).configureEach {
classpath = configurations.grammar + configurations.compileOnly
}
configurations.all {
exclude group: 'com.jetbrains.rd'
exclude group: 'com.github.jetbrains', module: 'jetCheck'
}
group = GROUP
version = VERSION_NAME
}