-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
63 lines (53 loc) · 1.4 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
buildscript {
ext.kotlin_version = '1.0.4'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "org.jetbrains.intellij" version "0.1.10"
}
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'kotlin'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
intellij {
version 'IC-2016.2'
pluginName 'Morganey For Intellij'
}
group 'me.rexim.morganey.plugin'
version '0.1'
sourceSets{
main{
scala {
srcDirs = ['src/main/scala', 'src/main/java', 'src/main/kotlin']
}
}
}
def urlFile = { url, name ->
File file = new File("$buildDir/lib/${name}.jar")
file.parentFile.mkdirs()
if (!file.exists()) {
new URL(url).withInputStream { downloadStream ->
file.withOutputStream { fileOut ->
fileOut << downloadStream
}
}
}
files(file.absolutePath)
}
repositories {
mavenCentral()
}
dependencies {
compile project(':scala')
compile urlFile('https://github.com/morganey-lang/Morganey/releases/download/0.0.1/morganey.jar', 'morganey')
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.scala-lang:scala-compiler:2.11.1"
compile 'org.scala-lang:scala-library:2.11.1'
}