Initial commit

This commit is contained in:
Erik C. Thauvin 2023-08-28 00:55:08 -07:00
commit 8a07516e37
49 changed files with 1996 additions and 0 deletions

View file

@ -0,0 +1,39 @@
package com.example;
import rife.bld.BaseProject;
import rife.bld.BuildCommand;
import rife.bld.extension.CheckstyleOperation;
import java.util.List;
import static rife.bld.dependencies.Repository.MAVEN_CENTRAL;
import static rife.bld.dependencies.Scope.*;
public class ExamplesBuild extends BaseProject {
public ExamplesBuild() {
pkg = "com.example";
name = "Examples";
mainClass = "com.example.ExamplesMain";
version = version(0, 1, 0);
downloadSources = true;
repositories = List.of(MAVEN_CENTRAL);
scope(test).include(dependency("com.puppycrawl.tools", "checkstyle", version(10, 12, 2)));
testOperation().mainClass("com.example.ExamplesTest");
}
public static void main(String[] args) {
new ExamplesBuild().start(args);
}
@BuildCommand(summary = "Check code style")
public void checkstyle() throws Exception {
new CheckstyleOperation()
.fromProject(this)
.configurationFile("src/test/resources/sun_checks.xml")
.execute();
}
}