-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (57 loc) · 1.73 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
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "gradle.plugin.org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.5"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
group 'de.monticore.lang.montisecarc.generator'
version '1.0-SNAPSHOT'
intellij {
pluginName name
version ideaVersion
downloadSources Boolean.valueOf(downloadIdeaSources)
updateSinceUntilBuild = false
sandboxDirectory = "${rootProject.buildDir}/idea-sandbox"
plugins = ['de.monticore.lang.montisecarc.MontiSecArcLanguagePlugin:0.8.10.SNAPSHOT', 'com.neueda4j.intellij.plugin.cypher:2.4.1']
}
sourceCompatibility = 1.8
sourceSets {
main {
java.srcDirs "gen", "src/java"
kotlin.srcDirs "src/kotlin"
resources.srcDir "resources"
}
}
project.afterEvaluate {
def prepareSandboxTask = project.tasks.findByName("prepareSandbox")
prepareSandboxTask.doLast {
def libFiles = new File("$prepareSandboxTask.destinationDir/${project.name}/lib/")
libFiles.listFiles().each {
if (it.name.contains("kotlin")) {
delete(it)
}
}
}
}
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
testCompile group: 'junit', name: 'junit', version: '4.11'
compile project(':IntelliJ_MSA')
}