You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/publishing/SonatypeCentralPortalPublishTask.kt
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,9 @@ import org.gradle.api.DefaultTask
9
9
importorg.gradle.api.file.RegularFileProperty
10
10
importorg.gradle.api.provider.Property
11
11
importorg.gradle.api.tasks.*
12
+
importorg.gradle.api.tasks.options.Option
13
+
importkotlin.io.path.Path
14
+
importkotlin.io.path.exists
12
15
importkotlin.time.Duration
13
16
importkotlin.time.Duration.Companion.minutes
14
17
importkotlin.time.Duration.Companion.seconds
@@ -22,6 +25,12 @@ abstract class SonatypeCentralPortalPublishTask : DefaultTask() {
22
25
@get:InputFile
23
26
abstractval bundle:RegularFileProperty
24
27
28
+
@Option(option ="bundle", description ="Path to bundle")
29
+
funsetBundleFromOption(path:String) {
30
+
check(Path(path).exists()) { "Bundle not found at $path" }
0 commit comments