From 574cbacb54cad246c280c44ce8d02d3c4bb0a411 Mon Sep 17 00:00:00 2001 From: Peter Vigier <3204560+p3t@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:35:14 +0100 Subject: [PATCH] Replace gradle with maven build (#62) Configured maven build because of lombok-issue with gradle build. Additional benefits: - better control about published pom.xml - official supported plugin to upload to sonar central --- .github/workflows/build.yml | 141 --------- .github/workflows/maven_build.yml | 88 ++++++ .github/workflows/maven_publish.yml | 42 +++ .github/workflows/start_release.yml | 62 +--- .mvn/wrapper/maven-wrapper.properties | 19 ++ buildSrc/build.gradle.kts | 3 - buildSrc/src/main/kotlin/Dependencies.kt | 3 + buildSrc/src/main/kotlin/Versions.kt | 3 + ...vigier.java-library-conventions.gradle.kts | 8 +- ...vigier.java-publish-conventions.gradle.kts | 8 + .../webapp-with-maven/pom.xml | 5 + cursorpaging-jpa-api/build.gradle.kts | 5 +- cursorpaging-jpa-api/pom.xml | 123 ++++++++ .../{proto => protobuf}/pagerequest.proto | 0 cursorpaging-jpa/build.gradle.kts | 1 - cursorpaging-jpa/pom.xml | 170 ++++++++++ gradle.properties | 1 + mvnw | 259 ++++++++++++++++ mvnw.cmd | 149 +++++++++ pom.xml | 292 ++++++++++++++++++ 20 files changed, 1175 insertions(+), 207 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/maven_build.yml create mode 100644 .github/workflows/maven_publish.yml create mode 100644 .mvn/wrapper/maven-wrapper.properties create mode 100644 buildSrc/src/main/kotlin/Dependencies.kt create mode 100644 buildSrc/src/main/kotlin/Versions.kt create mode 100644 cursorpaging-jpa-api/pom.xml rename cursorpaging-jpa-api/src/main/{proto => protobuf}/pagerequest.proto (100%) create mode 100644 cursorpaging-jpa/pom.xml create mode 100644 gradle.properties create mode 100755 mvnw create mode 100644 mvnw.cmd create mode 100644 pom.xml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index d85e625..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,141 +0,0 @@ -name: '[ BUILD ] Build Project (Java/Gradle)' - -on: - workflow_dispatch: - inputs: - release_build: - description: 'toggles an release-build, by default false' - type: boolean - default: false - required: false - build_version: - description: 'The version to build and deploy' - type: string - required: true - default: '0-SNAPSHOT' - workflow_call: - inputs: - release_build: - description: 'toggles an release-build, by default false' - type: boolean - default: false - required: false - build_version: - description: 'The version to build and deploy' - type: string - required: false - default: '0-SNAPSHOT' - outputs: - build_artifact_id: - description: 'The id of the uploaded build artifacts.' - value: ${{ jobs.Build.outputs.build_artifacts_id}} - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -env: - BUILD_VERSION: ${{ inputs.build_version != '' && inputs.build_version || '0-SNAPSHOT' }} - -jobs: - Validation: - name: "Validation" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: gradle/actions/wrapper-validation@v4 - - Build: - name: "Build, Sign and Upload Artifacts" - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - outputs: - build_artifacts_id: ${{ steps.BuildArtifactUpload.outputs.artifact-id }} - - steps: - - name: Checkout - uses: actions/checkout@v4 - - run: tree - - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - - # Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies. - # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v4 # v3.1.0 - with: - add-job-summary-as-pr-comment: on-failure - artifact-retention-days: 5 - # with: - # dependency-graph: generate-and-submit - - - name: Generate gradle.properties - run: | - echo "version=${BUILD_VERSION}" - echo "version=${BUILD_VERSION}" >> ./gradle.properties - cat ./gradle.properties - - - name: Clean - if: ${{ inputs.release_build }} - run: ./gradlew clean - env: - GITHUB_DEPENDENCY_GRAPH_ENABLED: false - - - name: Build with Gradle Wrapper - id: Build - run: ./gradlew -Pversion=${BUILD_VERSION} --info build jacocoTestReport - - - name: Sign Artifacts - if: ${{ steps.Build.outcome == 'success' && inputs.release_build }} - # if: inputs.release_build - run: | - ./gradlew -Pversion=${BUILD_VERSION} \ - --info signMavenJavaPublication - env: - GPG_SIGNING_KEY_PASSWORD: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }} - GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} - GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} - - - name: Build Artifacts Upload - id: BuildArtifactUpload - uses: actions/upload-artifact@v4 - with: - name: build-artifacts - path: | - ./**/build/libs/*${{inputs.build_version}}*.jar - ./**/build/libs/*${{inputs.build_version}}*.jar.asc - ./**/build/reports/ - - DependencySubmission: - name: "Dependency Submission" - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - - # Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies. - # https://github.com/gradle/actions/blob/main/docs/dependency-submission.md - - name: Generate and submit dependency graph - uses: gradle/actions/dependency-submission@v4 - env: - # Exclude all dependencies that originate solely in the 'buildSrc' or testapp project - DEPENDENCY_GRAPH_EXCLUDE_PROJECTS: ':buildSrc|:cursorpaging-testapp' - # Exclude dependencies that are only resolved in test classpaths - DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS: '.*[Tt]est(Compile|Runtime)Classpath' - with: - build-scan-publish: true - build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use" - build-scan-terms-of-use-agree: "yes" \ No newline at end of file diff --git a/.github/workflows/maven_build.yml b/.github/workflows/maven_build.yml new file mode 100644 index 0000000..1a43998 --- /dev/null +++ b/.github/workflows/maven_build.yml @@ -0,0 +1,88 @@ +name: '[ BUILD ] Build Project (Java/Maven)' + +on: + workflow_dispatch: + inputs: + release_build: + description: 'toggles an release-build, by default false' + type: boolean + default: false + required: false + build_version: + description: 'The version to build and deploy' + type: string + required: true + default: '0-SNAPSHOT' + workflow_call: + inputs: + release_build: + description: 'toggles an release-build, by default false' + type: boolean + default: false + required: false + build_version: + description: 'The version to build and deploy' + type: string + required: false + default: '0-SNAPSHOT' + outputs: + build_artifact_id: + description: 'The id of the uploaded build artifacts.' + value: ${{ jobs.Build.outputs.build_artifacts_id}} + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + BUILD_VERSION: ${{ inputs.build_version != '' && inputs.build_version || '0-SNAPSHOT' }} + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup JDK + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + cache: 'maven' + cache-dependency-path: '**/pom.xml' + server-id: 'github' + gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} + gpg-passphrase: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }} + + - name: Set version + if: ${{ inputs.release_build }} + run: ./mvnw versions:set -DnewVersion=${{ env.BUILD_VERSION }} -DgenerateBackupPoms=false + + - name: Build project, run unit and integration tests + id: Build + run: ./mvnw -T1C --batch-mode clean install + + - name: Javadoc and sign artifacts + if: ${{ inputs.release_build }} + run: ./mvnw -T1C --batch-mode package javadoc:jar gpg:sign -Dgpg.signer=bc + env: + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }} + MAVEN_GPG_KEY: ${{ secrets.GPG_SIGNING_KEY }} + GITHUB_DEPENDENCY_GRAPH_ENABLED: false + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: build-artifacts + path: | + ./**/target/*${{inputs.build_version}}*.jar + ./**/target/*${{inputs.build_version}}*.jar.asc + ./**/target/reports/ + retention-days: 10 + + - name: Publish to GitHub Packages + if: ${{ inputs.release_build }} + run: mvn deploy + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/maven_publish.yml b/.github/workflows/maven_publish.yml new file mode 100644 index 0000000..4cfc623 --- /dev/null +++ b/.github/workflows/maven_publish.yml @@ -0,0 +1,42 @@ +name: '[ PUBLISH ] Release build with maven' + +on: + workflow_call: + inputs: + build_version: + description: 'The version to be published' + type: string + required: true + Publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup JDK + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + cache: 'maven' + cache-dependency-path: '**/pom.xml' + server-id: 'central' + server-username: ${{ secrets.SONATYPE_CENTRAL_USERNAME }} + server-password: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }} + + - name: Download build artifacts + uses: actions/download-artifact@v4 + with: + name: build-artifacts + + - name: Display structure of downloaded files + run: tree + + - name: Publish to Maven Central + run: ./mvnw deploy -DskipTests=true -Dmaven.javadoc.skip=true -B -V + + - name: Debug + if: ${{ failure() }} + run: | + echo "Failed" + tree \ No newline at end of file diff --git a/.github/workflows/start_release.yml b/.github/workflows/start_release.yml index 8487b64..4348fbe 100644 --- a/.github/workflows/start_release.yml +++ b/.github/workflows/start_release.yml @@ -38,7 +38,7 @@ jobs: Build: needs: [ ReleaseVersion ] - uses: ./.github/workflows/build.yml + uses: ./.github/workflows/maven_build.yml with: build_version: ${{ needs.ReleaseVersion.outputs.build_version }} release_build: true @@ -46,6 +46,7 @@ jobs: permissions: pull-requests: write contents: write + packages: write UploadAssetsToRelease: needs: [ ReleaseVersion, Build ] @@ -72,59 +73,10 @@ jobs: Publish: needs: [ ReleaseVersion, Build ] - runs-on: ubuntu-latest + uses: ./.github/workflows/maven_publish.yml + with: + build_version: ${{ needs.ReleaseVersion.outputs.build_version }} + secrets: inherit permissions: - contents: write packages: write - env: - BUILD_VERSION: ${{ needs.ReleaseVersion.outputs.build_version }} - - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - - - uses: actions/download-artifact@v4 - with: - merge-multiple: true - - - name: Display structure of downloaded files - run: tree - - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v4 # v3.1.0 - - - name: Generate gradle.properties with version - run: | - echo "version=${BUILD_VERSION}" - echo "version=${BUILD_VERSION}" >> ./gradle.properties - - # The USERNAME and TOKEN need to correspond to the credentials environment variables used in - # the publishing section of your build.gradle - - name: Publish to GitHub Packages - run: ./gradlew publish - env: - GITHUB_ACTOR: ${{ github.actor }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GPG_SIGNING_KEY_PASSWORD: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }} - GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} - GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} - GITHUB_DEPENDENCY_GRAPH_ENABLED: false - - - name: publish to sonar central - run: ./gradlew sonatypeCentralUpload - env: - GPG_SIGNING_KEY_PASSWORD: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }} - GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} - SONATYPE_CENTRAL_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }} - SONATYPE_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }} - GITHUB_DEPENDENCY_GRAPH_ENABLED: false - - - name: Debug - if: ${{ failure() }} - run: | - echo "Failed" - tree \ No newline at end of file + contents: write diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..ad8cf41 --- /dev/null +++ b/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +wrapperVersion=3.3.2 +distributionType=only-script +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index d601292..4fec1b3 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -14,12 +14,9 @@ dependencies { implementation("org.springframework.boot:spring-boot-gradle-plugin:3.3.5") implementation("io.spring.gradle:dependency-management-plugin:1.1.6") // implementation("org.kordamp.gradle:plugin-gradle-plugin:$kordampVersion") - implementation("org.kordamp.gradle:project-gradle-plugin:$kordampVersion") implementation("org.kordamp.gradle:spotbugs-gradle-plugin:$kordampVersion") implementation("org.kordamp.gradle:coveralls-gradle-plugin:$kordampVersion") implementation("org.sonarqube:org.sonarqube.gradle.plugin:5.1.0.4882") -// implementation("org.kordamp.gradle:base-gradle-plugin:$kordampVersion") -// implementation("org.kordamp.gradle:jacoco-gradle-plugin:$kordampVersion") implementation("gradle.plugin.org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.12.2") implementation("cl.franciscosolis:SonatypeCentralUpload:1.0.3") testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.3") diff --git a/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/src/main/kotlin/Dependencies.kt new file mode 100644 index 0000000..c4cf907 --- /dev/null +++ b/buildSrc/src/main/kotlin/Dependencies.kt @@ -0,0 +1,3 @@ +object Dependencies { + +} \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt new file mode 100644 index 0000000..3bf8b20 --- /dev/null +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -0,0 +1,3 @@ +object Versions { + const val springVersion = "3.3.5" +} \ No newline at end of file diff --git a/buildSrc/src/main/kotlin/io.vigier.java-library-conventions.gradle.kts b/buildSrc/src/main/kotlin/io.vigier.java-library-conventions.gradle.kts index 390d5e2..856da1d 100644 --- a/buildSrc/src/main/kotlin/io.vigier.java-library-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/io.vigier.java-library-conventions.gradle.kts @@ -24,9 +24,8 @@ repositories { dependencyManagement { imports { - mavenBom("org.springframework.boot:spring-boot-dependencies:3.2.5") + mavenBom("org.springframework.boot:spring-boot-dependencies:${Versions.springVersion}") } - } // This is needed for sontarTypeCentralUpload! Has conflict with kordamp.java-project java { @@ -116,10 +115,9 @@ dependencies { val junitVersion: String by extra("5.10.2") val assertjVersion: String by extra("3.25.3") - // Load BOM for Spring Boot. - implementation(platform("org.springframework.boot:spring-boot-dependencies:3.2.5")) - implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) +// implementation(platform("org.springframework.boot:spring-boot-dependencies:3.2.5")) +// implementation(platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)) compileOnly("org.projectlombok:lombok:${lombokVersion}") testCompileOnly("org.projectlombok:lombok:${lombokVersion}") diff --git a/buildSrc/src/main/kotlin/io.vigier.java-publish-conventions.gradle.kts b/buildSrc/src/main/kotlin/io.vigier.java-publish-conventions.gradle.kts index b6ee8a0..513d4f1 100644 --- a/buildSrc/src/main/kotlin/io.vigier.java-publish-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/io.vigier.java-publish-conventions.gradle.kts @@ -27,6 +27,14 @@ publishing { publications { create("mavenJava") { from(components["java"]) +// versionMapping { +// usage("java-api") { +// fromResolutionOf("runtimeClasspath") +// } +// usage("java-runtime") { +// fromResolutionResult() +// } +// } } withType { pom { diff --git a/cursorpaging-examples/webapp-with-maven/pom.xml b/cursorpaging-examples/webapp-with-maven/pom.xml index 5e3f2ec..9b3573e 100644 --- a/cursorpaging-examples/webapp-with-maven/pom.xml +++ b/cursorpaging-examples/webapp-with-maven/pom.xml @@ -152,6 +152,11 @@ mapstruct-processor ${mapstruct.version} + + org.projectlombok + lombok-mapstruct-binding + 0.2.0 + org.hibernate.orm hibernate-jpamodelgen diff --git a/cursorpaging-jpa-api/build.gradle.kts b/cursorpaging-jpa-api/build.gradle.kts index f38ff78..85e078a 100644 --- a/cursorpaging-jpa-api/build.gradle.kts +++ b/cursorpaging-jpa-api/build.gradle.kts @@ -26,6 +26,7 @@ dependencies { implementation("com.fasterxml.jackson.core:jackson-core") implementation("com.fasterxml.jackson.core:jackson-databind") // implementation("com.fasterxml.jackson.core:jackson-datatype-jsr310") + implementation("com.google.protobuf:protobuf-java:4.28.3") testImplementation("jakarta.persistence:jakarta.persistence-api") @@ -42,7 +43,7 @@ dependencies { testImplementation("org.testcontainers:testcontainers") testImplementation("org.testcontainers:junit-jupiter") testImplementation("org.testcontainers:postgresql") - + testAnnotationProcessor("org.hibernate:hibernate-jpamodelgen:6.6.1.Final") testRuntimeOnly("org.postgresql:postgresql") } @@ -81,7 +82,7 @@ protobuf { sourceSets { main { proto { - srcDir("src/main/proto") + srcDir("src/main/protobuf") } } } \ No newline at end of file diff --git a/cursorpaging-jpa-api/pom.xml b/cursorpaging-jpa-api/pom.xml new file mode 100644 index 0000000..fa7d01d --- /dev/null +++ b/cursorpaging-jpa-api/pom.xml @@ -0,0 +1,123 @@ + + + 4.0.0 + + + io.vigier.cursorpaging + cursorpaging-parent + 0-SNAPSHOT + + + cursorpaging-jpa-api + 0-SNAPSHOT + + Spring-CursorPaging::JPA::API + Cursor paging support for Spring Data, Serialize/Deserializer for API layer + https://github.com/p3t/spring-cursorpaging/ + 2024 + + + + io.vigier.cursorpaging + cursorpaging-jpa + 0-SNAPSHOT + + + org.springframework + spring-core + + + jakarta.validation + jakarta.validation-api + + + jakarta.persistence + jakarta.persistence-api + + + com.fasterxml.jackson.core + jackson-annotations + + + com.fasterxml.jackson.core + jackson-core + + + com.fasterxml.jackson.core + jackson-databind + + + com.fasterxml.jackson.datatype + jackson-datatype-jsr310 + + + + com.google.protobuf + protobuf-java + compile + + + org.hibernate.orm + hibernate-jpamodelgen + compile + + + + org.projectlombok + lombok + provided + + + + org.junit.jupiter + junit-jupiter + test + + + org.assertj + assertj-core + test + + + org.mockito + mockito-junit-jupiter + test + + + org.mockito + mockito-core + test + + + + + + + io.github.ascopes + protobuf-maven-plugin + + + + + + + RELEASE_BUILD + + + RELEASE_BUILD + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + + + + diff --git a/cursorpaging-jpa-api/src/main/proto/pagerequest.proto b/cursorpaging-jpa-api/src/main/protobuf/pagerequest.proto similarity index 100% rename from cursorpaging-jpa-api/src/main/proto/pagerequest.proto rename to cursorpaging-jpa-api/src/main/protobuf/pagerequest.proto diff --git a/cursorpaging-jpa/build.gradle.kts b/cursorpaging-jpa/build.gradle.kts index 395ae1d..559f26a 100644 --- a/cursorpaging-jpa/build.gradle.kts +++ b/cursorpaging-jpa/build.gradle.kts @@ -1,7 +1,6 @@ plugins { id("io.vigier.java-library-conventions") id("io.vigier.java-publish-conventions") - id("org.kordamp.gradle.coveralls") } group = "io.vigier.cursorpaging" diff --git a/cursorpaging-jpa/pom.xml b/cursorpaging-jpa/pom.xml new file mode 100644 index 0000000..8692f19 --- /dev/null +++ b/cursorpaging-jpa/pom.xml @@ -0,0 +1,170 @@ + + + 4.0.0 + + io.vigier.cursorpaging + cursorpaging-parent + 0-SNAPSHOT + + + cursorpaging-jpa + 0-SNAPSHOT + + Spring-CursorPaging::JPA + Cursor paging support for Spring Data + https://github.com/p3t/spring-cursorpaging/ + 2024 + + + + Apache2 license + https://apache.org/licenses/LICENSE-2.0 + + + + + + p3t + Peter Vigier + 3204560+p3t@users.noreply.github.com + + + + + scm:git:git@github.com:p3t/spring-cursorpaging.git + scm:git:ssh:git@github.com:p3t/spring-cursorpaging.git + https://github.com/p3t/spring-cursorpaging + + + + + jakarta.validation + jakarta.validation-api + compile + + + jakarta.persistence + jakarta.persistence-api + + + + + + + + org.springframework.data + spring-data-jpa + + + + + + + + org.springframework.boot + spring-boot-autoconfigure + + + + org.projectlombok + lombok + provided + + + + + org.hibernate.orm + hibernate-core + test + + + jakarta.transaction + jakarta.transaction-api + test + + + org.springframework.boot + spring-boot-testcontainers + test + + + org.springframework.boot + spring-boot-test + + + org.springframework.retry + spring-retry + test + + + org.mockito + mockito-core + test + + + org.mockito + mockito-junit-jupiter + test + + + org.testcontainers + testcontainers + test + + + org.testcontainers + junit-jupiter + test + + + org.testcontainers + postgresql + test + + + org.junit.jupiter + junit-jupiter + test + + + org.assertj + assertj-core + test + + + org.postgresql + postgresql + test + + + + + + + org.projectlombok + lombok-maven-plugin + + + + + + RELEASE_BUILD + + + RELEASE_BUILD + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + + + + + + diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..90d6c94 --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +version=0-SNAPSHOT \ No newline at end of file diff --git a/mvnw b/mvnw new file mode 100755 index 0000000..19529dd --- /dev/null +++ b/mvnw @@ -0,0 +1,259 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Apache Maven Wrapper startup batch script, version 3.3.2 +# +# Optional ENV vars +# ----------------- +# JAVA_HOME - location of a JDK home dir, required when download maven via java source +# MVNW_REPOURL - repo url base for downloading maven distribution +# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven +# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output +# ---------------------------------------------------------------------------- + +set -euf +[ "${MVNW_VERBOSE-}" != debug ] || set -x + +# OS specific support. +native_path() { printf %s\\n "$1"; } +case "$(uname)" in +CYGWIN* | MINGW*) + [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")" + native_path() { cygpath --path --windows "$1"; } + ;; +esac + +# set JAVACMD and JAVACCMD +set_java_home() { + # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched + if [ -n "${JAVA_HOME-}" ]; then + if [ -x "$JAVA_HOME/jre/sh/java" ]; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + JAVACCMD="$JAVA_HOME/jre/sh/javac" + else + JAVACMD="$JAVA_HOME/bin/java" + JAVACCMD="$JAVA_HOME/bin/javac" + + if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then + echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2 + echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2 + return 1 + fi + fi + else + JAVACMD="$( + 'set' +e + 'unset' -f command 2>/dev/null + 'command' -v java + )" || : + JAVACCMD="$( + 'set' +e + 'unset' -f command 2>/dev/null + 'command' -v javac + )" || : + + if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then + echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2 + return 1 + fi + fi +} + +# hash string like Java String::hashCode +hash_string() { + str="${1:-}" h=0 + while [ -n "$str" ]; do + char="${str%"${str#?}"}" + h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296)) + str="${str#?}" + done + printf %x\\n $h +} + +verbose() { :; } +[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; } + +die() { + printf %s\\n "$1" >&2 + exit 1 +} + +trim() { + # MWRAPPER-139: + # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds. + # Needed for removing poorly interpreted newline sequences when running in more + # exotic environments such as mingw bash on Windows. + printf "%s" "${1}" | tr -d '[:space:]' +} + +# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties +while IFS="=" read -r key value; do + case "${key-}" in + distributionUrl) distributionUrl=$(trim "${value-}") ;; + distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;; + esac +done <"${0%/*}/.mvn/wrapper/maven-wrapper.properties" +[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.mvn/wrapper/maven-wrapper.properties" + +case "${distributionUrl##*/}" in +maven-mvnd-*bin.*) + MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ + case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in + *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;; + :Darwin*x86_64) distributionPlatform=darwin-amd64 ;; + :Darwin*arm64) distributionPlatform=darwin-aarch64 ;; + :Linux*x86_64*) distributionPlatform=linux-amd64 ;; + *) + echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2 + distributionPlatform=linux-amd64 + ;; + esac + distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip" + ;; +maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;; +*) MVN_CMD="mvn${0##*/mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;; +esac + +# apply MVNW_REPOURL and calculate MAVEN_HOME +# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/ +[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}" +distributionUrlName="${distributionUrl##*/}" +distributionUrlNameMain="${distributionUrlName%.*}" +distributionUrlNameMain="${distributionUrlNameMain%-bin}" +MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}" +MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")" + +exec_maven() { + unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || : + exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD" +} + +if [ -d "$MAVEN_HOME" ]; then + verbose "found existing MAVEN_HOME at $MAVEN_HOME" + exec_maven "$@" +fi + +case "${distributionUrl-}" in +*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;; +*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;; +esac + +# prepare tmp dir +if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then + clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; } + trap clean HUP INT TERM EXIT +else + die "cannot create temp dir" +fi + +mkdir -p -- "${MAVEN_HOME%/*}" + +# Download and Install Apache Maven +verbose "Couldn't find MAVEN_HOME, downloading and installing it ..." +verbose "Downloading from: $distributionUrl" +verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName" + +# select .zip or .tar.gz +if ! command -v unzip >/dev/null; then + distributionUrl="${distributionUrl%.zip}.tar.gz" + distributionUrlName="${distributionUrl##*/}" +fi + +# verbose opt +__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR='' +[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v + +# normalize http auth +case "${MVNW_PASSWORD:+has-password}" in +'') MVNW_USERNAME='' MVNW_PASSWORD='' ;; +has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;; +esac + +if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then + verbose "Found wget ... using wget" + wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl" +elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then + verbose "Found curl ... using curl" + curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl" +elif set_java_home; then + verbose "Falling back to use Java to download" + javaSource="$TMP_DOWNLOAD_DIR/Downloader.java" + targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName" + cat >"$javaSource" <<-END + public class Downloader extends java.net.Authenticator + { + protected java.net.PasswordAuthentication getPasswordAuthentication() + { + return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() ); + } + public static void main( String[] args ) throws Exception + { + setDefault( new Downloader() ); + java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() ); + } + } + END + # For Cygwin/MinGW, switch paths to Windows format before running javac and java + verbose " - Compiling Downloader.java ..." + "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java" + verbose " - Running Downloader.java ..." + "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")" +fi + +# If specified, validate the SHA-256 sum of the Maven distribution zip file +if [ -n "${distributionSha256Sum-}" ]; then + distributionSha256Result=false + if [ "$MVN_CMD" = mvnd.sh ]; then + echo "Checksum validation is not supported for maven-mvnd." >&2 + echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 + exit 1 + elif command -v sha256sum >/dev/null; then + if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then + distributionSha256Result=true + fi + elif command -v shasum >/dev/null; then + if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then + distributionSha256Result=true + fi + else + echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2 + echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 + exit 1 + fi + if [ $distributionSha256Result = false ]; then + echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2 + echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2 + exit 1 + fi +fi + +# unzip and move +if command -v unzip >/dev/null; then + unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip" +else + tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar" +fi +printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/mvnw.url" +mv -- "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME" + +clean || : +exec_maven "$@" diff --git a/mvnw.cmd b/mvnw.cmd new file mode 100644 index 0000000..249bdf3 --- /dev/null +++ b/mvnw.cmd @@ -0,0 +1,149 @@ +<# : batch portion +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Apache Maven Wrapper startup batch script, version 3.3.2 +@REM +@REM Optional ENV vars +@REM MVNW_REPOURL - repo url base for downloading maven distribution +@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven +@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output +@REM ---------------------------------------------------------------------------- + +@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0) +@SET __MVNW_CMD__= +@SET __MVNW_ERROR__= +@SET __MVNW_PSMODULEP_SAVE=%PSModulePath% +@SET PSModulePath= +@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @( + IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B) +) +@SET PSModulePath=%__MVNW_PSMODULEP_SAVE% +@SET __MVNW_PSMODULEP_SAVE= +@SET __MVNW_ARG0_NAME__= +@SET MVNW_USERNAME= +@SET MVNW_PASSWORD= +@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*) +@echo Cannot start maven from wrapper >&2 && exit /b 1 +@GOTO :EOF +: end batch / begin powershell #> + +$ErrorActionPreference = "Stop" +if ($env:MVNW_VERBOSE -eq "true") { + $VerbosePreference = "Continue" +} + +# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties +$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl +if (!$distributionUrl) { + Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties" +} + +switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) { + "maven-mvnd-*" { + $USE_MVND = $true + $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip" + $MVN_CMD = "mvnd.cmd" + break + } + default { + $USE_MVND = $false + $MVN_CMD = $script -replace '^mvnw','mvn' + break + } +} + +# apply MVNW_REPOURL and calculate MAVEN_HOME +# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/ +if ($env:MVNW_REPOURL) { + $MVNW_REPO_PATTERN = if ($USE_MVND) { "/org/apache/maven/" } else { "/maven/mvnd/" } + $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace '^.*'+$MVNW_REPO_PATTERN,'')" +} +$distributionUrlName = $distributionUrl -replace '^.*/','' +$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$','' +$MAVEN_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain" +if ($env:MAVEN_USER_HOME) { + $MAVEN_HOME_PARENT = "$env:MAVEN_USER_HOME/wrapper/dists/$distributionUrlNameMain" +} +$MAVEN_HOME_NAME = ([System.Security.Cryptography.MD5]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join '' +$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME" + +if (Test-Path -Path "$MAVEN_HOME" -PathType Container) { + Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME" + Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD" + exit $? +} + +if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) { + Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl" +} + +# prepare tmp dir +$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile +$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir" +$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null +trap { + if ($TMP_DOWNLOAD_DIR.Exists) { + try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null } + catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" } + } +} + +New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null + +# Download and Install Apache Maven +Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..." +Write-Verbose "Downloading from: $distributionUrl" +Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName" + +$webclient = New-Object System.Net.WebClient +if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) { + $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD) +} +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null + +# If specified, validate the SHA-256 sum of the Maven distribution zip file +$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum +if ($distributionSha256Sum) { + if ($USE_MVND) { + Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." + } + Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash + if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) { + Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property." + } +} + +# unzip and move +Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null +Rename-Item -Path "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" -NewName $MAVEN_HOME_NAME | Out-Null +try { + Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null +} catch { + if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) { + Write-Error "fail to move MAVEN_HOME" + } +} finally { + try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null } + catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" } +} + +Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD" diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..6e25330 --- /dev/null +++ b/pom.xml @@ -0,0 +1,292 @@ + + + 4.0.0 + io.vigier.cursorpaging + cursorpaging-parent + 0-SNAPSHOT + + pom + + + cursorpaging-jpa + cursorpaging-jpa-api + + + Spring-CursorPagingm + Cursor based paging support for Spring Data + https://github.com/p3t/spring-cursorpaging/ + 2024 + + + + github + GitHub Packages + https://maven.pkg.github.com/p3t/spring-cursorpaging/ + + + + + + Apache2 license + https://apache.org/licenses/LICENSE-2.0 + + + + + + p3t + Peter Vigier + 3204560+p3t@users.noreply.github.com + + + + + scm:git:git@github.com:p3t/spring-cursorpaging.git + scm:git:ssh:git@github.com:p3t/spring-cursorpaging.git + https://github.com/p3t/spring-cursorpaging + + + + 17 + UTF-8 + UTF-8 + 4.28.2 + 6.5.3.Final + 6.0.6.Final + 3.3.5 + 1.18.34 + 5.11.0 + ${project.build.directory}/generated-sources/delombok + 1.20.3 + + + + + + jakarta.validation + jakarta.validation-api + 3.1.0 + compile + + + jakarta.persistence + jakarta.persistence-api + 3.2.0 + + + + org.hibernate.common + hibernate-commons-annotations + ${hibernate-annotations.version} + + + + + org.springframework.boot + spring-boot-dependencies + ${springboot.version} + pom + import + + + org.springframework.boot + spring-boot-starter-data-jpa + ${springboot.version} + import + pom + + + org.springframework.boot + spring-boot-starter-data-jdbc + ${springboot.version} + import + pom + + + org.mockito + mockito-bom + ${mockito.version} + import + pom + + + + + + + + + + + com.google.protobuf + protobuf-java + ${protobuf.version} + compile + + + org.hibernate.orm + hibernate-jpamodelgen + 6.4.4.Final + compile + + + + + org.projectlombok + lombok + ${lombok.version} + + + + + org.testcontainers + testcontainers-bom + 1.20.3 + import + pom + + + + org.hibernate.orm + hibernate-core + ${hibernate.version} + test + + + org.postgresql + postgresql + 42.7.4 + + + org.springframework.boot + spring-boot-testcontainers + ${springboot.version} + + + org.junit.jupiter + junit-jupiter + 5.10.5 + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.13.0 + + ${java.version} + + + org.hibernate.orm + hibernate-jpamodelgen + ${hibernate.version} + + + org.projectlombok + lombok + ${lombok.version} + + + + + + + io.github.ascopes + protobuf-maven-plugin + 2.6.6 + + ${protobuf.version} + + + + + generate + + + + + + + org.projectlombok + lombok-maven-plugin + 1.18.20.0 + + + org.projectlombok + lombok + ${lombok.version} + + + + ${project.basedir}/src/main/java + ${delombok.output} + false + + + + generate-sources + + delombok + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.11.1 + + ${delombok.output} + false + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + bc + + + + + + + org.sonatype.central + central-publishing-maven-plugin + 0.6.0 + true + + central + uploaded + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + ${springboot.version} + + + + + \ No newline at end of file