Validator for validating licenses
| Type Params | Return Type | Name and description |
|---|---|---|
|
static boolean |
isValidLicense(org.gradle.api.Project project, java.lang.String product)Check if there exists a valid license for this project. |
|
static void |
validateLicense(org.gradle.api.Project project, java.lang.String product)Performs the license validation against the validation server. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
Check if there exists a valid license for this project. Before this is called the validateLicense method must have been called.
project
- the project to check license forproduct
- the product nametrue if license is valid, false otherwise.Performs the license validation against the validation server. This should be called as soon as the license credentials are known. If successful this will product a license file at DevsoapLicenseExtension#licenseFile with the license token.
project
- the projectproduct
- the product name