fix #123 allow to specify extra annotations on repositories/methods
[yosql.git] / yosql-tooling / yosql-tooling-gradle / src / main / java / wtf / metio / yosql / tooling / gradle / GenerateCodeAction.java
blob1b8c0283603a53fa8aed0738433d386798f77e8c
1 /*
2 * This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
3 * directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
4 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
5 * in the LICENSE file.
6 */
8 package wtf.metio.yosql.tooling.gradle;
10 import org.gradle.api.Action;
11 import org.gradle.api.Task;
12 import org.gradle.api.tasks.TaskProvider;
14 public final class GenerateCodeAction implements Action<Task> {
16 private final TaskProvider<GenerateCodeTask> generateTask;
18 public GenerateCodeAction(final TaskProvider<GenerateCodeTask> generateTask) {
19 this.generateTask = generateTask;
22 @Override
23 public void execute(final Task task) {
24 generateTask.get().generateCode();