-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
48 lines (41 loc) · 1.12 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
buildscript {
ext {
kotlin_version = '1.2.0'
nebula_project_version = '3.4.0'
nebula_release_version = '6.1.0'
}
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.netflix.nebula:nebula-project-plugin:$nebula_project_version"
classpath "com.netflix.nebula:nebula-release-plugin:$nebula_release_version"
}
}
apply plugin: 'kotlin2js'
apply plugin: 'nebula.project'
apply plugin: 'nebula.release'
group = 'com.github.rivasdiaz'
ext {
gradle_version = '4.3.1'
kotlin_react_version = '16.0.0-pre.13-kotlin-1.2.0'
}
repositories {
jcenter()
maven { url 'https://kotlin.bintray.com/kotlin-js-wrappers' }
}
task wrapper(type: Wrapper) {
gradleVersion = gradle_version
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
compile "org.jetbrains:kotlin-react-dom:$kotlin_react_version"
}
compileKotlin2Js {
kotlinOptions {
moduleKind = 'commonjs'
sourceMap = true
sourceMapEmbedSources = 'always'
}
}