From fe3040fd8b68d3fc89e8a44486f1d5f1397d79aa Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Thu, 16 Jan 2025 15:27:20 -0800 Subject: [PATCH] Initial commit --- .github/workflows/bld.yml | 29 ++ .github/workflows/pages.yml | 57 ++++ .gitignore | 58 ++++ .idea/.gitignore | 8 + .idea/app.iml | 28 ++ .idea/bld.iml | 14 + .idea/bld.xml | 6 + .idea/copyright/Apache_License.xml | 6 + .idea/copyright/profiles_settings.xml | 3 + .idea/icon.svg | 13 + .idea/inspectionProfiles/Project_Default.xml | 16 ++ .idea/libraries/bld.xml | 18 ++ .idea/libraries/compile.xml | 17 ++ .idea/libraries/runtime.xml | 14 + .idea/libraries/test.xml | 18 ++ .idea/misc.xml | 5 + .idea/modules.xml | 9 + .idea/runConfigurations/Run Tests.xml | 13 + .idea/vcs.xml | 6 + .vscode/launch.json | 11 + .vscode/settings.json | 14 + LICENSE.txt | 177 ++++++++++++ README.md | 42 +++ bld | 2 + bld.bat | 4 + examples/.gitignore | 58 ++++ examples/.idea/app.iml | 28 ++ examples/.idea/bld.iml | 14 + examples/.idea/libraries/bld.xml | 18 ++ examples/.idea/libraries/compile.xml | 17 ++ examples/.idea/libraries/runtime.xml | 14 + examples/.idea/libraries/test.xml | 18 ++ examples/.idea/misc.xml | 5 + examples/.idea/modules.xml | 9 + .../.idea/runConfigurations/Run Tests.xml | 13 + examples/.vscode/launch.json | 11 + examples/.vscode/settings.json | 14 + examples/README.md | 5 + examples/bld | 2 + examples/bld.bat | 4 + examples/jreleaser.json | 38 +++ examples/lib/bld/bld-wrapper.jar | Bin 0 -> 30440 bytes examples/lib/bld/bld-wrapper.properties | 9 + .../bld/java/com/example/ExamplesBuild.java | 43 +++ .../src/main/java/com/example/Examples.java | 7 + .../test/java/com/example/ExamplesTest.java | 12 + lib/bld/bld-wrapper.jar | Bin 0 -> 30440 bytes lib/bld/bld-wrapper.properties | 9 + .../extension/JReleaserExtensionBuild.java | 93 +++++++ .../bld/extension/JReleaserInitOperation.java | 258 ++++++++++++++++++ .../extension/JReleaserInitOperationTest.java | 78 ++++++ 51 files changed, 1365 insertions(+) create mode 100644 .github/workflows/bld.yml create mode 100644 .github/workflows/pages.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/bld.xml create mode 100644 .idea/copyright/Apache_License.xml create mode 100644 .idea/copyright/profiles_settings.xml create mode 100644 .idea/icon.svg create mode 100644 .idea/inspectionProfiles/Project_Default.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/test.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/runConfigurations/Run Tests.xml create mode 100644 .idea/vcs.xml create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 LICENSE.txt create mode 100755 README.md create mode 100755 bld create mode 100644 bld.bat create mode 100644 examples/.gitignore create mode 100644 examples/.idea/app.iml create mode 100644 examples/.idea/bld.iml create mode 100644 examples/.idea/libraries/bld.xml create mode 100644 examples/.idea/libraries/compile.xml create mode 100644 examples/.idea/libraries/runtime.xml create mode 100644 examples/.idea/libraries/test.xml create mode 100644 examples/.idea/misc.xml create mode 100644 examples/.idea/modules.xml create mode 100644 examples/.idea/runConfigurations/Run Tests.xml create mode 100644 examples/.vscode/launch.json create mode 100644 examples/.vscode/settings.json create mode 100644 examples/README.md create mode 100755 examples/bld create mode 100644 examples/bld.bat create mode 100644 examples/jreleaser.json create mode 100644 examples/lib/bld/bld-wrapper.jar create mode 100644 examples/lib/bld/bld-wrapper.properties create mode 100644 examples/src/bld/java/com/example/ExamplesBuild.java create mode 100644 examples/src/main/java/com/example/Examples.java create mode 100644 examples/src/test/java/com/example/ExamplesTest.java create mode 100644 lib/bld/bld-wrapper.jar create mode 100644 lib/bld/bld-wrapper.properties create mode 100644 src/bld/java/rife/bld/extension/JReleaserExtensionBuild.java create mode 100644 src/main/java/rife/bld/extension/JReleaserInitOperation.java create mode 100644 src/test/java/rife/bld/extension/JReleaserInitOperationTest.java diff --git a/.github/workflows/bld.yml b/.github/workflows/bld.yml new file mode 100644 index 0000000..f7e10f8 --- /dev/null +++ b/.github/workflows/bld.yml @@ -0,0 +1,29 @@ +name: bld-ci + +on: [push, pull_request, workflow_dispatch] + +jobs: + build-bld-project: + runs-on: ubuntu-latest + + strategy: + matrix: + java-version: [17, 21, 23] + + steps: + - name: Checkout source repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up JDK ${{ matrix.java-version }} + uses: actions/setup-java@v4 + with: + distribution: "zulu" + java-version: ${{ matrix.java-version }} + + - name: Download dependencies + run: ./bld download + + - name: Run tests + run: ./bld compile test diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..bf43624 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,57 @@ +name: javadocs-pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + + steps: + - name: Checkout source repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: "zulu" + java-version: 17 + + - name: Build Javadocs + run: ./bld download clean javadoc + + - name: Setup Pages + uses: actions/configure-pages@v3 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + # Upload generated Javadocs repository + path: "build/javadoc/" + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..38d30ba --- /dev/null +++ b/.gitignore @@ -0,0 +1,58 @@ +.gradle +.DS_Store +build +lib/bld/** +!lib/bld/bld-wrapper.jar +!lib/bld/bld-wrapper.properties +lib/compile/ +lib/provided/ +lib/runtime/ +lib/standalone/ +lib/test/ + +# 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 + +local.properties 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..6c0f6d7 --- /dev/null +++ b/.idea/app.iml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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/bld.xml b/.idea/bld.xml new file mode 100644 index 0000000..6600cee --- /dev/null +++ b/.idea/bld.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/copyright/Apache_License.xml b/.idea/copyright/Apache_License.xml new file mode 100644 index 0000000..15687f4 --- /dev/null +++ b/.idea/copyright/Apache_License.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..f2907f1 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/.idea/icon.svg b/.idea/icon.svg new file mode 100644 index 0000000..81220b4 --- /dev/null +++ b/.idea/icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..5033f6e --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file diff --git a/.idea/libraries/bld.xml b/.idea/libraries/bld.xml new file mode 100644 index 0000000..63c014a --- /dev/null +++ b/.idea/libraries/bld.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/compile.xml b/.idea/libraries/compile.xml new file mode 100644 index 0000000..5316b95 --- /dev/null +++ b/.idea/libraries/compile.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/runtime.xml b/.idea/libraries/runtime.xml new file mode 100644 index 0000000..d4069f2 --- /dev/null +++ b/.idea/libraries/runtime.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/test.xml b/.idea/libraries/test.xml new file mode 100644 index 0000000..05f52ce --- /dev/null +++ b/.idea/libraries/test.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..a11baca --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,5 @@ + + + + + \ 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 Tests.xml b/.idea/runConfigurations/Run Tests.xml new file mode 100644 index 0000000..2c1f5c2 --- /dev/null +++ b/.idea/runConfigurations/Run Tests.xml @@ -0,0 +1,13 @@ + + + +