From 879c4cd26b33f99a202d4968e6d8305391f0db93 Mon Sep 17 00:00:00 2001 From: Baikov Dmitrii <44803026+D-Baykov@users.noreply.github.com> Date: Wed, 26 Jan 2022 03:02:01 -0800 Subject: [PATCH] TD-45: to dev.vality (#5) --- .github/workflows/build.yml | 10 +++++++++ .github/workflows/deploy.yml | 16 +++++++++++++++ .gitmodules | 4 ---- CODEOWNERS | 1 - Jenkinsfile | 40 ------------------------------------ build_utils | 1 - openapi/docs/api.md | 2 +- openapi/openapi.yaml | 12 +++++------ package-lock.json | 4 ++-- package.json | 2 +- pom.xml | 10 ++++----- renovate.json | 18 ++++++++++++++++ 12 files changed, 59 insertions(+), 61 deletions(-) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/deploy.yml delete mode 100644 .gitmodules delete mode 100644 CODEOWNERS delete mode 100644 Jenkinsfile delete mode 160000 build_utils create mode 100644 renovate.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7381159 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,10 @@ +name: Maven Build Artifact + +on: + pull_request: + branches: + - '*' + +jobs: + build: + uses: valitydev/base-workflow/.github/workflows/maven-library-build.yml@v1 \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..df9c2f4 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,16 @@ +name: Maven Deploy Artifact + +on: + push: + branches: + - 'master' + - 'main' + +jobs: + deploy: + uses: valitydev/base-workflow/.github/workflows/maven-library-deploy.yml@v1 + 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 }} \ No newline at end of file diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index ca5a761..0000000 --- a/.gitmodules +++ /dev/null @@ -1,4 +0,0 @@ -[submodule "build_utils"] - path = build_utils - url = git@github.com:rbkmoney/build_utils.git - branch = master diff --git a/CODEOWNERS b/CODEOWNERS deleted file mode 100644 index 8a63afa..0000000 --- a/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @rbkmoney/java-team diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 22cb462..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,40 +0,0 @@ -#!groovy -// -*- mode: groovy -*- - -build('swag-fraudbusters', 'docker-host') { - checkoutRepo() - loadBuildUtils() - - def pipeDefault - def gitUtils - runStage('load pipeline') { - env.JENKINS_LIB = "build_utils/jenkins_lib" - pipeDefault = load("${env.JENKINS_LIB}/pipeDefault.groovy") - gitUtils = load("${env.JENKINS_LIB}/gitUtils.groovy") - } - - pipeDefault() { - runStage('init') { - withGithubSshCredentials { - sh 'make wc_init' - } - } - - runStage('build') { - sh 'make wc_build' - } - - // Java - runStage('Build client & server') { - withCredentials([[$class: 'FileBinding', credentialsId: 'java-maven-settings.xml', variable: 'SETTINGS_XML']]) { - if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME.startsWith('epic/')) { - sh 'make SETTINGS_XML=${SETTINGS_XML} BRANCH_NAME=${BRANCH_NAME} java.swag.deploy_client' - sh 'make SETTINGS_XML=${SETTINGS_XML} BRANCH_NAME=${BRANCH_NAME} java.swag.deploy_server' - } else { - sh 'make SETTINGS_XML=${SETTINGS_XML} BRANCH_NAME=${BRANCH_NAME} java.swag.compile_client' - sh 'make SETTINGS_XML=${SETTINGS_XML} BRANCH_NAME=${BRANCH_NAME} java.swag.compile_server' - } - } - } - } -} diff --git a/build_utils b/build_utils deleted file mode 160000 index e131872..0000000 --- a/build_utils +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e1318727d4d0c3e48f5122bf3197158b6695f50e diff --git a/openapi/docs/api.md b/openapi/docs/api.md index 49f7df4..9e4b355 100644 --- a/openapi/docs/api.md +++ b/openapi/docs/api.md @@ -1,4 +1,4 @@ -RBKmoney Fraudbusters proxy inspector API является интерфейсом для +Vality Fraudbusters proxy inspector API является интерфейсом для сервиса поиска мошеннических операций. Мы предоставляем REST API поверх HTTP-протокола, схема которого описывается в diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index dbd9e1c..d4dcdd1 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -1,14 +1,14 @@ openapi: 3.0.3 info: version: 1.0.0 - title: RBKmoney Fraudbusters API + title: Vality Fraudbusters API description: $ref: './docs/api.md' - termsOfService: 'https://rbk.money/' + termsOfService: 'https://vality.dev/' contact: - name: RBKmoney Support Team - email: support@rbk.money - url: 'https://developer.rbk.money' + name: Vality Support Team + email: support@vality.dev + url: 'https://developer.vality.dev' license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html @@ -37,4 +37,4 @@ paths: /fraudbusters/withdrawals: $ref: ./paths/withdrawals.yaml servers: - - url: 'https://api.rbk.money/org/v1' + - url: 'https://api.vality.dev/org/v1' diff --git a/package-lock.json b/package-lock.json index e59418c..24328de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "rbkmoney-fraudbusters-api", + "name": "vality-fraudbusters-api", "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "rbkmoney-fraudbusters-api", + "name": "vality-fraudbusters-api", "version": "1.0.0", "dependencies": { "@redocly/openapi-cli": "^1.0.0-beta.9", diff --git a/package.json b/package.json index 9388118..7dd99e9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "rbkmoney-fraudbusters-api", + "name": "vality-fraudbusters-api", "version": "1.0.0", "dependencies": { "@redocly/openapi-cli": "^1.0.0-beta.9", diff --git a/pom.xml b/pom.xml index 2ece211..1b9836f 100644 --- a/pom.xml +++ b/pom.xml @@ -5,13 +5,13 @@ 4.0.0 - com.rbkmoney - parent - 1.0.0 + dev.vality + library-parent-pom + 1.0.2 swag-fraudbusters - 1.0.1-SNAPSHOT + 1.0.0-SNAPSHOT jar Messages @@ -19,7 +19,7 @@ - com.rbkmoney.swag.fraudbusters + dev.vality.swag.fraudbusters UTF-8 1.0.0 11 diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..a125a31 --- /dev/null +++ b/renovate.json @@ -0,0 +1,18 @@ +{ + "extends": [ + "config:base" + ], + "packageRules": [ + { + "matchPackagePatterns": [ + "*" + ], + "matchUpdateTypes": [ + "minor", + "patch" + ], + "groupName": "all non-major dependencies", + "groupSlug": "all-minor-patch" + } + ] +}