diff --git a/.github/workflows/checkBuild.yml b/.github/workflows/checkBuild.yml index 3d954dd..5f58731 100644 --- a/.github/workflows/checkBuild.yml +++ b/.github/workflows/checkBuild.yml @@ -25,7 +25,7 @@ jobs: - 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 fa23b5e..5b8b70a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,18 +4,23 @@ 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@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' - + cache: 'maven' + - name: Build with Maven run: mvn -B clean verify @@ -56,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: | @@ -68,25 +75,23 @@ 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-mysql-5?versionPrefix=${{ steps.version.outputs.release }})](https://mvnrepository.com/artifact/com.xdev-software/xapi-db-mysql-5) + ## [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-mysql-5 + ${{ github.event.repository.name }} ${{ steps.version.outputs.release }} ``` - draft: false - prerelease: false publish_central: # Publish the code to central runs-on: ubuntu-latest @@ -100,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' @@ -111,7 +116,7 @@ jobs: gpg-passphrase: MAVEN_GPG_PASSPHRASE gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - - name: Publish to Apache Maven Central + - name: Publish to OSSRH run: mvn -B deploy -Possrh env: MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} @@ -131,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' @@ -141,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 @@ -195,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 bb50cca..cc0d6a5 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -9,8 +9,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up JDK 8 Apache Maven Central - 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' @@ -20,7 +20,7 @@ jobs: gpg-passphrase: MAVEN_GPG_PASSPHRASE gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} - - name: Publish to Apache Maven Central + - name: Publish to OSSRH run: mvn -B deploy -Possrh env: MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} 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 fc629aa..d0e81bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +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 -.checkstyle +!.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..769b130 --- /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-mysql-5/release.yml?branch=master)](https://github.com/xdev-software/xapi-db-mysql-5/actions/workflows/release.yml) + +Before releasing: +* Consider doing a [test-deployment](https://github.com/xdev-software/xapi-db-mysql-5/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 5146152..b4504e9 100644 --- a/README.md +++ b/README.md @@ -1,45 +1,20 @@ [![Latest version](https://img.shields.io/maven-central/v/com.xdev-software/xapi-db-mysql-5)](https://mvnrepository.com/artifact/com.xdev-software/xapi-db-mysql-5) -[![Build](https://img.shields.io/github/workflow/status/xdev-software/xapi-db-mysql-5/Check%20Build/develop)](https://github.com/xdev-software/xapi-db-mysql-5/actions/workflows/checkBuild.yml?query=branch%3Adevelop) +[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/xapi-db-mysql-5/checkBuild.yml?branch=develop)](https://github.com/xdev-software/xapi-db-mysql-5/actions/workflows/checkBuild.yml?query=branch%3Adevelop) [![javadoc](https://javadoc.io/badge2/com.xdev-software/xapi-db-mysql-5/javadoc.svg)](https://javadoc.io/doc/com.xdev-software/xapi-db-mysql-5) - # SqlEngine Database Adapter MySQL 5 The XDEV Application Framework provides an abstraction over database dialects as part of its SqlEngine. This module is the Database Adapter for MySQL 5 witch includes the MySQL-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-mysql-5/dependencies/) - -## Releasing [![Build](https://img.shields.io/github/workflow/status/xdev-software/xapi-db-mysql-5/Release?label=Release)](https://github.com/xdev-software/xapi-db-mysql-5/actions/workflows/release.yml) - -Before releasing: -* Consider doing a [test-deployment](https://github.com/xdev-software/xapi-db-mysql-5/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-mysql-5/releases/latest) +View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/xapi-db-mysql-5/dependencies/) diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..1db9be6 --- /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-mysql-5/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 771742b..8da05e6 100644 --- a/pom.xml +++ b/pom.xml @@ -1,314 +1,225 @@ + - 4.0.0 - - com.xdev-software - xapi-db-mysql-5 - 6.0.1-SNAPSHOT - jar - - SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 - https://github.com/xdev-software/xapi-db-mysql-5 - - - https://github.com/xdev-software/xapi-db-mysql-5 - https://github.com/xdev-software/xapi-db-mysql-5.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 - - - - - - 1.8 - - UTF-8 - lgpl_v3 - - ${javaVersion} - ${javaVersion} - - - - - - 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.1 - - - - mysql - mysql-connector-java - 5.1.20 - - - - - - - - - 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.11.0 - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.1 - - - attach-sources - verify - - jar-no-fork - - - - - - - maven-surefire-plugin - 3.0.0-M5 - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0 - - - enforce-maven - - enforce - - - - - 3.5.4 - - - ${javaVersion} - - - - - - - - - maven-compiler-plugin - 3.10.0 - - eclipse - ${javaVersion} - ${javaVersion} - - - - org.codehaus.plexus - plexus-compiler-eclipse - 2.8.8 - - - - - - org.codehaus.mojo - license-maven-plugin - 2.0.0 - - - - first - - update-file-header - - process-sources - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.3.2 - - - attach-javadocs - package - - jar - - - - - true - none - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - 3.1.2 - - - - com.puppycrawl.tools - checkstyle - 8.44 - - - - - checkstyle.xml - UTF-8 - false - true - false - - - - validate - validate - - check - - - - - - - - - - - - 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.12 - true - - ossrh - https://oss.sonatype.org/ - - 30 - true - - - - - - - + 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-mysql-5 + 6.0.1-SNAPSHOT + jar + + SqlEngine Database Adapter MySQL 5 + XAPI SqlEngine Database Adapter for MySQL 5 + https://github.com/xdev-software/xapi-db-mysql-5 + + + https://github.com/xdev-software/xapi-db-mysql-5 + https://github.com/xdev-software/xapi-db-mysql-5.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.1 + + + + mysql + mysql-connector-java + 5.1.20 + + + + + + + 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/mysql/jdbc/MySQLConnectionInformation.java b/src/main/java/xdev/db/mysql/jdbc/MySQLConnectionInformation.java index a93ad5f..825b1c3 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLConnectionInformation.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLConnectionInformation.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import xdev.db.ConnectionInformation; diff --git a/src/main/java/xdev/db/mysql/jdbc/MySQLDDLMapper.java b/src/main/java/xdev/db/mysql/jdbc/MySQLDDLMapper.java index ee54a1e..5b90c0f 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLDDLMapper.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLDDLMapper.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import java.util.Hashtable; diff --git a/src/main/java/xdev/db/mysql/jdbc/MySQLDMLAssembler.java b/src/main/java/xdev/db/mysql/jdbc/MySQLDMLAssembler.java index ca01457..be69a2d 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLDMLAssembler.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLDMLAssembler.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import static com.xdev.jadoth.sqlengine.SQL.LANG.DEFAULT_VALUES; import static com.xdev.jadoth.sqlengine.SQL.Punctuation._; diff --git a/src/main/java/xdev/db/mysql/jdbc/MySQLDatabaseMetaDataFork.java b/src/main/java/xdev/db/mysql/jdbc/MySQLDatabaseMetaDataFork.java index 1c21b6b..831c481 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLDatabaseMetaDataFork.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLDatabaseMetaDataFork.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import java.lang.reflect.Constructor; import java.lang.reflect.Method; diff --git a/src/main/java/xdev/db/mysql/jdbc/MySQLDbms.java b/src/main/java/xdev/db/mysql/jdbc/MySQLDbms.java index 5c4f187..e65207a 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLDbms.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLDbms.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import com.xdev.jadoth.sqlengine.dbms.DbmsAdaptor; import com.xdev.jadoth.sqlengine.dbms.SQLExceptionParser; import com.xdev.jadoth.sqlengine.interfaces.ConnectionProvider; diff --git a/src/main/java/xdev/db/mysql/jdbc/MySQLExceptionParser.java b/src/main/java/xdev/db/mysql/jdbc/MySQLExceptionParser.java index c369955..00dd3fa 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLExceptionParser.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLExceptionParser.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import java.sql.SQLException; diff --git a/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCConnection.java b/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCConnection.java index 6a1b537..588f11e 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCConnection.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCConnection.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import xdev.db.jdbc.JDBCConnection; diff --git a/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCDataSource.java b/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCDataSource.java index 891eca8..aeec905 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCDataSource.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCDataSource.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import xdev.db.DBException; import xdev.db.jdbc.JDBCDataSource; diff --git a/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCMetaData.java b/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCMetaData.java index 9c54253..e54e05e 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCMetaData.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLJDBCMetaData.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import java.sql.Connection; import java.sql.DatabaseMetaData; diff --git a/src/main/java/xdev/db/mysql/jdbc/MySQLRetrospectionAccessor.java b/src/main/java/xdev/db/mysql/jdbc/MySQLRetrospectionAccessor.java index 438a7d8..29c2baa 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLRetrospectionAccessor.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLRetrospectionAccessor.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import com.xdev.jadoth.sqlengine.dbms.standard.StandardRetrospectionAccessor; import com.xdev.jadoth.sqlengine.exceptions.SQLEngineException; diff --git a/src/main/java/xdev/db/mysql/jdbc/MySQLSyntax.java b/src/main/java/xdev/db/mysql/jdbc/MySQLSyntax.java index 5647842..4da3122 100644 --- a/src/main/java/xdev/db/mysql/jdbc/MySQLSyntax.java +++ b/src/main/java/xdev/db/mysql/jdbc/MySQLSyntax.java @@ -1,27 +1,21 @@ -package xdev.db.mysql.jdbc; - -/*- - * #%L - * Sqlengine Database Adapter Mysql 5 - * %% - * Copyright (C) 2003 - 2021 XDEV Software - * %% +/* + * SqlEngine Database Adapter MySQL 5 - XAPI SqlEngine Database Adapter for MySQL 5 + * 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.mysql.jdbc; import com.xdev.jadoth.sqlengine.dbms.DbmsSyntax;