@@ -26,10 +26,29 @@ $ sdk u java 24.ea-open
26
26
27
27
``` bash
28
28
$ ./gradlew build [-Pskip.test]
29
+
29
30
# Run the app
30
31
$ ./gradlew :backend:jvm:run
32
+
33
+ # Publish to local repo
34
+ $ ./gradlew buildAndPublish
31
35
```
32
36
37
+ ### Publishing
38
+
39
+ Push a new tag to trigger the release workflow and publish the artifacts. That's it 🎉.
40
+ The next version will be based on the semantic version scope (` major ` , ` minor ` , ` patch ` )
41
+
42
+ ``` bash
43
+ $ ./gradlew pushSemverTag " -Psemver.scope=patch"
44
+
45
+ # To see the current version
46
+ # ./gradlew v
47
+
48
+ # Print the new version
49
+ # ./gradlew printSemver "-Psemver.scope=patch"
50
+ ```
51
+
33
52
<details >
34
53
<summary > <b >Multiplatform Targets</b ></summary >
35
54
@@ -246,7 +265,7 @@ $ ./gradlew :backend:jvm:run
246
265
``` bash
247
266
$ ./gradlew publishAllPublicationsToLocalRepository
248
267
249
- # Publishing to all repo except Central
268
+ # Publishing to all repo except Maven Central
250
269
$ ./gradlew buildAndPublish
251
270
252
271
# Maven Central Publishing
@@ -262,9 +281,10 @@ $ ./gradlew :backend:jvm:run
262
281
$ export ORG_GRADLE_PROJECT_signingInMemoryKeyPassword=< Password>
263
282
$ export ORG_GRADLE_PROJECT_signingInMemoryKey=$( gpg --export-secret-keys --armor ${ORG_GRADLE_PROJECT_signingInMemoryKeyId} | grep -v ' \-\-' | grep -v ' ^=.' | tr -d ' \n' )
264
283
265
- # For aggregated publication (preferred)
284
+ # For aggregated publication (preferred) to Central
266
285
$ ./gradlew publishAggregatedPublicationToCentralPortal
267
- # For all publications
286
+
287
+ # For all publications (separate publications)
268
288
$ ./gradlew publishAllPublicationsToCentralPortal
269
289
```
270
290
0 commit comments