From 8e99d11ede721ad2a9acc5fb8f425e4026e4979c Mon Sep 17 00:00:00 2001 From: Anatoly Karlov Date: Thu, 11 Jul 2024 17:59:54 +0700 Subject: [PATCH] init structure --- .github/workflows/build.yml | 10 +++ .github/workflows/deploy.yml | 17 +++++ .gitignore | 79 +++++++++++++++++++++ README.md | 2 +- pom.xml | 124 +++++++++++++++++++++++++++++++++ proto/provider-disputes.thrift | 2 + 6 files changed, 233 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/deploy.yml create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 proto/provider-disputes.thrift diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2f1fe4e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,10 @@ +name: "Java: Build" + +on: + pull_request: + branches: + - "*" + +jobs: + java-build: + uses: valitydev/java-workflow/.github/workflows/maven-thrift-build.yml@v3 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..e01555c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,17 @@ +name: "Java: Deploy" + +on: + push: + branches: + - "master" + - "main" + +jobs: + deploy: + uses: valitydev/java-workflow/.github/workflows/maven-thrift-deploy.yml@v3 + secrets: + server-username: ${{ secrets.OSSRH_USERNAME }} + server-password: ${{ secrets.OSSRH_TOKEN }} + deploy-secret-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} + deploy-secret-key-password: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} + mm-webhook-url: ${{ secrets.MATTERMOST_WEBHOOK_URL }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c660485 --- /dev/null +++ b/.gitignore @@ -0,0 +1,79 @@ +# Created by .ignore support plugin (hsz.mobi) +.eunit +deps +*.o +*.beam +*.plt +erl_crash.dump +ebin/*.beam +rel/example_project +.concrete/DEV_MODE +.rebar +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff: +.idea/ +.idea/workspace.xml +.idea/tasks.xml +.idea/dictionaries +.idea/vcs.xml +.idea/jsLibraryMappings.xml +.DS_Store + +# Sensitive or high-churn files: +.idea/dataSources.ids +.idea/dataSources.xml +.idea/dataSources.local.xml +.idea/sqlDataSources.xml +.idea/dynamic.xml +.idea/uiDesigner.xml + +# Gradle: +.idea/gradle.xml +.idea/libraries + +# Mongo Explorer plugin: +.idea/mongoSettings.xml + +*.iws +*.ipr +*.iml + + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties +*.class + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +env.list diff --git a/README.md b/README.md index 30a92e3..2b2b398 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# provider-disputes-proto \ No newline at end of file +# provider-disputes-proto diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..1012a20 --- /dev/null +++ b/pom.xml @@ -0,0 +1,124 @@ + + + 4.0.0 + + + dev.vality + library-parent-pom + 2.0.2 + + + provider-disputes-proto + ${revision} + jar + + provider-disputes-proto + Generates jar artifact containing compiled thrift classes based on generated thrift IDL files + + https://github.com/valitydev/provider-disputes-proto.git + + + + The Apache Software License, Version 2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + + Vality + https://github.com/valitydev + + + + + scm:git:git://github.com/valitydev/provider-disputes-proto.git + scm:git:ssh://github.com/valitydev/provider-disputes-proto.git + https://github.com/valitydev/provider-disputes-proto/tree/master + + + + UTF-8 + SNAPSHOT + + + + + dev.vality.woody + woody-thrift + 2.0.1 + provided + + + jakarta.annotation + jakarta.annotation-api + 3.0.0 + + + dev.vality + damsel + 1.639-4856124 + provided + + + + + ${project.artifactId} + + + ${project.basedir}/proto + ${project.build.outputDirectory}/proto + + *.thrift + + false + + + + + org.apache.thrift + thrift-maven-plugin + 0.10.0 + + java:fullcamel,jakarta_annotations,option_type=jdk8 + ${project.basedir}/proto + ${path_to_thrift} + + + + thrift-sources + generate-sources + + compile + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.6.0 + + + package + + shade + + + + + dev.vality.disputes + dev.vality.disputes.v${commit.number} + + + true + v${commit.number} + + + + + + + diff --git a/proto/provider-disputes.thrift b/proto/provider-disputes.thrift new file mode 100644 index 0000000..5a1db6a --- /dev/null +++ b/proto/provider-disputes.thrift @@ -0,0 +1,2 @@ +namespace java dev.vality.disputes +include "proto/domain.thrift"