-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
83 lines (66 loc) · 1.92 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
75
76
77
78
79
80
81
82
83
buildscript {
ext.kotlin_version = '1.0.3'
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url 'https://dl.bintray.com/kotlin/kotlin-eap'
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.9"
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'org.jetbrains.dokka'
mainClassName = 'examples.QuoteParserExampleKt'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile 'javax.mail:javax.mail-api:1.6.0'
compile group: 'com.intellij', name: 'annotations', version: '12.0'
testCompile 'junit:junit:4.12'
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile 'org.jetbrains.spek:spek-api:1.1.5'
testRuntime 'org.jetbrains.spek:spek-junit-platform-engine:1.1.5'
}
repositories {
mavenCentral()
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
task wrapper(type: Wrapper) {
gradleVersion = "2.11"
}
run {
standardInput = System.in
if (project.hasProperty('emlFile')) {
args emlFile.split('\n')
}
}
task runProcessing(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'examples.QuoteParserExampleKt'
if (project.hasProperty('emlFile')) {
args emlFile.split('\n')
}
}
dokka {
outputDirectory = "$buildDir/dokka"
includes = ['module.md']
sourceDirs = files('src/main/kotlin/quoteParser')
linkMapping {
dir = "src/main/kotlin"
url = "https://github.com/JetBrains/email-parser/tree/master/src/main/kotlin"
suffix = "#L"
}
}
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
includes = ['module.md']
sourceDirs = files('src/main/kotlin/quoteParser')
}