Skip to content

Commit e7090ee

Browse files
committed
Add license to POM #319
1 parent a4a882c commit e7090ee

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
## Version 7.x *(unreleased)*
44

5-
## Version 7.0.3 *(unreleased)*
5+
## Version 7.1.0 *(unreleased)*
66
* Add support for ARM64 Windows [#315](https://github.com/node-gradle/gradle-node-plugin/issues/315)
77
* Add support for AIX [#320](https://github.com/node-gradle/gradle-node-plugin/issues/320)
8+
* Add license to publications POM [#319](https://github.com/node-gradle/gradle-node-plugin/issues/319)
89

910
## Version 7.0.2 *(2024-02-02)*
1011
* Prevent misconfigured `workDir` from removing all unrelated files [#297](https://github.com/node-gradle/gradle-node-plugin/issues/297)

build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,12 @@ pluginBundle {
182182
tasks.wrapper {
183183
distributionType = Wrapper.DistributionType.ALL
184184
}
185+
186+
publishing.publications.withType<MavenPublication>().configureEach {
187+
pom.licenses {
188+
license {
189+
name.set("Apache License, Version 2.0")
190+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
191+
}
192+
}
193+
}

0 commit comments

Comments
 (0)