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() {
|
class Kotlin2JsGradlePluginIT : BaseGradleIT() {
|
||||||
@Test
|
@Test
|
||||||
fun testBuildAndClean() {
|
fun testBuildAndClean() {
|
||||||
val project = Project("kotlin2JsProject", "1.6")
|
val project = Project("kotlin2JsProject", "2.10")
|
||||||
|
|
||||||
project.build("build") {
|
project.build("build") {
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
@@ -63,7 +63,7 @@ class Kotlin2JsGradlePluginIT : BaseGradleIT() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testNoOutputFileFails() {
|
fun testNoOutputFileFails() {
|
||||||
val project = Project("kotlin2JsNoOutputFileProject", "1.6")
|
val project = Project("kotlin2JsNoOutputFileProject", "2.10")
|
||||||
project.build("build") {
|
project.build("build") {
|
||||||
assertFailed()
|
assertFailed()
|
||||||
assertReportExists()
|
assertReportExists()
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@ compileKotlin2Js.kotlinOptions.outputFile = "${projectDir}/web/js/app.js"
|
|||||||
compileKotlin2Js.kotlinOptions.suppressWarnings = true
|
compileKotlin2Js.kotlinOptions.suppressWarnings = true
|
||||||
compileKotlin2Js.kotlinOptions.verbose = true
|
compileKotlin2Js.kotlinOptions.verbose = true
|
||||||
|
|
||||||
task copyJsFilesFromDependencies(dependsOn: build) {
|
build.doLast {
|
||||||
configurations.compile.each { File file ->
|
configurations.compile.each { File file ->
|
||||||
copy {
|
copy {
|
||||||
includeEmptyDirs = false
|
includeEmptyDirs = false
|
||||||
|
|||||||
Reference in New Issue
Block a user