File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,11 @@ configure<io.github.gradlenexus.publishplugin.NexusPublishExtension> {
9999 this .repositories {
100100 sonatype {
101101 if (project.hasProperty(" sonatypeUsername" ) && project.hasProperty(" sonatypePassword" )) {
102- println (" nexusPublishing credentials supplied." )
103102 username.set(project.property(" sonatypeUsername" ).toString())
104103 password.set(project.property(" sonatypePassword" ).toString())
104+ println (" Publishing: configured Maven Central repository" )
105105 } else {
106- println (" nexusPublishing credentials NOT supplied. " )
106+ println (" Publishing: Maven Central repository not configured " )
107107 }
108108 }
109109 }
Original file line number Diff line number Diff line change @@ -32,17 +32,16 @@ publishing {
3232 // "https://gitlab.example.com/api/v4/projects/<PROJECT_ID>/packages/maven"
3333 val gitlabUrl = project.property(" gitlabUrl" )
3434 url = uri(" $gitlabUrl /api/v4/projects/14/packages/maven" )
35- println (" GitLab repository set to $url ." )
36-
3735 credentials(HttpHeaderCredentials ::class ) {
3836 name = project.findProperty(" gitlabPublishTokenName" )?.toString() ? : " Private-Token"
3937 value = project.property(" gitlabPublishToken" ).toString()
4038 }
4139 authentication {
4240 create<HttpHeaderAuthentication >(" header" )
4341 }
42+ println (" Publishing: configured GitLab repository $url " )
4443 } else {
45- println (" WARNING: Can not publish to GitLab: gitlabUrl or gitlabPublishToken not set. " )
44+ println (" Publishing: GitLab repository not configured " )
4645 }
4746 }
4847 // Note: Sonatype repo created by publish-plugin, see root build.gradle.kts.
@@ -96,8 +95,9 @@ signing {
9695 project.property(" signingPassword" ).toString()
9796 )
9897 sign(publishing.publications[" mavenJava" ])
98+ println (" Publishing: configured signing with key file" )
9999 } else {
100- println (" Signing information missing/incomplete for ${project.name} " )
100+ println (" Publishing: signing not configured " )
101101 }
102102}
103103
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ repositories {
2525 // Native lib might be deployed only in internal repo
2626 if (project.hasProperty(" gitlabUrl" )) {
2727 val gitlabUrl = project.property(" gitlabUrl" )
28- println (" gitlabUrl=$gitlabUrl added to repositories." )
2928 maven {
3029 url = uri(" $gitlabUrl /api/v4/groups/objectbox/-/packages/maven" )
3130 name = " GitLab"
@@ -36,9 +35,10 @@ repositories {
3635 authentication {
3736 create<HttpHeaderAuthentication >(" header" )
3837 }
38+ println (" Dependencies: added GitLab repository $url " )
3939 }
4040 } else {
41- println (" Property gitlabUrl not set." )
41+ println (" Dependencies: GitLab repository not added. To resolve dependencies from the GitLab Package Repository, set gitlabUrl and gitlabPrivateToken ." )
4242 }
4343}
4444
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ repositories {
1212 // Native lib might be deployed only in internal repo
1313 if (project.hasProperty(" gitlabUrl" )) {
1414 val gitlabUrl = project.property(" gitlabUrl" )
15- println (" gitlabUrl=$gitlabUrl added to repositories." )
1615 maven {
1716 url = uri(" $gitlabUrl /api/v4/groups/objectbox/-/packages/maven" )
1817 name = " GitLab"
@@ -23,9 +22,10 @@ repositories {
2322 authentication {
2423 create<HttpHeaderAuthentication >(" header" )
2524 }
25+ println (" Dependencies: added GitLab repository $url " )
2626 }
2727 } else {
28- println (" Property gitlabUrl not set." )
28+ println (" Dependencies: GitLab repository not added. To resolve dependencies from the GitLab Package Repository, set gitlabUrl and gitlabPrivateToken ." )
2929 }
3030}
3131
You can’t perform that action at this time.
0 commit comments