|
1 | | -import io.openapiprocessor.build.core.dsl.initFrom |
2 | | -import io.openapiprocessor.build.core.dsl.initSignKey |
3 | | -import io.openapiprocessor.build.core.dsl.projectGroupId |
4 | | -import io.openapiprocessor.build.core.dsl.sonatype |
5 | | -import io.openapiprocessor.build.core.getPomProperties |
6 | | - |
7 | 1 | plugins { |
8 | 2 | `kotlin-dsl` |
9 | | - alias(libs.plugins.versions) |
| 3 | + `maven-publish` |
| 4 | + signing |
10 | 5 | alias(libs.plugins.publish) |
11 | | - alias(libs.plugins.central) |
12 | | - alias(libs.plugins.create) |
| 6 | + alias(libs.plugins.versions) |
13 | 7 | id("compile") |
14 | 8 | } |
15 | 9 |
|
16 | | -group = projectGroupId() |
| 10 | +group = "io.openapiprocessor" |
17 | 11 | version = libs.versions.project.get() |
18 | 12 |
|
19 | 13 | versions { |
@@ -73,9 +67,9 @@ tasks.compileKotlin { |
73 | 67 | } |
74 | 68 | // |
75 | 69 |
|
76 | | -tasks.named("publishToMavenCentral") { |
77 | | - dependsOn("publishPluginMavenPublicationToStagingRepository") |
78 | | -} |
| 70 | +//tasks.named("publishToMavenCentral") { |
| 71 | +// dependsOn("publishPluginMavenPublicationToStagingRepository") |
| 72 | +//} |
79 | 73 |
|
80 | 74 | tasks.named<Test>("testInt") { |
81 | 75 | shouldRunAfter(tasks.named("test")) |
@@ -112,26 +106,35 @@ gradlePlugin { |
112 | 106 | } |
113 | 107 | } |
114 | 108 |
|
115 | | -afterEvaluate { |
116 | | - publishing { |
117 | | - repositories { |
118 | | - sonatype(project) |
119 | | - } |
120 | | - } |
121 | 109 |
|
122 | | - val mavenPublications = publishing.publications.withType<MavenPublication>() |
123 | | - mavenPublications.all { |
124 | | - pom { |
125 | | - pom.initFrom(getPomProperties(project)) |
126 | | - } |
127 | | - } |
| 110 | +publishing { |
128 | 111 |
|
129 | | - signing { |
130 | | - initSignKey() |
131 | | - sign(*mavenPublications.toTypedArray<Publication>()) |
132 | | - } |
133 | 112 | } |
134 | 113 |
|
| 114 | +publishingCentral { |
| 115 | + deploymentName = "gradle" |
| 116 | + waitFor = "VALIDATED" |
| 117 | +} |
| 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 | +// } |
| 137 | + |
135 | 138 | /* |
136 | 139 | afterEvaluate { |
137 | 140 | components.forEach { component -> |
|
0 commit comments