Initial commit
This commit is contained in:
commit
4d4db1b153
22 changed files with 290 additions and 0 deletions
33
src/bld/java/com/example/demo/DemoApplicationBuild.java
Normal file
33
src/bld/java/com/example/demo/DemoApplicationBuild.java
Normal file
|
@ -0,0 +1,33 @@
|
|||
package com.example.demo;
|
||||
|
||||
import rife.bld.BaseProject;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static rife.bld.dependencies.Repository.*;
|
||||
import static rife.bld.dependencies.Scope.compile;
|
||||
import static rife.bld.dependencies.Scope.test;
|
||||
|
||||
public class DemoApplicationBuild extends BaseProject {
|
||||
public DemoApplicationBuild() {
|
||||
pkg = "com.example.demo";
|
||||
name = "DemoApplication";
|
||||
mainClass = "com.example.demo.DemoApplication";
|
||||
version = version(0,1,0);
|
||||
|
||||
repositories = List.of(MAVEN_CENTRAL);
|
||||
|
||||
scope(compile)
|
||||
.include(dependency("org.springframework.boot", "spring-boot-starter",
|
||||
version(3,1,5)));
|
||||
scope(test)
|
||||
.include(dependency("org.springframework.boot", "spring-boot-starter-test",
|
||||
version(3,1,5)));
|
||||
|
||||
testOperation().mainClass("com.example.demo.DemoApplicationTest");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new DemoApplicationBuild().start(args);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue