Skip to content

Commit 9e5cac5

Browse files
committed
fix maven publishing
1 parent 43cfb94 commit 9e5cac5

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

buildSrc/src/main/kotlin/buildsrc/convention/maven-publish.gradle.kts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ plugins {
44
`maven-publish`
55
}
66

7-
plugins.withType(JavaPlugin::class.java) {
8-
publishing {
9-
publications {
10-
create<MavenPublication>("mavenJava") {
11-
from(components["java"])
12-
}
13-
}
14-
}
15-
}
7+
//plugins.withType(JavaPlugin::class.java) {
8+
// publishing {
9+
// publications {
10+
// create<MavenPublication>("mavenJava") {
11+
// from(components["java"])
12+
// }
13+
// }
14+
// }
15+
//}
1616

1717
tasks
18-
.matching { it.name in listOf("publish", "publishToMavenLocal") }
18+
.matching {
19+
it.name.startsWith(PublishingPlugin.PUBLISH_LIFECYCLE_TASK_NAME)
20+
&& it.group == PublishingPlugin.PUBLISH_TASK_GROUP
21+
}
1922
.configureEach {
2023
doLast {
2124
logger.lifecycle("[${this.name}] ${project.group}:${project.name}:${project.version}")

0 commit comments

Comments
 (0)