Helps generating default values for GithubInfoExtension.
If LICENSE or LICENSE.txt file exists in project root then licenseUrl will lead to raw file on github.
Contains info for most commonly used licenses. User have to set only short license name and
licenseName will be set to full license name. If license file not found in project then
licenseUrl will be set as link to license page on opensource.org.
| Modifiers | Name | Description |
|---|---|---|
static class |
LicenseHelper.LicenseDescription |
License description object |
| Type | Name and description |
|---|---|
java.util.Map<java.lang.String, LicenseDescription> |
descriptions |
org.gradle.api.Project |
project |
| Constructor and description |
|---|
LicenseHelper
(org.gradle.api.Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
defaultLicenseName(GithubInfoExtension ext)@param ext extension object |
|
java.lang.String |
defaultLicenseUrl(GithubInfoExtension ext)Default url is set either to raw github link to LICENSE or LICENSE.txt file in project root (if exists) or to opensource.org url (if license recognized by license). |
|
LicenseHelper.LicenseDescription |
find(java.lang.String id)@param id license short name |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
ext - extension objectlicense) or null Default url is set either to raw github link to LICENSE or LICENSE.txt file in project root (if exists)
or to opensource.org url (if license recognized by license).
ext - extension object
id - license short nameGroovy Documentation