Skip to content

Commit

Permalink
fix other formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
runningcode committed Jul 15, 2024
1 parent 0afc0b5 commit 02350c0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class TestIntegrationTest {
testProjectRoot.newFolder("java-fixture", "src", "main", "java", "com", "foo")

val result =
GradleRunner.create()
GradleRunner
.create()
.withProjectDir(testProjectRoot.root)
.withGradleVersion("6.7.1")
.withPluginClasspath()
Expand Down Expand Up @@ -66,7 +67,8 @@ class TestIntegrationTest {
testProjectRoot.newFolder("java-fixture", "src", "main", "java", "com", "foo")

val result =
GradleRunner.create()
GradleRunner
.create()
.withProjectDir(testProjectRoot.root)
.withGradleVersion("6.8")
.withPluginClasspath()
Expand All @@ -81,7 +83,8 @@ class TestIntegrationTest {
projectWithCleanDependency(disallowCleanTaskDependencies = true)

val result =
GradleRunner.create()
GradleRunner
.create()
.withProjectDir(testProjectRoot.root)
.withPluginClasspath()
.withArguments("clean")
Expand All @@ -103,7 +106,8 @@ class TestIntegrationTest {
fun cleanDependencyDisabledSucceeds() {
projectWithCleanDependency(disallowCleanTaskDependencies = false)
val result =
GradleRunner.create()
GradleRunner
.create()
.withProjectDir(testProjectRoot.root)
.withPluginClasspath()
.withArguments("clean")
Expand All @@ -116,7 +120,8 @@ class TestIntegrationTest {
fun cleanDependency74Succeeds() {
projectWithCleanDependency(disallowCleanTaskDependencies = true)
val result =
GradleRunner.create()
GradleRunner
.create()
.withProjectDir(testProjectRoot.root)
.withPluginClasspath()
.withGradleVersion("7.4")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ abstract class AbstractIntegrationTest {
@get:Rule
val testProjectRoot = TemporaryFolder()

fun createRunner(): GradleRunner {
return GradleRunner.create()
fun createRunner(): GradleRunner =
GradleRunner
.create()
.withProjectDir(testProjectRoot.root)
.withPluginClasspath()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ import org.junit.rules.TemporaryFolder
import java.io.File

fun TemporaryFolder.setupFixture(fixtureName: String) {
File(this::class.java.classLoader.getResource(fixtureName)!!.file).copyRecursively(newFile(fixtureName), true)
File(
this::class.java.classLoader
.getResource(fixtureName)!!
.file,
).copyRecursively(newFile(fixtureName), true)
}

0 comments on commit 02350c0

Please sign in to comment.