@@ -9,9 +9,9 @@ plugins {
99 `maven- publish`
1010}
1111
12- val baseVersion = " 0.0.16 "
12+ val baseVersion = " 0.0.17 "
1313val commitHash = System .getenv(" COMMIT_HASH" )
14- val timestamp = System .currentTimeMillis() // Temporary to be able to build and publish directly out of fix branch with same commit hash
14+ val timestamp = System .currentTimeMillis()
1515val snapshotVersion = " ${baseVersion} -dev.${timestamp} -${commitHash} "
1616
1717allprojects {
@@ -40,6 +40,7 @@ subprojects {
4040 apply {
4141 plugin(rootProject.libs.plugins.shadow.get().pluginId)
4242 plugin(rootProject.libs.plugins.kotlin.jvm.get().pluginId)
43+ plugin(" maven-publish" )
4344
4445 // Only apply the central portal publisher plugin to non-shared modules
4546 // to avoid conflicts with the mavenJava publication
@@ -60,29 +61,31 @@ subprojects {
6061 }
6162 }
6263
63- if (project.path != " :platform:shared " ) {
64- publishing {
65- repositories {
66- maven {
67- name = " simplecloud"
68- url = uri( " https://repo.simplecloud.app/snapshots/ " )
69- credentials {
70- username = System .getenv( " SIMPLECLOUD_USERNAME " ) ? : (project.findProperty(" simplecloudUsername" ) as ? String )
71- password = System .getenv(" SIMPLECLOUD_PASSWORD" ) ? : (project.findProperty( " simplecloudPassword " ) as ? String )
72- }
73- authentication {
74- create< BasicAuthentication >( " basic " )
75- }
64+ publishing {
65+ repositories {
66+ maven {
67+ name = " simplecloud "
68+ url = uri( " https://repo. simplecloud.app/snapshots/ " )
69+ credentials {
70+ username = System .getenv( " SIMPLECLOUD_USERNAME " )
71+ ? : (project.findProperty(" simplecloudUsername" ) as ? String )
72+ password = System .getenv(" SIMPLECLOUD_PASSWORD" )
73+ ? : (project.findProperty( " simplecloudPassword " ) as ? String )
74+ }
75+ authentication {
76+ create< BasicAuthentication >( " basic " )
7677 }
7778 }
79+ }
7880
79- publications {
80- create<MavenPublication >(" mavenJava" ) {
81- from(components[" java" ])
82- }
81+ publications {
82+ create<MavenPublication >(" mavenJava" ) {
83+ from(components[" java" ])
8384 }
8485 }
86+ }
8587
88+ if (project.path != " :platform:shared" ) {
8689 signing {
8790 if (commitHash != null ) {
8891 return @signing
0 commit comments