From e7090ee302a76f24799705058351286aa05ea228 Mon Sep 17 00:00:00 2001 From: Alex Nordlund Date: Fri, 27 Sep 2024 14:15:19 +0200 Subject: [PATCH] Add license to POM #319 --- CHANGELOG.md | 3 ++- build.gradle.kts | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48cec9fd..f0866202 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,10 @@ ## Version 7.x *(unreleased)* -## Version 7.0.3 *(unreleased)* +## Version 7.1.0 *(unreleased)* * Add support for ARM64 Windows [#315](https://github.com/node-gradle/gradle-node-plugin/issues/315) * Add support for AIX [#320](https://github.com/node-gradle/gradle-node-plugin/issues/320) +* Add license to publications POM [#319](https://github.com/node-gradle/gradle-node-plugin/issues/319) ## Version 7.0.2 *(2024-02-02)* * Prevent misconfigured `workDir` from removing all unrelated files [#297](https://github.com/node-gradle/gradle-node-plugin/issues/297) diff --git a/build.gradle.kts b/build.gradle.kts index 807c779e..55ed4cbf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -182,3 +182,12 @@ pluginBundle { tasks.wrapper { distributionType = Wrapper.DistributionType.ALL } + +publishing.publications.withType().configureEach { + pom.licenses { + license { + name.set("Apache License, Version 2.0") + url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") + } + } +}