File tree Expand file tree Collapse file tree
functionalTest/kotlin/io/ia/sdk/gradle/modl/task
main/kotlin/io/ia/sdk/gradle/modl/task Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import io.ia.sdk.gradle.modl.util.unsignedModuleName
66import org.gradle.api.Project
77import org.gradle.api.internal.project.DefaultProject
88import org.gradle.testfixtures.ProjectBuilder
9+ import java.io.File
910import kotlin.io.path.createTempDirectory
10- import kotlin.test.BeforeTest
1111import kotlin.test.AfterTest
12+ import kotlin.test.BeforeTest
1213import kotlin.test.Test
13- import kotlin.test.assertTrue
1414import kotlin.test.assertFailsWith
15- import java.io.File
15+ import kotlin.test.assertTrue
1616
1717class ZipModuleTests : BaseTest () {
1818
@@ -55,7 +55,7 @@ class ZipModuleTests : BaseTest() {
5555 File (contentDir, " my-lib-2.0.jar" ).createNewFile() // This is the duplicate
5656
5757 // Act & Assert: The task should throw a IllegalArgumentException
58- val exception = assertFailsWith<IllegalArgumentException >{
58+ val exception = assertFailsWith<IllegalArgumentException > {
5959 task.execute()
6060 }
6161
Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ open class ZipModule @Inject constructor(objects: ObjectFactory) : DefaultTask()
7474
7575 if (fileSet.contains(name)) {
7676 throw IllegalArgumentException (
77- " Library '$name ' exists in multiple versions in ${contentDir.absolutePath} " )
77+ " Library '$name ' exists in multiple versions in ${contentDir.absolutePath} "
78+ )
7879 } else {
7980 fileSet.add(name)
8081 }
You can’t perform that action at this time.
0 commit comments