-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (38 loc) · 1.06 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
allprojects {
group = 'com.github.vkhikhlov'
}
buildscript {
repositories {
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintrayPluginVersion"
}
}
subprojects {
apply plugin: 'kotlin2js'
repositories {
jcenter()
mavenLocal()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlinVersion"
}
compileKotlin2Js {
kotlinOptions {
moduleKind = 'commonjs'
metaInfo = true
sourceMap = true
sourceMapEmbedSources = "always"
suppressWarnings = true
outputFile = "$project.buildDir.path/classes/main/${project.name}.js"
}
}
}
configure(subprojects.findAll { true }) {
apply from: rootProject.file('gradle/publishBintray.gradle')
}
task deploy(dependsOn: getTasksByName("bintrayUpload", true))