diff --git a/.github/workflows/attach-artifact-release.yml b/.github/workflows/attach-artifact-release.yml index c7c13b6a..b0174d84 100644 --- a/.github/workflows/attach-artifact-release.yml +++ b/.github/workflows/attach-artifact-release.yml @@ -8,5 +8,5 @@ on: jobs: attach-artifact-to-release: - uses: liquibase/build-logic/.github/workflows/extension-attach-artifact-release.yml@v0.4.9 + uses: liquibase/build-logic/.github/workflows/extension-attach-artifact-release.yml@v0.5.0 secrets: inherit diff --git a/.github/workflows/build-nightly.yml b/.github/workflows/build-nightly.yml index f183aa2a..70cb67a2 100644 --- a/.github/workflows/build-nightly.yml +++ b/.github/workflows/build-nightly.yml @@ -7,7 +7,7 @@ on: jobs: nightly-build: - uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.4.9 + uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.0 with: nightly: true secrets: inherit diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 579345b2..d5a802ac 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -8,5 +8,5 @@ on: jobs: create-release: - uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.4.9 + uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.5.0 secrets: inherit diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml index b869ffa5..dd1c2dfc 100644 --- a/.github/workflows/release-published.yml +++ b/.github/workflows/release-published.yml @@ -7,7 +7,7 @@ on: jobs: release: - uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.4.9 + uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.5.0 secrets: inherit deploy_xsd: diff --git a/.github/workflows/snyk-nightly.yml b/.github/workflows/snyk-nightly.yml index eb9d8f4a..7ebe6aed 100644 --- a/.github/workflows/snyk-nightly.yml +++ b/.github/workflows/snyk-nightly.yml @@ -10,5 +10,5 @@ on: jobs: security-scan: - uses: liquibase/build-logic/.github/workflows/synk-nightly.yml@v0.4.9 + uses: liquibase/build-logic/.github/workflows/synk-nightly.yml@v0.5.0 secrets: inherit \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1e9afa7b..972f86a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,169 +10,8 @@ on: jobs: build: - name: Build & Package - runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - LIQUIBOT_TOKEN: ${{ secrets.LIQUIBOT_PAT }} - GPM_USERNAME: "liquibot" - GPM_PASSWORD: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} - steps: - - uses: actions/checkout@v4 - - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: 'temurin' - cache: 'maven' - # look for dependencies in maven - - name: maven-settings-xml-action - uses: whelk-io/maven-settings-xml-action@v21 - with: - repositories: | - [ - { - "id": "liquibase", - "url": "https://maven.pkg.github.com/liquibase/liquibase", - "releases": { - "enabled": "false" - }, - "snapshots": { - "enabled": "true", - "updatePolicy": "always" - } - }, - { - "id": "liquibase-pro", - "url": "https://maven.pkg.github.com/liquibase/liquibase-pro", - "releases": { - "enabled": "false" - }, - "snapshots": { - "enabled": "true", - "updatePolicy": "always" - } - } - ] - servers: | - [ - { - "id": "liquibase-pro", - "username": "liquibot", - "password": "${{ secrets.LIQUIBOT_PAT }}" - }, - { - "id": "liquibase", - "username": "liquibot", - "password": "${{ secrets.LIQUIBOT_PAT }}" - } - ] - - - name: Build and Package - run: mvn -B dependency:go-offline clean package -DskipTests=true - - - name: Get Artifact ID - id: get-artifact-id - run: echo "::set-output name=artifact_id::$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)" - - - name: Save Artifacts - uses: actions/upload-artifact@v3 - with: - name: ${{ steps.get-artifact-id.outputs.artifact_id }}-artifacts - path: | - target/* - - - name: Save Event File - uses: actions/upload-artifact@v3 - with: - name: Event File - path: ${{ github.event_path }} - - outputs: - artifact_id: ${{ steps.get-artifact-id.outputs.artifact_id }} - - unit-test: - strategy: - fail-fast: false - matrix: - java: [ 8, 11, 17, 18 ] - os: [ ubuntu-latest, windows-latest ] - name: Test Java ${{ matrix.java }} - ${{ matrix.os }} - runs-on: ${{ matrix.os }} - env: - LIQUIBOT_TOKEN: ${{ secrets.LIQUIBOT_PAT }} - GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - needs: build - steps: - - uses: actions/checkout@v4 - - - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v3 - with: - java-version: ${{ matrix.java }} - distribution: 'temurin' - cache: 'maven' - - # look for dependencies in maven - - name: maven-settings-xml-action - uses: whelk-io/maven-settings-xml-action@v21 - with: - repositories: | - [ - { - "id": "liquibase", - "url": "https://maven.pkg.github.com/liquibase/liquibase", - "releases": { - "enabled": "false" - }, - "snapshots": { - "enabled": "true", - "updatePolicy": "always" - } - }, - { - "id": "liquibase-pro", - "url": "https://maven.pkg.github.com/liquibase/liquibase-pro", - "releases": { - "enabled": "false" - }, - "snapshots": { - "enabled": "true", - "updatePolicy": "always" - } - } - ] - servers: | - [ - { - "id": "liquibase-pro", - "username": "liquibot", - "password": "${{ secrets.LIQUIBOT_PAT }}" - }, - { - "id": "liquibase", - "username": "liquibot", - "password": "${{ secrets.LIQUIBOT_PAT }}" - } - ] - - - uses: actions/download-artifact@v3 - with: - name: ${{needs.build.outputs.artifact_id}}-artifacts - path: ./target - - - name: Run Tests - run: mvn -B jacoco:prepare-agent surefire:test - - - name: Archive Test Results - ${{ matrix.os }} - if: ${{ always() }} - uses: actions/upload-artifact@v3 - with: - name: test-reports-jdk-${{ matrix.java }}-${{ matrix.os }} - path: | - **/target/surefire-reports - **/target/jacoco.exec + uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.0 + secrets: inherit integration-tests: name: Integration Test - Java ${{ matrix.java }} @@ -180,7 +19,6 @@ jobs: env: LIQUIBOT_TOKEN: ${{ secrets.LIQUIBOT_PAT }} GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - needs: unit-test strategy: matrix: java: [8, 11, 17] @@ -336,4 +174,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: mongodb-test-results - path: build/spock-reports + path: build/spock-reports \ No newline at end of file diff --git a/pom.xml b/pom.xml index 63b66fd3..a3776472 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,13 @@ 4.0.0 + + + org.liquibase + liquibase-parent-pom + 0.2.6 + + org.liquibase.ext liquibase-mongodb jar @@ -8,185 +15,35 @@ Liquibase MongoDB Extension Liquibase Extension for MongoDB http://www.liquibase.org - - Liquibase.org - http://www.liquibase.org - - - - http://www.apache.org/licenses/LICENSE-2.0 - Apache License, Version 2.0 - - - - https://github.com/liquibase/liquibase-mongodb/issues - - - scm:git:https://github.com/liquibase/liquibase-mongodb.git - https://github.com/liquibase/liquibase-mongodb - HEAD - + Alexandru Slobodcicov + - 1.0.1 - 1.8 - 1.8 - UTF-8 - 2.22.2 - 2.22.2 - 0.8.10 - 5.10.0 1.3.2 4.11.0 4.8.0 4.11.0 - 1.18.30 - 1.3 - 3.24.2 mastercard_apache_license ${project.baseUri}/src/license 2019 Mastercard true 2.0.0 - 3.2.0 2.15.3 - 2.2 - 1.6.8 - 3.2.0 - 3.0.1 - 3.2.0 - 3.0.1 - liquibase - ${project.artifactId} - ${project.name} - ${project.description} - https://sonarcloud.io - git - true - src/main/java - src/test/groovy + mongodb://localhost:27017/test_db?socketTimeoutMS=100&connectTimeoutMS=100&serverSelectionTimeoutMS=100 + - - org.liquibase - liquibase-core - 4.24.0 - - - org.codehaus.groovy - groovy-all - 3.0.19 - test - pom - - - org.codehaus.groovy - groovy-testng - - - - - org.spockframework - spock-core - 2.4-M1-groovy-3.0 - test - - - org.liquibase - liquibase-test-harness - 1.0.9 - test - - - org.yaml - snakeyaml - ${snakeyaml.version} - test - - - org.json - json - 20231013 - test - - - org.skyscreamer - jsonassert - 1.5.1 - test - org.mongodb mongodb-driver-sync ${mongodb-driver.version} compile - - - com.fasterxml.jackson.core - jackson-databind - ${jackson-core.version} - compile - - - org.projectlombok - lombok - ${lombok.version} - provided - - - org.junit.jupiter - junit-jupiter-api - ${jupiter.version} - test - - - org.junit.jupiter - junit-jupiter-engine - ${jupiter.version} - test - - - org.junit.jupiter - junit-jupiter-params - ${jupiter.version} - test - - - org.junit.platform - junit-platform-engine - 1.10.0 - test - - - org.hamcrest - hamcrest-all - ${hamcrest.version} - test - - - org.assertj - assertj-core - ${assertj.version} - test - - - org.mockito - mockito-core - ${mockito-core.version} - test - - - org.mockito - mockito-junit-jupiter - ${mockito-junit-jupiter.version} - test - com.athaydes spock-reports @@ -200,7 +57,6 @@ - org.slf4j @@ -226,99 +82,7 @@ - - - - org.jacoco - jacoco-maven-plugin - ${jacoco-maven-plugin.version} - - - - - - maven-resources-plugin - 3.3.1 - - UTF-8 - - - - - maven-compiler-plugin - 3.11.0 - - true - ${project.build.sourceEncoding} - - -Xlint:all - - true - true - - - - - org.codehaus.gmavenplus - gmavenplus-plugin - 3.0.2 - - - - addSources - addTestSources - compile - compileTests - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.1.2 - - - true - plain - - - - unit-tests - test - - test - - - - **/*Test.java - - - - - integration-tests - integration-test - - test - - - - **/*IT.java - **/*Test.java - - - - - - - org.apache.maven.surefire - surefire-junit-platform - 3.1.2 - - - - org.apache.maven.plugins maven-enforcer-plugin @@ -339,194 +103,10 @@ - - - maven-jar-plugin - 3.3.0 - - - - Liquibase - ${liquibase.version} - Liquibase.org - ${project.name} - ${project.version} - Liquibase - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.4.0 - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - true - - sonatype-nexus-staging - https://oss.sonatype.org/ - - - - - maven-shade-plugin - 3.5.1 - - - über-jar - - shade - - - false - true - full - - - *:* - - **/module-info.class - META-INF/MANIFEST.MF - empty.txt - - - - - - - - false - - - - - - - - - org.codehaus.mojo - versions-maven-plugin - 2.16.1 - - false - - - - - org.apache.maven.plugins - maven-release-plugin - ${maven-release-plugin.version} - - [Version Bumped to ${project.version}] - - - - - org.jacoco - jacoco-maven-plugin - ${jacoco-maven-plugin.version} - - - - target - - **/jacoco.exec - - - - - - - - - sonatype-nexus-staging - Nexus Release Repository - https://oss.sonatype.org/service/local/staging/deploy/maven2 - - - sonatype-nexus-staging - Sonatype Nexus Snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - - - remote-repositories - - - env.CI - true - - - - - liquibase - https://maven.pkg.github.com/liquibase/liquibase - - true - - - - liquibase-pro - https://maven.pkg.github.com/liquibase/liquibase-pro - - true - - - - - - - coverage - - - env.CI - true - - - - - - org.jacoco - jacoco-maven-plugin - - - - target - - **/jacoco.exec - - - - - - - prepare-agent - - prepare-agent - - - - report - - report - - - - - - - run-its @@ -560,78 +140,5 @@ - - - release - - - env.CI - true - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.3.0 - - - attach-sources - - jar-no-fork - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - - false - Liquibase CDI ${project.version} API - true - none - UTF-8 - ${project.basedir}/target - - - - jar-javadoc - - jar - - package - - - - - - com.coderplus.maven.plugins - copy-rename-maven-plugin - ${copy-rename-maven-plugin.version} - - - copy - package - - copy - - - - - ${project.basedir}/pom.xml - ${project.build.directory}/${project.artifactId}-${project.version}.pom - - - - - - - - - - - + \ No newline at end of file