-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from Workday/fix_plugin_annotations
fix plugin annotations
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 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
12 changes: 9 additions & 3 deletions
12
torque-gradle-plugin/src/main/kotlin/com/workday/torque/gradle/TorqueRunTask.kt
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,14 +1,20 @@ | ||
package com.workday.torque.gradle | ||
|
||
import org.gradle.api.DefaultTask | ||
import org.gradle.api.tasks.Input | ||
import org.gradle.api.tasks.options.Option | ||
|
||
open class TorqueRunTask: DefaultTask() { | ||
|
||
@get: Input | ||
@set: Option(option = "annotations", description = "annotations for tests to be ran") | ||
var includedAnnotations: List<String> = emptyList() | ||
@Option(option = "annotations", description = "annotations for tests to be ran") set | ||
|
||
@get: Input | ||
@set: Option(option = "notAnnotations", description = "annotations for tests not to be ran") | ||
var excludedAnnotations: List<String> = emptyList() | ||
@Option(option = "notAnnotations", description = "annotations for tests not to be ran") set | ||
|
||
@get: Input | ||
@set: Option(option = "testClassRegexes", description = "regex for tests to be ran") | ||
var testClassRegexes: List<String> = emptyList() | ||
@Option(option = "testClassRegexes", description = "regex for tests to be ran") set | ||
} |