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> {
99
99
this .repositories {
100
100
sonatype {
101
101
if (project.hasProperty(" sonatypeUsername" ) && project.hasProperty(" sonatypePassword" )) {
102
- println (" nexusPublishing credentials supplied." )
103
102
username.set(project.property(" sonatypeUsername" ).toString())
104
103
password.set(project.property(" sonatypePassword" ).toString())
104
+ println (" Publishing: configured Maven Central repository" )
105
105
} else {
106
- println (" nexusPublishing credentials NOT supplied. " )
106
+ println (" Publishing: Maven Central repository not configured " )
107
107
}
108
108
}
109
109
}
Original file line number Diff line number Diff line change @@ -32,17 +32,16 @@ publishing {
32
32
// "https://gitlab.example.com/api/v4/projects/<PROJECT_ID>/packages/maven"
33
33
val gitlabUrl = project.property(" gitlabUrl" )
34
34
url = uri(" $gitlabUrl /api/v4/projects/14/packages/maven" )
35
- println (" GitLab repository set to $url ." )
36
-
37
35
credentials(HttpHeaderCredentials ::class ) {
38
36
name = project.findProperty(" gitlabPublishTokenName" )?.toString() ? : " Private-Token"
39
37
value = project.property(" gitlabPublishToken" ).toString()
40
38
}
41
39
authentication {
42
40
create<HttpHeaderAuthentication >(" header" )
43
41
}
42
+ println (" Publishing: configured GitLab repository $url " )
44
43
} else {
45
- println (" WARNING: Can not publish to GitLab: gitlabUrl or gitlabPublishToken not set. " )
44
+ println (" Publishing: GitLab repository not configured " )
46
45
}
47
46
}
48
47
// Note: Sonatype repo created by publish-plugin, see root build.gradle.kts.
@@ -96,8 +95,9 @@ signing {
96
95
project.property(" signingPassword" ).toString()
97
96
)
98
97
sign(publishing.publications[" mavenJava" ])
98
+ println (" Publishing: configured signing with key file" )
99
99
} else {
100
- println (" Signing information missing/incomplete for ${project.name} " )
100
+ println (" Publishing: signing not configured " )
101
101
}
102
102
}
103
103
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ repositories {
25
25
// Native lib might be deployed only in internal repo
26
26
if (project.hasProperty(" gitlabUrl" )) {
27
27
val gitlabUrl = project.property(" gitlabUrl" )
28
- println (" gitlabUrl=$gitlabUrl added to repositories." )
29
28
maven {
30
29
url = uri(" $gitlabUrl /api/v4/groups/objectbox/-/packages/maven" )
31
30
name = " GitLab"
@@ -36,9 +35,10 @@ repositories {
36
35
authentication {
37
36
create<HttpHeaderAuthentication >(" header" )
38
37
}
38
+ println (" Dependencies: added GitLab repository $url " )
39
39
}
40
40
} 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 ." )
42
42
}
43
43
}
44
44
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ repositories {
12
12
// Native lib might be deployed only in internal repo
13
13
if (project.hasProperty(" gitlabUrl" )) {
14
14
val gitlabUrl = project.property(" gitlabUrl" )
15
- println (" gitlabUrl=$gitlabUrl added to repositories." )
16
15
maven {
17
16
url = uri(" $gitlabUrl /api/v4/groups/objectbox/-/packages/maven" )
18
17
name = " GitLab"
@@ -23,9 +22,10 @@ repositories {
23
22
authentication {
24
23
create<HttpHeaderAuthentication >(" header" )
25
24
}
25
+ println (" Dependencies: added GitLab repository $url " )
26
26
}
27
27
} 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 ." )
29
29
}
30
30
}
31
31
You can’t perform that action at this time.
0 commit comments