This repository was archived by the owner on Jul 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-17
lines changed Expand file tree Collapse file tree 2 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ subprojects { p ->
13
13
14
14
dependencies {
15
15
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
16
- classpath " org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.21 "
16
+ classpath " org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.22 "
17
17
}
18
18
}
19
19
}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ group = 'org.jetbrains.elemental'
2
2
version = ' 0.0.1-SNAPSHOT'
3
3
4
4
apply plugin : ' kotlin2js'
5
+ apply plugin : ' kotlin-dce-js'
5
6
apply plugin : ' org.jetbrains.kotlin.frontend'
6
7
7
8
repositories {
@@ -54,22 +55,15 @@ compileKotlin2Js {
54
55
}
55
56
56
57
sourceSets {
57
- main. kotlin. srcDirs + = " src"
58
- main. resources. srcDirs + = " resources"
59
- main. output. resourcesDir = " build/js/resources"
60
- test. kotlin. srcDirs + = " test"
61
- test. resources. srcDirs + = " testResources"
62
- }
63
-
64
- task copyResources (type : Copy ) {
65
- from sourceSets. main. resources. srcDirs
66
- // into sourceSets.main.output.resourcesDir
67
- into file(buildDir. path + " /js" )
68
- }
69
-
70
- afterEvaluate {
71
- tasks. getByName(" webpack-bundle" ) { dependsOn(copyResources) }
72
- tasks. getByName(" webpack-run" ) { dependsOn(copyResources) }
58
+ main {
59
+ kotlin. srcDirs + = " src"
60
+ resources. srcDirs + = " resources"
61
+ output. resourcesDir = " build/js/resources"
62
+ }
63
+ test {
64
+ kotlin. srcDirs + = " test"
65
+ resources. srcDirs + = " testResources"
66
+ }
73
67
}
74
68
75
69
kotlin {
You can’t perform that action at this time.
0 commit comments