Skip to content

Commit

Permalink
adding log Gradle version
Browse files Browse the repository at this point in the history
  • Loading branch information
cdsap committed Oct 24, 2023
1 parent 5a42504 commit 2ce9248
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class InfoGradleProcessPluginTest {
createBuildGradle()

gradleVersions.forEach {
println(it)
val build = simpleKotlinCompileBuild(it)
assertTerminalOutput(build)
}
Expand All @@ -32,6 +33,7 @@ class InfoGradleProcessPluginTest {
createBuildGradle()

gradleVersions.forEach {
println(it)
val firstBuild = GradleRunner.create()
.withProjectDir(testProjectDir.root)
.withArguments("compileKotlin", "--configuration-cache")
Expand Down Expand Up @@ -62,6 +64,7 @@ class InfoGradleProcessPluginTest {
createBuildGradle()

gradleVersions.forEach {
println(it)
val build = simpleKotlinCompileBuild(it)
assertTerminalOutput(build)
}
Expand All @@ -78,6 +81,7 @@ class InfoGradleProcessPluginTest {
createBuildGradle()

gradleVersions.forEach {
println(it)
val build = simpleKotlinCompileBuild(it)
assertTerminalOutput(build)
}
Expand All @@ -94,6 +98,7 @@ class InfoGradleProcessPluginTest {
createBuildGradle()

gradleVersions.forEach {
println(it)
val build = simpleKotlinCompileBuild(it)
assertTerminalOutput(build)
}
Expand All @@ -110,6 +115,7 @@ class InfoGradleProcessPluginTest {
createBuildGradle()

gradleVersions.forEach {
println(it)
val build = simpleKotlinCompileBuild(it)
assertTerminalOutput(build)
assertTrue(build.output.contains("G1"))
Expand All @@ -127,6 +133,7 @@ class InfoGradleProcessPluginTest {
createBuildGradle()

gradleVersions.forEach {
println(it)
val build = simpleKotlinCompileBuild(it)
assertTerminalOutput(build)
assertTrue(build.output.contains("UseParallelGC"))
Expand All @@ -147,6 +154,7 @@ class InfoGradleProcessPluginTest {
createBuildGradle17()

gradleVersions.forEach {
println(it)
val build = simpleKotlinCompileBuild(it)
assertTerminalOutput(build)
assertTrue(build.output.contains("Z"))
Expand All @@ -173,6 +181,7 @@ class InfoGradleProcessPluginTest {
}

private fun createBuildGradle() {
createFile()
testProjectDir.newFile("build.gradle").appendText(
"""
plugins {
Expand Down Expand Up @@ -206,4 +215,8 @@ class InfoGradleProcessPluginTest {
""".trimIndent()
)
}

private fun createFile() {
testProjectDir.newFile("src/main/java/Example.java")
}
}

0 comments on commit 2ce9248

Please sign in to comment.