forked from olegcherr/Aza-Kotlin-CSS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
59 lines (47 loc) · 921 Bytes
/
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
group 'xyz.nulldev'
version library_version
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin2js'
repositories {
mavenCentral()
jcenter()
}
sourceSets {
main.kotlin.srcDirs += 'src/main'
test.kotlin.srcDirs += 'src/test'
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test-js:$kotlin_version"
}
compileKotlin2Js {
kotlinOptions {
moduleKind = "umd"
}
}
// PUBLISHING
apply plugin: 'maven-publish'
task sourceJar(type: Jar) {
from sourceSets.main.allSource
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'xyz.nulldev'
artifactId 'aza-kotlin-css-js'
version library_version
artifact sourceJar {
classifier "sources"
}
}
}
}