-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
135 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
[versions] | ||
kotlin = "1.9.0" | ||
spring-boot = "3.1.2" | ||
gradle-docker = "9.3.4" | ||
kotlin = "1.9.10" | ||
ktlint = "4.0.0" | ||
nebula-contacts = "7.0.1" | ||
nebula-info = "12.1.6" | ||
nebula-publishing = "20.3.0" | ||
gradle-docker = "9.3.2" | ||
plugin-publishing = "1.2.0" | ||
ktlint = "11.5.0" | ||
plugin-publishing = "1.2.1" | ||
spring-boot = "3.1.2" | ||
|
||
[libraries] | ||
nebula-info = { module = "com.netflix.nebula:gradle-info-plugin", version.ref = "nebula-info" } | ||
nebula-publishing = { module = "com.netflix.nebula:nebula-publishing-plugin", version.ref = "nebula-publishing" } | ||
nebula-contacts = { module = "com.netflix.nebula:gradle-contacts-plugin", version.ref = "nebula-contacts" } | ||
gradle-docker = { module = "com.bmuschko:gradle-docker-plugin", version.ref = "gradle-docker" } | ||
gradle-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } | ||
gradle-ktlint = { module = "org.jmailen.gradle:kotlinter-gradle", version.ref = "ktlint" } | ||
gradle-spring = { module = "org.springframework.boot:spring-boot-gradle-plugin", version.ref = "spring-boot" } | ||
gradle-ktlint = { module = "org.jlleitschuh.gradle:ktlint-gradle", version.ref = "ktlint" } | ||
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" } | ||
nebula-contacts = { module = "com.netflix.nebula:gradle-contacts-plugin", version.ref = "nebula-contacts" } | ||
nebula-info = { module = "com.netflix.nebula:gradle-info-plugin", version.ref = "nebula-info" } | ||
nebula-publishing = { module = "com.netflix.nebula:nebula-publishing-plugin", version.ref = "nebula-publishing" } | ||
|
||
[plugins] | ||
plugin-publishing = { id = "com.gradle.plugin-publish", version.ref = "plugin-publishing" } | ||
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } | ||
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" } | ||
ktlint = { id = "org.jmailen.kotlinter", version.ref = "ktlint" } | ||
plugin-publishing = { id = "com.gradle.plugin-publish", version.ref = "plugin-publishing" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,21 +68,23 @@ class ProjectLicensePlugin : Plugin<Project> { | |
} | ||
|
||
companion object { | ||
private val licenseRegex = mapOf( | ||
"MIT License" to "MIT License".toRegex(), | ||
"Apache License 2.0" to """Apache License\s+Version 2\.0""".toRegex(), | ||
"Mozilla Public License 2.0" to """Mozilla Public License Version 2\.0""".toRegex(), | ||
"GNU AGPLv3" to """GNU AFFERO GENERAL PUBLIC LICENSE\s+Version 3""".toRegex(), | ||
"GNU GPLv3" to """GNU GENERAL PUBLIC LICENSE\s+Version 3""".toRegex(), | ||
"GNU LGPLv3" to """GNU LESSER GENERAL PUBLIC LICENSE\s+Version 3""".toRegex(), | ||
"Boost Software License 1.0" to """Boost Software License - Version 1\.0""".toRegex(), | ||
"The Unlicense" to """This is free and unencumbered software released into the public domain\.""".toRegex(), | ||
"WTFPL" to "DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE".toRegex() | ||
) | ||
private val githubPatterns = listOf( | ||
"""[email protected]:([a-zA-Z0-9-_.]+?):([a-zA-Z0-9-_.]+?).git""".toRegex(), | ||
"""https?://github.com/([a-zA-Z0-9-_.]+?)/([a-zA-Z0-9-_.]+?)\.git""".toRegex(), | ||
"""https?://github.com/([a-zA-Z0-9-_.]+?)/([a-zA-Z0-9-_.]+)""".toRegex() | ||
) | ||
private val licenseRegex = | ||
mapOf( | ||
"MIT License" to "MIT License".toRegex(), | ||
"Apache License 2.0" to """Apache License\s+Version 2\.0""".toRegex(), | ||
"Mozilla Public License 2.0" to """Mozilla Public License Version 2\.0""".toRegex(), | ||
"GNU AGPLv3" to """GNU AFFERO GENERAL PUBLIC LICENSE\s+Version 3""".toRegex(), | ||
"GNU GPLv3" to """GNU GENERAL PUBLIC LICENSE\s+Version 3""".toRegex(), | ||
"GNU LGPLv3" to """GNU LESSER GENERAL PUBLIC LICENSE\s+Version 3""".toRegex(), | ||
"Boost Software License 1.0" to """Boost Software License - Version 1\.0""".toRegex(), | ||
"The Unlicense" to """This is free and unencumbered software released into the public domain\.""".toRegex(), | ||
"WTFPL" to "DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE".toRegex(), | ||
) | ||
private val githubPatterns = | ||
listOf( | ||
"""[email protected]:([a-zA-Z0-9-_.]+?):([a-zA-Z0-9-_.]+?).git""".toRegex(), | ||
"""https?://github.com/([a-zA-Z0-9-_.]+?)/([a-zA-Z0-9-_.]+?)\.git""".toRegex(), | ||
"""https?://github.com/([a-zA-Z0-9-_.]+?)/([a-zA-Z0-9-_.]+)""".toRegex(), | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.