Skip to content

Commit 4115b1e

Browse files
committed
update publishing
1 parent 3131920 commit 4115b1e

2 files changed

Lines changed: 4 additions & 31 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
`kotlin-dsl`
33
`maven-publish`
44
signing
5+
alias(libs.plugins.pubplug)
56
alias(libs.plugins.publish)
67
alias(libs.plugins.versions)
78
id("compile")
@@ -65,11 +66,6 @@ tasks.compileGroovy {
6566
tasks.compileKotlin {
6667
libraries.from(sourceSets.main.get().groovy.classesDirectory)
6768
}
68-
//
69-
70-
//tasks.named("publishToMavenCentral") {
71-
// dependsOn("publishPluginMavenPublicationToStagingRepository")
72-
//}
7369

7470
tasks.named<Test>("testInt") {
7571
shouldRunAfter(tasks.named("test"))
@@ -106,31 +102,7 @@ gradlePlugin {
106102
}
107103
}
108104

109-
110-
publishing {
111-
112-
}
113-
114105
publishingCentral {
115106
deploymentName = "gradle"
116107
waitFor = "VALIDATED"
117108
}
118-
119-
120-
// publishing {
121-
// repositories {
122-
// sonatype(project)
123-
// }
124-
// }
125-
//
126-
// val mavenPublications = publishing.publications.withType<MavenPublication>()
127-
// mavenPublications.all {
128-
// pom {
129-
// pom.initFrom(getPomProperties(project))
130-
// }
131-
// }
132-
//
133-
// signing {
134-
// initSignKey()
135-
// sign(*mavenPublications.toTypedArray<Publication>())
136-
// }

gradle/libs.versions.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ bytebuddy = "1.17.6"
88

99
# plugins
1010
updates = "0.51.0"
11-
build-plugins = "2025.9"
11+
build-plugins = "2025.10-SNAPSHOT"
12+
pubplug = "1.3.1"
1213

1314
[libraries]
1415
openapi-processor-api = { module = "io.openapiprocessor:openapi-processor-api", version.ref = "api" }
@@ -18,7 +19,7 @@ spock-core = { module = "org.spockframework:spock-core" }
1819
bytebuddy = { module = "net.bytebuddy:byte-buddy", version.ref = "bytebuddy" }
1920

2021
[plugins]
21-
#publish = { id = "com.gradle.plugin-publish", version.ref = "publish" }
22+
pubplug = { id = "com.gradle.plugin-publish", version.ref = "pubplug" }
2223
updates = { id = "com.github.ben-manes.versions", version.ref = "updates" }
2324
publish = { id = "io.openapiprocessor.build.plugin.publish", version.ref = "build-plugins" }
2425
versions = { id = "io.openapiprocessor.build.plugin.create-versions", version.ref = "build-plugins" }

0 commit comments

Comments
 (0)