Skip to content

Commit d9a059c

Browse files
committed
Instant.now doesn't work, so just use System.currentTimeMillis
1 parent 8555191 commit d9a059c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project-plugins/src/main/kotlin/io/github/xmlutil/plugin/PublishToSonatypeTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ abstract class PublishToSonatypeTask() : DefaultTask() {
5050
val url = URI("https://central.sonatype.com/api/v1/publisher/upload?publishingType=USER_MANAGED")
5151
val connection = url.toURL().openConnection() as HttpURLConnection
5252
try {
53-
val boundary = "*******${Instant.now().millis}*******"
53+
val boundary = "*******${System.currentTimeMillis()}*******"
5454

5555
connection.requestMethod = "POST"
5656
connection.doOutput = true

0 commit comments

Comments
 (0)