-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
54 lines (42 loc) · 1.11 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
buildscript {
ext.kotlin_version = '1.1.2-2'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: "kotlin"
apply plugin: "kotlin-kapt"
apply plugin: "idea"
apply plugin: "application"
mainClassName = "org.westford.compositor.launch.x11.Launcher"
kapt {
correctErrorTypes = true
}
// Add kapt directory to sources
sourceSets.main.java.srcDir file("$buildDir/generated/source/kapt/main")
idea {
module {
// Tell idea to mark the folder as generated sources
generatedSourceDirs += file("$buildDir/generated/source/kapt/main")
}
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
ext.kotlin = "1.1.2-2"
ext.dagger = "2.2"
//westford compositor
compile project(":compositor")
//kotlin
compile "org.jetbrains.kotlin:kotlin-stdlib:${ext.kotlin}"
//dagger
compile("com.google.dagger:dagger:${ext.dagger}")
kapt("com.google.dagger:dagger-compiler:${ext.dagger}")
//test
testCompile("org.jetbrains.kotlin:kotlin-test-junit:${ext.kotlin}")
}