File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ plugins {
44 signing
55}
66
7- group = " cc.datafabric "
8- version = " 1.3 -SNAPSHOT"
7+ group = " io.github.datafabricrus "
8+ version = " 1.4 -SNAPSHOT"
99
1010repositories {
1111 mavenCentral()
@@ -83,12 +83,23 @@ publishing {
8383 }
8484 }
8585 }
86+ repositories {
87+ maven {
88+ name = " OSSRH"
89+ url = uri(
90+ if (version.toString().endsWith(" SNAPSHOT" ))
91+ " https://s01.oss.sonatype.org/content/repositories/snapshots/"
92+ else
93+ " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
94+ )
95+ credentials {
96+ username = findProperty(" ossrhUsername" ) as String? ? : System .getenv(" OSSRH_USERNAME" )
97+ password = findProperty(" ossrhPassword" ) as String? ? : System .getenv(" OSSRH_PASSWORD" )
98+ }
99+ }
100+ }
86101}
87102
88103signing {
89- sign(publishing.publications[" jvm" ])
90- }
91-
92- tasks.getByName(" signJvmPublication" ) {
93- enabled = project.hasProperty(" sign" )
104+ sign(publishing.publications)
94105}
You can’t perform that action at this time.
0 commit comments