Added pom-root command

This commit is contained in:
Erik C. Thauvin 2024-11-27 22:29:31 -08:00
parent f27501634c
commit 83b4b18be7
Signed by: erik
GPG key ID: 776702A6A2DA330E

View file

@ -200,6 +200,12 @@ public class MobibotBuild extends Project {
.execute();
}
@BuildCommand(value = "pom-root", summary = "Generates the POM file in the root directory")
public void pomRoot() throws FileUtilsErrorException {
PomBuilder.generateInto(publishOperation().fromProject(this).info(), dependencies(),
new File(workDirectory, "pom.xml"));
}
@BuildCommand(value = "release-info", summary = "Generates the ReleaseInfo class")
public void releaseInfo() throws Exception {
new GeneratedVersionOperation()
@ -211,10 +217,4 @@ public class MobibotBuild extends Project {
.extension(".kt")
.execute();
}
@BuildCommand(value = "pom-root", summary = "Generates the POM file in the root directory")
public void pomRoot() throws FileUtilsErrorException {
PomBuilder.generateInto(publishOperation().fromProject(this).info(), dependencies(),
new File(workDirectory, "pom.xml"));
}
}