From 0c13c8b96868630ecd492c340e5c87e556213b7e Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Tue, 18 Apr 2023 11:53:34 -0400 Subject: [PATCH] Initial bld bootstrap template --- .github/workflows/bld.yml | 26 +++ .gitignore | 55 +++++++ .idea/.gitignore | 8 + .idea/app.iml | 30 ++++ .idea/bld.iml | 14 ++ .idea/codeStyles/Project.xml | 7 + .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/libraries/bld.xml | 17 ++ .idea/libraries/compile.xml | 13 ++ .idea/libraries/runtime.xml | 13 ++ .idea/libraries/standalone.xml | 13 ++ .idea/libraries/test.xml | 13 ++ .idea/misc.xml | 9 ++ .idea/modules.xml | 9 ++ .idea/runConfigurations/Run Main.xml | 9 ++ .idea/runConfigurations/Run Tests.xml | 13 ++ .vscode/launch.json | 24 +++ .vscode/settings.json | 16 ++ LICENSE | 201 ++++++++++++++++++++++++ bld | 2 + bld.bat | 4 + lib/bld/bld-wrapper.jar | Bin 0 -> 25069 bytes lib/bld/bld-wrapper.properties | 6 + src/bld/java/hello/AppBuild.java | 42 +++++ src/main/java/hello/AppSite.java | 16 ++ src/main/java/hello/AppSiteUber.java | 11 ++ src/main/resources/templates/hello.html | 11 ++ src/main/webapp/WEB-INF/web.xml | 18 +++ src/main/webapp/css/style.css | 21 +++ src/test/java/hello/AppTest.java | 21 +++ 30 files changed, 647 insertions(+) create mode 100644 .github/workflows/bld.yml create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/app.iml create mode 100644 .idea/bld.iml create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/libraries/bld.xml create mode 100644 .idea/libraries/compile.xml create mode 100644 .idea/libraries/runtime.xml create mode 100644 .idea/libraries/standalone.xml create mode 100644 .idea/libraries/test.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/runConfigurations/Run Main.xml create mode 100644 .idea/runConfigurations/Run Tests.xml create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 LICENSE create mode 100755 bld create mode 100644 bld.bat create mode 100644 lib/bld/bld-wrapper.jar create mode 100644 lib/bld/bld-wrapper.properties create mode 100644 src/bld/java/hello/AppBuild.java create mode 100644 src/main/java/hello/AppSite.java create mode 100644 src/main/java/hello/AppSiteUber.java create mode 100644 src/main/resources/templates/hello.html create mode 100644 src/main/webapp/WEB-INF/web.xml create mode 100644 src/main/webapp/css/style.css create mode 100644 src/test/java/hello/AppTest.java diff --git a/.github/workflows/bld.yml b/.github/workflows/bld.yml new file mode 100644 index 0000000..ad2bb0e --- /dev/null +++ b/.github/workflows/bld.yml @@ -0,0 +1,26 @@ +name: bld-ci + +on: [push, pull_request, workflow_dispatch] + +jobs: + build-gradle-project: + runs-on: ubuntu-latest + + strategy: + matrix: + java-version: [ 17, 19 ] + + steps: + - name: Checkout source repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up JDK ${{ matrix.java-version }} + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.java-version }} + + - name: Run tests + run: ./bld download compile test \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a63b224 --- /dev/null +++ b/.gitignore @@ -0,0 +1,55 @@ +.gradle +.DS_Store +build +lib/bld/** +lib/compile/** +lib/runtime/** +lib/standalone/** +lib/test/** +!bld-wrapper.jar +!bld-wrapper.properties + +# IDEA ignores + +# User-specific +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Editor-based Rest Client +.idea/httpRequests \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/app.iml b/.idea/app.iml new file mode 100644 index 0000000..ed7c37f --- /dev/null +++ b/.idea/app.iml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/bld.iml b/.idea/bld.iml new file mode 100644 index 0000000..e63e11e --- /dev/null +++ b/.idea/bld.iml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..919ce1f --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/libraries/bld.xml b/.idea/libraries/bld.xml new file mode 100644 index 0000000..a71dcdf --- /dev/null +++ b/.idea/libraries/bld.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/compile.xml b/.idea/libraries/compile.xml new file mode 100644 index 0000000..9bd86aa --- /dev/null +++ b/.idea/libraries/compile.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/runtime.xml b/.idea/libraries/runtime.xml new file mode 100644 index 0000000..81feb0b --- /dev/null +++ b/.idea/libraries/runtime.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/standalone.xml b/.idea/libraries/standalone.xml new file mode 100644 index 0000000..643da27 --- /dev/null +++ b/.idea/libraries/standalone.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/test.xml b/.idea/libraries/test.xml new file mode 100644 index 0000000..13b6513 --- /dev/null +++ b/.idea/libraries/test.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..542659b --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..55adcb9 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Run Main.xml b/.idea/runConfigurations/Run Main.xml new file mode 100644 index 0000000..58bd884 --- /dev/null +++ b/.idea/runConfigurations/Run Main.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Run Tests.xml b/.idea/runConfigurations/Run Tests.xml new file mode 100644 index 0000000..fd5d4af --- /dev/null +++ b/.idea/runConfigurations/Run Tests.xml @@ -0,0 +1,13 @@ + + + +