File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,25 @@ subprojects {
116
116
}
117
117
}
118
118
}
119
+
120
+ // Set maven metadata for all known publishing tasks. The exact tasks and names are only known after evaluatin.
121
+ afterEvaluate {
122
+ tasks.withType<AbstractPublishToMaven >() {
123
+ this .publication?.apply {
124
+ setMetadata()
125
+ }
126
+ }
127
+ }
128
+ }
129
+
130
+ fun MavenPublication.setMetadata () {
131
+ pom {
132
+ url.set(" https://github.com/modelix/modelix.core" )
133
+ scm {
134
+ connection.set(" scm:git:https://github.com/modelix/modelix.core.git" )
135
+ url.set(" https://github.com/modelix/modelix.core" )
136
+ }
137
+ }
119
138
}
120
139
121
140
tasks.withType< org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask > {
@@ -256,6 +275,8 @@ publishing {
256
275
groupId = " org.modelix"
257
276
artifactId = " core-version-catalog"
258
277
from(components[" versionCatalog" ])
278
+
279
+ setMetadata()
259
280
}
260
281
}
261
282
}
You can’t perform that action at this time.
0 commit comments