-
Notifications
You must be signed in to change notification settings - Fork 53
/
build.gradle
56 lines (45 loc) · 1.28 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
group 'venus'
version '0.1.0'
buildscript {
ext.kotlin_version = '1.1.4'
ext.dokka_version = '0.9.14'
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-1.1.4' }
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}
apply plugin: 'kotlin2js'
apply plugin: 'kotlin-dce-js'
apply plugin: 'org.jetbrains.dokka'
runDceKotlinJs.keep 'venus_main.venus.glue.Driver.run', 'venus_main.venus.assembler.Linter'
configurations {
ktlint
}
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-1.1.4' }
mavenCentral()
}
task ktlint(type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "--verbose", "src/**/*.kt"
}
check.dependsOn ktlint
task ktlintFormat(type: JavaExec) {
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args "-F", "src/**/*.kt"
}
dokka {
outputFormat = 'html'
outputDirectory = "doc"
}
dependencies {
ktlint 'com.github.shyiko:ktlint:0.8.1'
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test-js:$kotlin_version"
}