-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
67 lines (57 loc) · 2.24 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
plugins {
id 'java'
id 'scala'
id 'org.jetbrains.intellij' version '0.4.21' // This version can be changed.
}
group 'be.vub.soft'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
// This project requires Java 8. Nevertheless, it will probably work with newer versions.
if(JavaVersion.current() != JavaVersion.VERSION_1_8) throw new GradleException("This project requires Java 8, but it's running on "+JavaVersion.current())
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.compileJava.dependsOn compileScala
tasks.compileScala.dependsOn.remove("compileJava")
sourceSets {
main {
scala {
outputDir = file("$buildDir/classes/scala/main")
}
java {
outputDir = file("$buildDir/classes/java/main")
}
}
}
dependencies {
compile 'com.intellij:forms_rt:7.0.3'
compile files("$sourceSets.main.scala.outputDir")
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
// https://mvnrepository.com/artifact/org.scalameta/scalameta
compile group: 'org.scalameta', name: 'scalameta_2.12', version: '4.1.0'
// https://mvnrepository.com/artifact/org.scalameta/contrib
compile group: 'org.scalameta', name: 'contrib_2.12', version: '4.1.0'
// https://mvnrepository.com/artifact/org.scalameta/semanticdb
compile group: 'org.scalameta', name: 'semanticdb_2.12', version: '4.1.0'
// https://mvnrepository.com/artifact/org.scalameta/symtab
compile group: 'org.scalameta', name: 'symtab_2.12', version: '4.1.0'
// https://mvnrepository.com/artifact/org.scalameta/interactive
compile group: 'org.scalameta', name: 'interactive_2.12.8', version: '4.1.0'
// https://mvnrepository.com/artifact/com.typesafe.scala-logging/scala-logging
//compile group: 'com.typesafe.scala-logging', name: 'scala-logging_2.12', version: '3.9.0'
// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
//testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version '2020.1' // This version can be changed.
}
patchPluginXml {
changeNotes ""
}