Skip to content

Commit 789577b

Browse files
committed
fix: correct artifact names for publishing
1 parent 44a2eec commit 789577b

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

build.gradle

+26-24
Original file line numberDiff line numberDiff line change
@@ -52,32 +52,34 @@ subprojects {
5252
withSourcesJar()
5353
}
5454

55-
publishing {
56-
publications {
57-
mavenJava(MavenPublication) {
58-
from(components.java)
59-
artifactId = archivesBaseName
60-
pom {
61-
name = 'gRPC Java JWT'
62-
description = 'JWT based authentication for gRPC-Java'
63-
url = 'https://github.com/avast/grpc-java-jwt'
64-
licenses {
65-
license {
66-
name = 'The MIT License'
67-
url = 'http://www.opensource.org/licenses/mit-license.php'
55+
afterEvaluate {
56+
publishing {
57+
publications {
58+
mavenJava(MavenPublication) {
59+
from(components.java)
60+
artifactId = archivesBaseName
61+
pom {
62+
name = 'gRPC Java JWT'
63+
description = 'JWT based authentication for gRPC-Java'
64+
url = 'https://github.com/avast/grpc-java-jwt'
65+
licenses {
66+
license {
67+
name = 'The MIT License'
68+
url = 'http://www.opensource.org/licenses/mit-license.php'
69+
}
6870
}
69-
}
70-
developers {
71-
developer {
72-
id = 'augi'
73-
name = 'Michal Augustýn'
74-
71+
developers {
72+
developer {
73+
id = 'augi'
74+
name = 'Michal Augustýn'
75+
76+
}
77+
}
78+
scm {
79+
connection = 'scm:git:git://github.com/avast/grpc-java-jwt.git'
80+
developerConnection = 'scm:git:ssh://github.com/avast/grpc-java-jwt.git'
81+
url = 'https://github.com/avast/grpc-java-jwt'
7582
}
76-
}
77-
scm {
78-
connection = 'scm:git:git://github.com/avast/grpc-java-jwt.git'
79-
developerConnection = 'scm:git:ssh://github.com/avast/grpc-java-jwt.git'
80-
url = 'https://github.com/avast/grpc-java-jwt'
8183
}
8284
}
8385
}

0 commit comments

Comments
 (0)