-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added @RequiresPlugin annotations to JobParent
- Loading branch information
Showing
6 changed files
with
62 additions
and
11 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
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
14 changes: 7 additions & 7 deletions
14
...avaposse/jobdsl/dsl/RequiresPlugin.groovy → .../javaposse/jobdsl/dsl/RequiresPlugin.java
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,23 +1,23 @@ | ||
package javaposse.jobdsl.dsl | ||
package javaposse.jobdsl.dsl; | ||
|
||
import java.lang.annotation.Documented | ||
import java.lang.annotation.ElementType | ||
import java.lang.annotation.Target | ||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Indicates that a plugin must be installed to use the features provided by the annotated DSL method. A minimum | ||
* version can be specified as a lower bound for the version of the required plugin. | ||
*/ | ||
@Target([ElementType.METHOD]) | ||
@Target(ElementType.METHOD) | ||
@Documented | ||
@interface RequiresPlugin { | ||
/** | ||
* The Plugin ID or short name of the required plugin. | ||
*/ | ||
String id() | ||
String id(); | ||
|
||
/** | ||
* The least acceptable version of the required plugin. Optional, any version will be accepted if none is given. | ||
*/ | ||
String minimumVersion() default '' | ||
String minimumVersion() default ""; | ||
} |
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.