forked from ThaumicMekanism/venus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
73 lines (58 loc) · 1.67 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
group 'venus'
version '0.1.0'
buildscript {
ext.dokka_version = '0.10.1'
ext.kotlin_version = '1.3.72'
ext.ktlint_version = '0.33.0'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin2js'
apply plugin: 'kotlin-dce-js'
apply plugin: 'org.jetbrains.dokka'
runDceKotlinJs.keep 'venus.Driver.run', 'venusbackend.assembler.Linter', 'venus.api.API', "kotlin.Number"
runDceKotlinJs.dceOptions.devMode = true
runDceTestKotlinJs.dceOptions.devMode = true
configurations {
ktlint
}
kotlin {
experimental {
coroutines 'enable'
}
}
repositories {
mavenCentral()
}
compileKotlin2Js {
kotlinOptions.sourceMap = true
kotlinOptions.sourceMapEmbedSources = "always"
// remaining configuration options
}
task ktlint(type: JavaExec) {
description = "Check Kotlin code style."
main = "com.pinterest.ktlint.Main"
classpath = configurations.ktlint
args "--verbose", "src/**/*.kt"
}
check.dependsOn ktlint
task ktlintFormat(type: JavaExec) {
description = "Fix Kotlin code style deviations."
main = "com.pinterest.ktlint.Main"
classpath = configurations.ktlint
args "-F", "src/**/*.kt"
}
dokka {
outputFormat = 'html'
outputDirectory = "doc"
}
dependencies {
ktlint "com.pinterest:ktlint:$ktlint_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
testImplementation "org.jetbrains.kotlin:kotlin-test-js:$kotlin_version"
}