Skip to content

Commit

Permalink
Allowlist more license spellings
Browse files Browse the repository at this point in the history
Avoid:
```
> Task :verifyLicensing FAILED
Illegal license found 'LGPL, version 2.1' in 'net.java.dev.jna:jna:5.8.0'
Illegal license found 'Apache License v2.0' in 'net.java.dev.jna:jna:5.8.0'
Illegal license found 'MIT' in 'org.testcontainers:selenium:1.17.5'
Illegal license found 'MIT' in 'org.rnorth.duct-tape:duct-tape:1.0.8'
Illegal license found 'MIT' in 'org.testcontainers:testcontainers:1.17.5'
```
  • Loading branch information
dagguh committed Jun 6, 2024
1 parent 891b1ed commit ccc100d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
[Unreleased]: https://github.com/atlassian-labs/gradle-release/compare/release-0.7.3...master

## Added
- Allowlist alternate spellings of Apache, MIT and LGPL licenses.

## [0.8.0] - 2023-01-27
[0.8.0]: https://github.com/atlassian-labs/gradle-release/compare/release-0.7.3...release-0.8.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ import org.gradle.api.tasks.TaskAction

open class VerifyLicensingTask : DefaultTask() {
private val allowedLicenses = setOf(
"The Apache Software License, Version 2.0",
"The Apache Software License, Version 2.0", // https://choosealicense.com/licenses/apache-2.0/
"Apache License, Version 2.0",
"Apache 2",
"Apache 2.0",
"Apache License 2.0",
"Apache License v2.0",
"Apache Public License 2.0",
"The Apache License, Version 2.0",
"Bouncy Castle Licence",
"MIT", // https://choosealicense.com/licenses/mit/
"MIT license",
"MIT License",
"The MIT License",
Expand All @@ -30,7 +32,8 @@ open class VerifyLicensingTask : DefaultTask() {
"Eclipse Public License 1.0",
"GNU General Public License, version 2 (GPL2), with the classpath exception",
"GPL2 w/ CPE",
"GNU Lesser General Public License"
"GNU Lesser General Public License", // https://choosealicense.com/licenses/lgpl-2.1/
"LGPL, version 2.1"
)

@TaskAction
Expand Down

0 comments on commit ccc100d

Please sign in to comment.