diff options
author | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2019-05-07 15:31:03 +0200 |
---|---|---|
committer | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2019-05-07 15:34:26 +0200 |
commit | ee303bda28ac0f7df6170b1a11b7d62ab1a2f8e9 (patch) | |
tree | c8692e733e119a3848ca2035668b09f3057bc20e /vespa-maven-plugin | |
parent | e7ac6e07b25e1e20e7a56edaaff3a08f69ab0e0f (diff) |
Add CompileVersion mojo
Diffstat (limited to 'vespa-maven-plugin')
-rw-r--r-- | vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/CompileVersionMojo.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/CompileVersionMojo.java b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/CompileVersionMojo.java new file mode 100644 index 00000000000..24e2c42d756 --- /dev/null +++ b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/CompileVersionMojo.java @@ -0,0 +1,18 @@ +package ai.vespa.hosted.plugin; + +import org.apache.maven.plugins.annotations.Mojo; + +/** + * Finds the Vespa version to compile against, for a hosted Vespa application. + * + * @author jonmv + */ +@Mojo(name = "compileVersion") +public class CompileVersionMojo extends AbstractVespaMojo { + + @Override + protected void doExecute() { + System.out.println(controller.compileVersion(id)); + } + +} |