diff --git a/.github/workflows/checkBuild.yml b/.github/workflows/checkBuild.yml index 4a9923d..5f58731 100644 --- a/.github/workflows/checkBuild.yml +++ b/.github/workflows/checkBuild.yml @@ -22,10 +22,10 @@ jobs: distribution: [temurin] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: ${{ matrix.distribution }} java-version: ${{ matrix.java }} @@ -53,7 +53,8 @@ jobs: exit 1 fi - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: jars-java-${{ matrix.java }} path: target/*.jar + if-no-files-found: error diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72ced5a..5b8b70a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,14 +4,18 @@ on: push: branches: [ master ] +permissions: + contents: write + pull-requests: write + jobs: - check_code: # Validates the code (see develop.yml) + check_code: # Validates the code (see checkBuild.yml) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Set up JDK 8 - uses: actions/setup-java@v2 + - name: Set up JDK + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '8' @@ -44,7 +48,7 @@ jobs: outputs: upload_url: ${{ steps.create_draft.outputs.upload_url }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Configure Git run: | @@ -57,7 +61,9 @@ jobs: - name: Get version id: version run: | - echo "::set-output name=release::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" + version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) + echo "release=$version" >> $GITHUB_OUTPUT + echo "releasenumber=${version//[!0-9]/}" >> $GITHUB_OUTPUT - name: Commit and Push run: | @@ -69,31 +75,29 @@ jobs: - name: Create Release id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: shogo82148/actions-create-release@v1 with: tag_name: v${{ steps.version.outputs.release }} release_name: v${{ steps.version.outputs.release }} commitish: master body: | - ## Installation [![Maven Central](https://img.shields.io/maven-central/v/com.xdev-software/xapi-db-h2?versionPrefix=${{ steps.version.outputs.release }})](https://mvnrepository.com/artifact/com.xdev-software/xapi-db-h2) + ## [Changelog](https://github.com/xdev-software/${{ github.event.repository.name }}/blob/develop/CHANGELOG.md#${{ steps.version.outputs.releasenumber }}) + See [Changelog#v${{ steps.version.outputs.release }}](https://github.com/xdev-software/${{ github.event.repository.name }}/blob/develop/CHANGELOG.md#${{ steps.version.outputs.releasenumber }}) for more information. + ## Installation Add the following lines to your pom: ```XML com.xdev-software - xapi-db-h2 + ${{ github.event.repository.name }} ${{ steps.version.outputs.release }} ``` - draft: false - prerelease: false publish_central: # Publish the code to central runs-on: ubuntu-latest needs: [prepare_release] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Init Git and pull run: | @@ -101,8 +105,8 @@ jobs: git config --global user.name "GitHub Actions" git pull - - name: Set up JDK 8 OSSRH - uses: actions/setup-java@v2 + - name: Set up JDK OSSRH + uses: actions/setup-java@v3 with: # running setup-java again overwrites the settings.xml distribution: 'temurin' java-version: '8' @@ -124,7 +128,7 @@ jobs: runs-on: ubuntu-latest needs: [prepare_release] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Init Git and pull run: | @@ -132,8 +136,8 @@ jobs: git config --global user.name "GitHub Actions" git pull - - name: Set up JDK 8 - uses: actions/setup-java@v2 + - name: Set up JDK + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '8' @@ -142,7 +146,7 @@ jobs: run: mvn -B project-info-reports:dependencies - name: Upload licenses - Upload Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dependencies-licenses path: target/site @@ -176,7 +180,7 @@ jobs: runs-on: ubuntu-latest needs: [publish_central] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Init Git and pull run: | @@ -196,7 +200,6 @@ jobs: - name: pull-request uses: repo-sync/pull-request@v2 with: - github_token: ${{ secrets.GITHUB_TOKEN }} destination_branch: "develop" pr_title: "Sync back" pr_body: "An automated PR to sync changes back" diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index b8ca8c4..cc0d6a5 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -7,10 +7,10 @@ jobs: publish_central: # Publish the code to central runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Set up JDK 8 OSSRH - uses: actions/setup-java@v2 + - name: Set up JDK OSSRH + uses: actions/setup-java@v3 with: # running setup-java again overwrites the settings.xml distribution: 'temurin' java-version: '8' diff --git a/.github/workflows/update-from-template.yml b/.github/workflows/update-from-template.yml new file mode 100644 index 0000000..8cf1363 --- /dev/null +++ b/.github/workflows/update-from-template.yml @@ -0,0 +1,92 @@ +name: Update from Template + +# This workflow keeps the repo up to date with changes from the template repo (REMOTE_URL) +# It duplicates the REMOTE_BRANCH (into UPDATE_BRANCH) and tries to merge it into the +# this repos default branch (which is checked out here) +# Note that this requires a PAT (Personal Access Token) - at best from a servicing account +# Also note that you should have at least once merged the template repo into the current repo manually +# otherwise a "refusing to merge unrelated histories" error might occur. + +on: + schedule: + - cron: '55 2 * * 1' + workflow_dispatch: + +env: + UPDATE_BRANCH: update-from-template + REMOTE_URL: https://github.com/xdev-software/xdev-swing-framework-template.git + REMOTE_BRANCH: master + +permissions: + contents: write + pull-requests: write + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + # Required because otherwise there are always changes detected when executing diff/rev-list + fetch-depth: 0 + # If no PAT is used the following error occurs on a push: + # refusing to allow a GitHub App to create or update workflow `.github/workflows/xxx.yml` without `workflows` permission + token: ${{ secrets.UPDATE_FROM_TEMPLATE_PAT }} + + - name: Init Git + run: | + git config --global user.email "actions@github.com" + git config --global user.name "GitHub Actions" + + - name: Main workflow + id: main + run: | + echo "Adding remote template-repo" + git remote add template ${{ env.REMOTE_URL }} + + echo "Fetching remote template repo" + git fetch template + + echo "Deleting local branch that will contain the updates - if present" + git branch -D ${{ env.UPDATE_BRANCH }} || true + + echo "Checking if the remote template repo has new commits" + git rev-list ..template/${{ env.REMOTE_BRANCH }} + + if [ $(git rev-list --count ..template/${{ env.REMOTE_BRANCH }}) -eq 0 ]; then + echo "There are no commits new commits on the template repo" + + echo "Deleting origin branch that contains the updates - if present" + git push -f origin --delete ${{ env.UPDATE_BRANCH }} || true + + echo "abort=1" >> $GITHUB_OUTPUT + exit 0 + fi + + echo "Found new commits on the template repo" + + echo "Creating update branch" + git branch ${{ env.UPDATE_BRANCH }} template/${{ env.REMOTE_BRANCH }} + git branch --unset-upstream ${{ env.UPDATE_BRANCH }} + + echo "Pushing update branch" + git push -f -u origin ${{ env.UPDATE_BRANCH }} + + echo "Getting current branch" + current_branch=$(git branch --show-current) + echo "Current branch is $current_branch" + echo "current_branch=$current_branch" >> $GITHUB_OUTPUT + + echo "abort=0" >> $GITHUB_OUTPUT + + - name: pull-request + uses: repo-sync/pull-request@v2 + if: steps.main.outputs.abort == 0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + source_branch: ${{ env.UPDATE_BRANCH }} + destination_branch: ${{ steps.main.outputs.current_branch }} + pr_title: "Update from template" + pr_body: "An automated PR to sync changes from the template into this repo" + diff --git a/.gitignore b/.gitignore index e6ab577..d0e81bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,87 @@ +# Maven target/ -bin/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +# https://github.com/takari/maven-wrapper#usage-without-binary-jar +.mvn/wrapper/maven-wrapper.jar -# IDEA -.idea/ + +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package/Binary Files don't belong into a git repo +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar +*.dll +*.exe +*.bin + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + + +# bin / compiled stuff +target/ + + +# JRebel +**/resources/rebel.xml +**/resources/rebel-remote.xml + +# eclispe stuff for root +/.settings/ +/.classpath +/.project + + +# eclispe stuff for modules +/*/.metadata/ +/*/.apt_generated_tests/ +/*/.settings/ +/*/.classpath +/*/.project +/*/RemoteSystemsTempFiles/ + +#custom +.flattened-pom.xml +.tern-project + +# == IntelliJ == *.iml +*.ipr + +# Some files are user/installation independent and are used for configuring the IDE +# See also https://stackoverflow.com/a/35279076 + +.idea/* +!.idea/saveactions_settings.xml +!.idea/checkstyle-idea.xml + +!.idea/inspectionProfiles/ +.idea/inspectionProfiles/* +!.idea/inspectionProfiles/Project_Default.xml -# Eclispe -.settings -.classpath -.project \ No newline at end of file +!.idea/codeStyles/ +.idea/codeStyles/* +!.idea/codeStyles/codeStyleConfig.xml +!.idea/codeStyles/Project.xml diff --git a/.idea/checkstyle-idea.xml b/.idea/checkstyle-idea.xml new file mode 100644 index 0000000..14dae16 --- /dev/null +++ b/.idea/checkstyle-idea.xml @@ -0,0 +1,20 @@ + + + + 10.1 + JavaOnlyWithTests + true + true + + + + \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..4e97375 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,92 @@ + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..6a1691d --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/saveactions_settings.xml b/.idea/saveactions_settings.xml new file mode 100644 index 0000000..71a42c4 --- /dev/null +++ b/.idea/saveactions_settings.xml @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..71edc9b --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,45 @@ +## Contributing + +We would absolutely love to get the community involved, and we welcome any form of contributions – comments and questions on different communication channels, issues and pull request in the repositories, and anything that you build and share using our components. + +### Get in touch with the team + +Twitter: https://twitter.com/xdevsoftware +
+Mail: opensource@xdev-software.de + +### Some ways to help: + +- **Report bugs**: File issues on GitHub. +- **Send pull requests**: If you want to contribute code, check out the development instructions below. + +We encourage you to read the [contribution instructions by GitHub](https://guides.github.com/activities/contributing-to-open-source/#contributing) also. + +## Developing + +### Software Requirements +You should have the following things installed: +* Git +* Java 8, 11 or 17 - should be as unmodified as possible (Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/)) +* Maven + +### Recommended setup +* Install ``IntelliJ`` (Community Edition is sufficient) + * Install the following plugins: + * [Save Actions](https://plugins.jetbrains.com/plugin/7642-save-actions) - Provides save actions, like running the formatter or adding ``final`` to fields + * [SonarLint](https://plugins.jetbrains.com/plugin/7973-sonarlint) - CodeStyle/CodeAnalysis + * [Checkstyle-IDEA](https://plugins.jetbrains.com/plugin/1065-checkstyle-idea) - CodeStyle/CodeAnalysis + * Import the project + * Ensure that everything is encoded in ``UTF-8`` + * Ensure that the JDK/Java-Version is correct + +## Releasing [![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/xapi-db-h2/release.yml?branch=master)](https://github.com/xdev-software/xapi-db-h2/actions/workflows/release.yml) + +Before releasing: +* Consider doing a [test-deployment](https://github.com/xdev-software/xapi-db-h2/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing. +* Check the [changelog](CHANGELOG.md) + +If the ``develop`` is ready for release, create a pull request to the ``master``-Branch and merge the changes. + +When the release is finished do the following: +* Merge the auto-generated PR (with the incremented version number) back into the ``develop`` \ No newline at end of file diff --git a/README.md b/README.md index e048095..fa8346d 100644 --- a/README.md +++ b/README.md @@ -1,44 +1,20 @@ [![Latest version](https://img.shields.io/maven-central/v/com.xdev-software/xapi-db-h2)](https://mvnrepository.com/artifact/com.xdev-software/xapi-db-h2) -[![Build](https://img.shields.io/github/workflow/status/xdev-software/xapi-db-h2/Check%20Build/develop)](https://github.com/xdev-software/xapi-db-h2/actions/workflows/checkBuild.yml?query=branch%3Adevelop) +[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/xapi-db-h2/checkBuild.yml?branch=develop)](https://github.com/xdev-software/xapi-db-h2/actions/workflows/checkBuild.yml?query=branch%3Adevelop) [![javadoc](https://javadoc.io/badge2/com.xdev-software/xapi-db-h2/javadoc.svg)](https://javadoc.io/doc/com.xdev-software/xapi-db-h2) - # SqlEngine Database Adapter H2 The XDEV Application Framework provides an abstraction over database dialects as part of its SqlEngine. This module is the Database Adapter for H2 which includes the H2-specific implementation for database access. ## XDEV-IDE -XDEV(-IDE) is a visual Java development environment for fast and easy application development (RAD - Rapid Application Development). XDEV differs from other Java IDEs such as Eclipse or NetBeans, focusing on programming through a far-reaching RAD concept. The IDE's main components are a Swing GUI builder, the XDEV Application Framework, and numerous drag-and-drop tools and wizards with which the functions of the framework can be integrated. +The [XDEV(-IDE)](https://xdev.software/en/products/swing-builder) is a visual Java development environment for fast and easy application development (RAD - Rapid Application Development). XDEV differs from other Java IDEs such as Eclipse or NetBeans, focusing on programming through a far-reaching RAD concept. The IDE's main components are a Swing GUI builder, the XDEV Application Framework and numerous drag-and-drop tools and wizards with which the functions of the framework can be integrated. The XDEV-IDE was license-free up to version 4 inclusive and is available for Windows, Linux and macOS. From version 5, the previously proprietary licensed additional modules are included in the IDE and the license of the entire product has been converted to a paid subscription model. The XDEV Application Framework, which represents the core of the RAD concept of XDEV and is part of every XDEV application, was released as open-source in 2008. -## Contributing - -We would absolutely love to get the community involved, and we welcome any form of contributions – comments and questions on different communication channels, issues and pull request in the repositories, and anything that you build and share using our components. - -### Get in touch with the team - -Twitter: https://twitter.com/xdevsoftware
-Mail: opensource@xdev-software.de - -### Some ways to help: +## Support +If you need support as soon as possible and you can't wait for any pull request, feel free to use [our support](https://xdev.software/en/services/support). -- **Report bugs**: File issues on GitHub. -- **Send pull requests**: If you want to contribute code, check out the development instructions below. - -We encourage you to read the [contribution instructions by GitHub](https://guides.github.com/activities/contributing-to-open-source/#contributing) also. +## Contributing +See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project. ## Dependencies and Licenses -The XDEV Application Framework is released under [GNU Lesser General Public License version 3](https://www.gnu.org/licenses/lgpl-3.0.en.html) aka LGPL 3
-View the [summary of all dependencies online](https://xdev-software.github.io/xapi-db-h2/dependencies/) - -## Releasing [![Build](https://img.shields.io/github/workflow/status/xdev-software/xapi-db-h2/Release?label=Release)](https://github.com/xdev-software/xapi-db-h2/actions/workflows/release.yml) - -Before releasing: -* Consider doing a [test-deployment](https://github.com/xdev-software/xapi-db-h2/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing. -* Check the [changelog](CHANGELOG.md) - -If the ``develop`` is ready for release, create a pull request to the ``master``-Branch and merge the changes. - -When the release is finished do the following: -* Merge the auto-generated PR (with the incremented version number) back into the ``develop`` -* Link the corresponding version from the [changelog](CHANGELOG.md) to the [GitHub release](https://github.com/xdev-software/xapi-db-h2/releases/latest) \ No newline at end of file +View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/xapi-db-h2/dependencies/) diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..825062c --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,5 @@ +# Security Policy + +## Reporting a Vulnerability + +Please report a security vulnerability [on GitHub Security Advisories](https://github.com/xdev-software/xapi-db-h2/security/advisories/new). diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml new file mode 100644 index 0000000..710e3e6 --- /dev/null +++ b/config/checkstyle/checkstyle.xml @@ -0,0 +1,311 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index 3a72715..909b710 100644 --- a/pom.xml +++ b/pom.xml @@ -1,314 +1,225 @@ + - 4.0.0 - - com.xdev-software - xapi-db-h2 - 6.0.1-SNAPSHOT - - SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 - https://github.com/xdev-software/xapi-db-h2 - - - https://github.com/xdev-software/xapi-db-h2 - https://github.com/xdev-software/xapi-db-h2.git - - - 2003 - - - XDEV Software - https://xdev-software.com - - - - - XDEV Software - XDEV Software - https://www.xdev-software.com - - - - - - GNU Lesser General Public License version 3 - https://www.gnu.org/licenses/lgpl-3.0.en.html - repo - - - - - - UTF-8 - - 1.8 - 1.8 - - lgpl_v3 - - - - - com.xdev-software - xapi - 6.0.0 - - - - com.h2database - h2 - 2.1.210 - - - - - - - central - https://repo.maven.apache.org/maven2 - - false - - - - - clojars-JDBC - https://clojars.org/repo/ - - false - - - - - - - - central - https://repo.maven.apache.org/maven2 - - false - - - - - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - - - - - org.apache.maven.plugins - maven-clean-plugin - 3.1.0 - - - org.apache.maven.plugins - maven-deploy-plugin - 3.0.0-M2 - - - org.apache.maven.plugins - maven-install-plugin - 3.0.0-M1 - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.2 - - - org.apache.maven.plugins - maven-resources-plugin - 3.2.0 - - - org.apache.maven.plugins - maven-site-plugin - 3.10.0 - - - maven-surefire-plugin - 3.0.0-M5 - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0 - - - enforce-maven - - enforce - - - - - 3.5.4 - - - 1.8 - - - - - - - - - maven-compiler-plugin - 3.9.0 - - eclipse - 1.8 - 1.8 - - - - org.codehaus.plexus - plexus-compiler-eclipse - 2.8.8 - - - - - - org.codehaus.mojo - license-maven-plugin - 2.0.0 - - - - first - - update-file-header - - process-sources - - - src/main/java - src/test/java - - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.3.1 - - - attach-javadocs - verify - - jar - - - - - true - none - - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - package - - jar-no-fork - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - 3.1.2 - - - analyze - verify - - analyze-only - - - true - - - - - - - - - - - ossrh - - - - org.apache.maven.plugins - maven-gpg-plugin - 3.0.1 - - - sign-artifacts - verify - - sign - - - - - - --pinentry-mode - loopback - - - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 - true - - ossrh - https://oss.sonatype.org/ - - 30 - true - - - - - - - - \ No newline at end of file + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + + com.xdev-software + xapi-db-h2 + 6.0.1-SNAPSHOT + jar + + SqlEngine Database Adapter H2 + XAPI SqlEngine Database Adapter for H2 + https://github.com/xdev-software/xapi-db-h2 + + + https://github.com/xdev-software/xapi-db-h2 + https://github.com/xdev-software/xapi-db-h2.git + + + 2003 + + + XDEV Software + https://xdev.software + + + + + XDEV Software + XDEV Software + https://xdev.software + + + + + + GNU Lesser General Public License version 3 + https://www.gnu.org/licenses/lgpl-3.0.en.html + repo + + + + + 1.8 + ${javaVersion} + ${javaVersion} + + UTF-8 + UTF-8 + + + + + + central + https://repo.maven.apache.org/maven2 + + false + + + + + + + + + central + https://repo.maven.apache.org/maven2 + + false + + + + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + com.xdev-software + xapi + 6.0.0 + + + + com.h2database + h2 + 2.1.210 + + + + + + + com.mycila + license-maven-plugin + 4.1 + + + ${project.organization.url} + + + +
com/mycila/maven/plugin/license/templates/LGPL-3.txt
+ + src/main/java/** + src/test/java/** + +
+
+
+ + + first + + format + + process-sources + + +
+ + + org.apache.maven.plugins + maven-compiler-plugin + 3.10.1 + + ${maven.compiler.source} + ${maven.compiler.target} + + -proc:none + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.4.1 + + + attach-javadocs + verify + + jar + + + + + true + none + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + verify + + jar-no-fork + + + + +
+
+ + + ossrh + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + sign-artifacts + verify + + sign + + + + + + --pinentry-mode + loopback + + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + ossrh + https://oss.sonatype.org/ + + 30 + true + + + + + + + diff --git a/src/main/java/xdev/db/h2/jdbc/H2ConnectionInformation.java b/src/main/java/xdev/db/h2/jdbc/H2ConnectionInformation.java index dfa39b8..549b773 100644 --- a/src/main/java/xdev/db/h2/jdbc/H2ConnectionInformation.java +++ b/src/main/java/xdev/db/h2/jdbc/H2ConnectionInformation.java @@ -1,26 +1,21 @@ -package xdev.db.h2.jdbc; - -/*- - * #%L - * SqlEngine Database Adapter H2 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 + * Copyright © 2003 XDEV Software (https://xdev.software) + * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * . - * #L% + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ +package xdev.db.h2.jdbc; import xdev.db.ConnectionInformation; diff --git a/src/main/java/xdev/db/h2/jdbc/H2DDLMapper.java b/src/main/java/xdev/db/h2/jdbc/H2DDLMapper.java index 23d87f6..636f7d4 100644 --- a/src/main/java/xdev/db/h2/jdbc/H2DDLMapper.java +++ b/src/main/java/xdev/db/h2/jdbc/H2DDLMapper.java @@ -1,26 +1,21 @@ -package xdev.db.h2.jdbc; - -/*- - * #%L - * SqlEngine Database Adapter H2 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 + * Copyright © 2003 XDEV Software (https://xdev.software) + * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * . - * #L% + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ +package xdev.db.h2.jdbc; import com.xdev.jadoth.sqlengine.dbms.standard.StandardDDLMapper; diff --git a/src/main/java/xdev/db/h2/jdbc/H2DMLAssembler.java b/src/main/java/xdev/db/h2/jdbc/H2DMLAssembler.java index 37864eb..6339cd8 100644 --- a/src/main/java/xdev/db/h2/jdbc/H2DMLAssembler.java +++ b/src/main/java/xdev/db/h2/jdbc/H2DMLAssembler.java @@ -1,26 +1,21 @@ -package xdev.db.h2.jdbc; - -/*- - * #%L - * SqlEngine Database Adapter H2 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 + * Copyright © 2003 XDEV Software (https://xdev.software) + * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * . - * #L% + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ +package xdev.db.h2.jdbc; import static com.xdev.jadoth.sqlengine.internal.QueryPart.ASEXPRESSION; diff --git a/src/main/java/xdev/db/h2/jdbc/H2Dbms.java b/src/main/java/xdev/db/h2/jdbc/H2Dbms.java index c829454..a127bae 100644 --- a/src/main/java/xdev/db/h2/jdbc/H2Dbms.java +++ b/src/main/java/xdev/db/h2/jdbc/H2Dbms.java @@ -1,26 +1,21 @@ -package xdev.db.h2.jdbc; - -/*- - * #%L - * SqlEngine Database Adapter H2 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 + * Copyright © 2003 XDEV Software (https://xdev.software) + * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * . - * #L% + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ +package xdev.db.h2.jdbc; import com.xdev.jadoth.sqlengine.dbms.DbmsAdaptor; diff --git a/src/main/java/xdev/db/h2/jdbc/H2ExceptionParser.java b/src/main/java/xdev/db/h2/jdbc/H2ExceptionParser.java index ea30586..1e9ef2a 100644 --- a/src/main/java/xdev/db/h2/jdbc/H2ExceptionParser.java +++ b/src/main/java/xdev/db/h2/jdbc/H2ExceptionParser.java @@ -1,26 +1,21 @@ -package xdev.db.h2.jdbc; - -/*- - * #%L - * SqlEngine Database Adapter H2 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 + * Copyright © 2003 XDEV Software (https://xdev.software) + * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * . - * #L% + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ +package xdev.db.h2.jdbc; import java.sql.SQLException; diff --git a/src/main/java/xdev/db/h2/jdbc/H2JDBCConnection.java b/src/main/java/xdev/db/h2/jdbc/H2JDBCConnection.java index e693098..49853a0 100644 --- a/src/main/java/xdev/db/h2/jdbc/H2JDBCConnection.java +++ b/src/main/java/xdev/db/h2/jdbc/H2JDBCConnection.java @@ -1,26 +1,21 @@ -package xdev.db.h2.jdbc; - -/*- - * #%L - * SqlEngine Database Adapter H2 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 + * Copyright © 2003 XDEV Software (https://xdev.software) + * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * . - * #L% + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ +package xdev.db.h2.jdbc; import java.sql.Connection; diff --git a/src/main/java/xdev/db/h2/jdbc/H2JDBCDataSource.java b/src/main/java/xdev/db/h2/jdbc/H2JDBCDataSource.java index bf50f67..e5e06b1 100644 --- a/src/main/java/xdev/db/h2/jdbc/H2JDBCDataSource.java +++ b/src/main/java/xdev/db/h2/jdbc/H2JDBCDataSource.java @@ -1,26 +1,21 @@ -package xdev.db.h2.jdbc; - -/*- - * #%L - * SqlEngine Database Adapter H2 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 + * Copyright © 2003 XDEV Software (https://xdev.software) + * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * . - * #L% + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ +package xdev.db.h2.jdbc; import xdev.db.DBException; diff --git a/src/main/java/xdev/db/h2/jdbc/H2JDBCMetaData.java b/src/main/java/xdev/db/h2/jdbc/H2JDBCMetaData.java index b49ba5b..a322a08 100644 --- a/src/main/java/xdev/db/h2/jdbc/H2JDBCMetaData.java +++ b/src/main/java/xdev/db/h2/jdbc/H2JDBCMetaData.java @@ -1,26 +1,21 @@ -package xdev.db.h2.jdbc; - -/*- - * #%L - * SqlEngine Database Adapter H2 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 + * Copyright © 2003 XDEV Software (https://xdev.software) + * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * . - * #L% + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ +package xdev.db.h2.jdbc; import java.sql.DatabaseMetaData; diff --git a/src/main/java/xdev/db/h2/jdbc/H2RetrospectionAccessor.java b/src/main/java/xdev/db/h2/jdbc/H2RetrospectionAccessor.java index a9478cb..aec0933 100644 --- a/src/main/java/xdev/db/h2/jdbc/H2RetrospectionAccessor.java +++ b/src/main/java/xdev/db/h2/jdbc/H2RetrospectionAccessor.java @@ -1,26 +1,21 @@ -package xdev.db.h2.jdbc; - -/*- - * #%L - * SqlEngine Database Adapter H2 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 + * Copyright © 2003 XDEV Software (https://xdev.software) + * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * . - * #L% + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ +package xdev.db.h2.jdbc; import com.xdev.jadoth.sqlengine.dbms.standard.StandardRetrospectionAccessor; diff --git a/src/main/java/xdev/db/h2/jdbc/H2Syntax.java b/src/main/java/xdev/db/h2/jdbc/H2Syntax.java index fd65583..650d872 100644 --- a/src/main/java/xdev/db/h2/jdbc/H2Syntax.java +++ b/src/main/java/xdev/db/h2/jdbc/H2Syntax.java @@ -1,26 +1,21 @@ -package xdev.db.h2.jdbc; - -/*- - * #%L - * SqlEngine Database Adapter H2 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter H2 - XAPI SqlEngine Database Adapter for H2 + * Copyright © 2003 XDEV Software (https://xdev.software) + * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public - * License along with this program. If not, see - * . - * #L% + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see . */ +package xdev.db.h2.jdbc; import com.xdev.jadoth.sqlengine.dbms.DbmsSyntax;