Skip to content

Commit

Permalink
Use a plain convention task
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Hervieux authored and laurent-barbisan-ullink committed Dec 5, 2018
1 parent 5a8cf2b commit b33a325
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import org.elasticsearch.action.bulk.BulkProcessor
import org.elasticsearch.action.index.IndexRequest
import org.elasticsearch.client.transport.TransportClient
import org.elasticsearch.common.xcontent.XContentType
import org.gradle.api.tasks.Exec
import org.gradle.api.internal.ConventionTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.Optional
import org.gradle.api.tasks.TaskAction
import org.gradle.api.tasks.testing.Test
import org.gradle.api.tasks.testing.TestResult

Expand All @@ -21,7 +22,7 @@ import java.time.format.DateTimeFormatter
import static java.util.Collections.singletonList

@Slf4j
class TestExportTask extends Exec {
class TestExportTask extends ConventionTask {

@Input
@Optional
Expand Down Expand Up @@ -68,7 +69,7 @@ class TestExportTask extends Exec {
@Internal
TransportClient client

@Override
@TaskAction
void exec() {
ElasticSearchProcessor elasticSearchProcessor = new ElasticSearchProcessor()
Properties parameters = new Properties()
Expand Down

0 comments on commit b33a325

Please sign in to comment.