File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed
core/src/commonMain/kotlin/dev/inmo/kmppscriptbuilder/core/export Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ const val generateCentralSonatypeUploadingPartImports = """import java.nio.chars
6
6
import java.net.http.HttpClient
7
7
import java.net.http.HttpRequest
8
8
import java.net.http.HttpResponse"""
9
- const val generateCentralSonatypeUploadingPart = """ if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
9
+ const val generateCentralSonatypeUploadingPart = """ // This script work based on https://ossrh-staging-api.central.sonatype.com/swagger-ui/#/default/manual_upload_repository
10
+ // and getting available open repos and just uploading them
11
+ if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
10
12
def taskName = "uploadSonatypePublication"
11
13
if (rootProject.tasks.names.contains(taskName) == false) {
12
14
rootProject.tasks.register(taskName) {
Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ publishing {
61
61
""" }}
62
62
}
63
63
}
64
- repositories {
65
- ${repositories.joinToString(" \n " ) { it.build(" " ) }}
66
- }
67
64
}
68
65
}
66
+ repositories {
67
+ ${repositories.joinToString(" \n " ) { it.build(" " ) }}
68
+ }
69
69
}
70
70
${gpgSigning.generateMavenConfig()}
71
71
""" .trimIndent()
Original file line number Diff line number Diff line change @@ -58,11 +58,11 @@ publishing {
58
58
""" }}
59
59
}
60
60
}
61
- repositories {
62
- ${repositories.joinToString(" \n " ) { it.build(" " ) }}
63
- }
64
61
}
65
62
}
63
+ repositories {
64
+ ${repositories.joinToString(" \n " ) { it.build(" " ) }}
65
+ }
66
66
}
67
67
${gpgSigning.generateMavenConfig()}
68
68
""" .trimIndent()
Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ publishing {
42
42
}""" }}
43
43
}
44
44
}
45
- repositories {
46
- ${ repositories.joinToString( " \n " ) { it.build( " " ) }}
47
- }
45
+ }
46
+ repositories {
47
+ ${repositories.joinToString( " \n " ) { it.build( " " ) } }
48
48
}
49
49
}
50
50
${gpgSigning.generateMavenConfig()}
You can’t perform that action at this time.
0 commit comments