Make Kotlin2JsGradlePluginIT test compatible with gradle 2.x
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ import org.junit.Test
|
||||
class Kotlin2JsGradlePluginIT : BaseGradleIT() {
|
||||
@Test
|
||||
fun testBuildAndClean() {
|
||||
val project = Project("kotlin2JsProject", "1.6")
|
||||
val project = Project("kotlin2JsProject", "2.10")
|
||||
|
||||
project.build("build") {
|
||||
assertSuccessful()
|
||||
@@ -63,7 +63,7 @@ class Kotlin2JsGradlePluginIT : BaseGradleIT() {
|
||||
|
||||
@Test
|
||||
fun testNoOutputFileFails() {
|
||||
val project = Project("kotlin2JsNoOutputFileProject", "1.6")
|
||||
val project = Project("kotlin2JsNoOutputFileProject", "2.10")
|
||||
project.build("build") {
|
||||
assertFailed()
|
||||
assertReportExists()
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ compileKotlin2Js.kotlinOptions.outputFile = "${projectDir}/web/js/app.js"
|
||||
compileKotlin2Js.kotlinOptions.suppressWarnings = true
|
||||
compileKotlin2Js.kotlinOptions.verbose = true
|
||||
|
||||
task copyJsFilesFromDependencies(dependsOn: build) {
|
||||
build.doLast {
|
||||
configurations.compile.each { File file ->
|
||||
copy {
|
||||
includeEmptyDirs = false
|
||||
|
||||
Reference in New Issue
Block a user