Skip to content

Commit 58e6095

Browse files
committed
chore: nmcp update
1 parent 8ff653b commit 58e6095

File tree

3 files changed

+38
-6
lines changed

3 files changed

+38
-6
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ $ ./gradlew :backend:jvm:run
170170

171171
```bash
172172
$ ./gradlew :backend:native:build
173+
$ find backend/native/build/bin -type f -perm +111 -exec ls -lh {} \; | awk '{print $9 ": " $5}'
174+
173175
# Arch specific binaries
174176
$ ./gradlew :backend:native:macosArm64Binaries
175177
$ ./gradlew :backend:native:macosX64Binaries
@@ -242,12 +244,13 @@ $ ./gradlew :backend:jvm:run
242244

243245
$ export ORG_GRADLE_PROJECT_mavenCentralUsername=<Username from https://central.sonatype.com/account>
244246
$ export ORG_GRADLE_PROJECT_mavenCentralPassword=<Token from https://central.sonatype.com/account>
245-
$ export ORG_GRADLE_PROJECT_signingKeyId=<GPG Key ID>
246-
$ export ORG_GRADLE_PROJECT_signingPassword=<Password>
247-
$ export ORG_GRADLE_PROJECT_signingKey=$(gpg --export-secret-keys --armor ${ORG_GRADLE_PROJECT_signingKeyId} | grep -v '\-\-' | grep -v '^=.' | tr -d '\n')
247+
$ export ORG_GRADLE_PROJECT_signingInMemoryKeyId=<GPG Key ID>
248+
$ export ORG_GRADLE_PROJECT_signingInMemoryKeyPassword=<Password>
249+
$ export ORG_GRADLE_PROJECT_signingInMemoryKey=$(gpg --export-secret-keys --armor ${ORG_GRADLE_PROJECT_signingInMemoryKeyId} | grep -v '\-\-' | grep -v '^=.' | tr -d '\n')
248250

251+
# For aggregated publication (preferred)
249252
$ ./gradlew publishAggregatedPublicationToCentralPortal
250-
# For all publications,
253+
# For all publications
251254
$ ./gradlew publishAllPublicationsToCentralPortal
252255
```
253256

build.gradle.kts

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,38 @@
1+
import common.*
2+
13
plugins {
24
dev.suresh.plugin.root
35
// alias(libs.plugins.kotlin.multiplatform) apply false
46
// id(libs.plugins.kotlin.multiplatform.get().pluginId)
5-
// alias(libs.plugins.kotlin.compose.compiler) apply false
67
}
78

89
description = "Kotlin Multiplatform Playground!"
10+
11+
nmcp {
12+
val nativeBuild: String? by project
13+
val composeBuild: String? by project
14+
15+
publishAggregation {
16+
project(":shared")
17+
project(":dep-mgmt:bom")
18+
project(":dep-mgmt:catalog")
19+
project(":meta:ksp:processor")
20+
project(":meta:compiler:plugin")
21+
project(":backend:jvm")
22+
project(":backend:data")
23+
project(":backend:profiling")
24+
project(":backend:security")
25+
project(":web")
26+
if (nativeBuild.toBoolean()) {
27+
project(":backend:native")
28+
}
29+
if (composeBuild.toBoolean()) {
30+
project(":compose:cmp")
31+
// project(":compose:html")
32+
}
33+
34+
username = mavenCentralUsername
35+
password = mavenCentralPassword
36+
publicationType = "AUTOMATIC"
37+
}
38+
}

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,4 @@ enableMavenSnapshot=false
6666
composeBuild=true
6767
springBoot=false
6868
nativeBuild=false
69-
nativeWinTarget=false
7069
debug=false

0 commit comments

Comments
 (0)