File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
functionalTest/kotlin/io/ia/sdk/gradle/modl/task
main/kotlin/io/ia/sdk/gradle/modl/task Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ import io.ia.sdk.gradle.modl.util.unsignedModuleName
6
6
import org.gradle.api.Project
7
7
import org.gradle.api.internal.project.DefaultProject
8
8
import org.gradle.testfixtures.ProjectBuilder
9
+ import java.io.File
9
10
import kotlin.io.path.createTempDirectory
10
- import kotlin.test.BeforeTest
11
11
import kotlin.test.AfterTest
12
+ import kotlin.test.BeforeTest
12
13
import kotlin.test.Test
13
- import kotlin.test.assertTrue
14
14
import kotlin.test.assertFailsWith
15
- import java.io.File
15
+ import kotlin.test.assertTrue
16
16
17
17
class ZipModuleTests : BaseTest () {
18
18
@@ -55,7 +55,7 @@ class ZipModuleTests : BaseTest() {
55
55
File (contentDir, " my-lib-2.0.jar" ).createNewFile() // This is the duplicate
56
56
57
57
// Act & Assert: The task should throw a IllegalArgumentException
58
- val exception = assertFailsWith<IllegalArgumentException >{
58
+ val exception = assertFailsWith<IllegalArgumentException > {
59
59
task.execute()
60
60
}
61
61
Original file line number Diff line number Diff line change @@ -74,7 +74,8 @@ open class ZipModule @Inject constructor(objects: ObjectFactory) : DefaultTask()
74
74
75
75
if (fileSet.contains(name)) {
76
76
throw IllegalArgumentException (
77
- " Library '$name ' exists in multiple versions in ${contentDir.absolutePath} " )
77
+ " Library '$name ' exists in multiple versions in ${contentDir.absolutePath} "
78
+ )
78
79
} else {
79
80
fileSet.add(name)
80
81
}
You can’t perform that action at this time.
0 commit comments