Skip to content

Commit 1a592c2

Browse files
authored
Merge pull request #848 from modelix/feature/modelix-961
build: set apache license in mvn artifacts
2 parents f12741a + 28b2680 commit 1a592c2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ allprojects {
217217
}
218218
}
219219

220-
// Set maven metadata for all known publishing tasks. The exact tasks and names are only known after evaluatin.
220+
// Set maven metadata for all known publishing tasks. The exact tasks and names are only known after evaluation.
221221
afterEvaluate {
222222
tasks.withType<AbstractPublishToMaven>() {
223223
this.publication?.apply {
@@ -234,6 +234,12 @@ fun MavenPublication.setMetadata() {
234234
connection.set("scm:git:https://github.com/modelix/modelix.core.git")
235235
url.set("https://github.com/modelix/modelix.core")
236236
}
237+
licenses {
238+
license {
239+
name.set("The Apache License, Version 2.0")
240+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
241+
}
242+
}
237243
}
238244
}
239245

0 commit comments

Comments
 (0)