forked from sqldelight/sql-psi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (49 loc) · 1.55 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
ext {
kotlinVersion = '1.3.50'
ideaVersion = '2019.2'
dep = [
kotlinStdLib: "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion",
kotlinGradlePlugin: "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion",
intellij: "IC-$ideaVersion",
intellijCore: fileTree(dir: 'lib/intellij-core/lib', include: [
'idea.jar', 'openapi.jar', 'util.jar', 'trove4j.jar', 'extensions.jar',
'picocontainer-1.2.jar', 'asm-all-7.0.1.jar', 'automaton-1.12-1.jar',
'platform-api.jar', 'platform-impl.jar', 'platform-util-ui.jar', 'java-api.jar',
'guava-25.1-jre.jar', 'jdom.jar',
]),
junit: 'junit:junit:4.12',
truth: 'com.google.truth:truth:0.30',
]
}
repositories {
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath dep.kotlinGradlePlugin
classpath 'de.undercouch:gradle-download-task:3.1.2'
classpath "com.github.hurricup:gradle-grammar-kit-plugin:$ideaVersion"
}
}
apply from: 'updateDependencies.gradle'
allprojects {
repositories {
mavenCentral()
jcenter()
maven { url 'https://www.jetbrains.com/intellij-repository/releases' }
}
group = GROUP
version = VERSION_NAME
if (plugins.hasPlugin("org.jetbrains.kotlin.jvm")) {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
tasks.withType(KotlinCompile) {
kotlinOptions {
jvmTarget = "1.8"
}
}
}