mirror of
https://github.com/ethauvin/rife2-bld-hello.git
synced 2025-04-27 09:38:12 -07:00
Initial bld bootstrap template
This commit is contained in:
parent
01dc74fdb0
commit
0c13c8b968
30 changed files with 647 additions and 0 deletions
42
src/bld/java/hello/AppBuild.java
Normal file
42
src/bld/java/hello/AppBuild.java
Normal file
|
@ -0,0 +1,42 @@
|
|||
package hello;
|
||||
|
||||
import rife.bld.WebProject;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static rife.bld.dependencies.Repository.*;
|
||||
import static rife.bld.dependencies.Scope.*;
|
||||
import static rife.bld.operations.TemplateType.*;
|
||||
|
||||
public class AppBuild extends WebProject {
|
||||
public AppBuild() {
|
||||
pkg = "hello";
|
||||
name = "App";
|
||||
mainClass = "hello.AppSite";
|
||||
uberJarMainClass = "hello.AppSiteUber";
|
||||
version = version(0,1,0);
|
||||
archiveBaseName = "hello";
|
||||
|
||||
downloadSources = true;
|
||||
autoDownloadPurge = true;
|
||||
|
||||
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
||||
scope(compile)
|
||||
.include(dependency("com.uwyn.rife2", "rife2", version(1,5,22)));
|
||||
scope(test)
|
||||
.include(dependency("org.jsoup", "jsoup", version(1,15,4)))
|
||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5,9,2)))
|
||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1,9,2)));
|
||||
scope(standalone)
|
||||
.include(dependency("org.eclipse.jetty", "jetty-server", version(11,0,15)))
|
||||
.include(dependency("org.eclipse.jetty", "jetty-servlet", version(11,0,15)))
|
||||
.include(dependency("org.slf4j", "slf4j-simple", version(2,0,7)));
|
||||
|
||||
precompileOperation()
|
||||
.templateTypes(HTML);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new AppBuild().start(args);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue