From e2f9cef4a5906f91465d14de7546a36b7f3892ea Mon Sep 17 00:00:00 2001 From: Zhentao Li Date: Wed, 17 Oct 2018 09:58:45 -0700 Subject: [PATCH 1/3] upgrade httpclient to 4.5.6 to address a potential security vulnerability --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 12f8f94..b44d143 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,7 @@ org.apache.httpcomponents httpclient - 4.1.1 + 4.5.6 From eedbad9e3c7b25b72ecc8b3df00a483605c60024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Kluz?= Date: Mon, 2 Aug 2021 16:52:06 +0200 Subject: [PATCH 2/3] basic cloud-build script --- .ci/cloudbuild.yaml | 20 ++++++++++++ pom.xml | 80 ++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 .ci/cloudbuild.yaml diff --git a/.ci/cloudbuild.yaml b/.ci/cloudbuild.yaml new file mode 100644 index 0000000..0b63254 --- /dev/null +++ b/.ci/cloudbuild.yaml @@ -0,0 +1,20 @@ +steps: + - id: build + name: maven:3.6.1-jdk-11-slim + entrypoint: mvn + args: ['clean', 'package', '--no-transfer-progress'] + - id: deploy + name: maven:3.6.1-jdk-11-slim + entrypoint: bash + args: + - -c + - | + ! [[ "$BRANCH_NAME" =~ ^(master)$ ]] && exit 0 + mvn deploy -Dmaven.test.skip=true --no-transfer-progress + waitFor: ['build'] + +options: + volumes: + - name: 'mvn-cache' + path: '/root/.m2' +tags: ['qa'] diff --git a/pom.xml b/pom.xml index b44d143..fb7183e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.openx OAuthDemo - 1.1.0 + 1.2.0 jar OAuthDemo @@ -14,6 +14,72 @@ UTF-8 + + + gar-profile + + true + + + artifactregistry://us-central1-maven.pkg.dev/ox-registry-prod + ox-snapshots + ox-releases + ox-snapshots + ox-releases + + + + artifactory-profile + + https://artifactory.prod.gcp.openx.org + artifactory/libs-snapshot-local + artifactory/libs-release-local + artifactory/libs-snapshot + artifactory/libs-release + + + + + + + releases + ${repo-url}/${publish-release-path} + + + snapshots + ${repo-url}/${publish-snapshot-path} + + + + + + libs-release + ${repo-url}/${release-path} + + + libs-snapshot + ${repo-url}/${snapshot-path} + + true + always + + + + + + + libs-release + ${repo-url}/${release-path} + + + libs-snapshot + ${repo-url}/${snapshot-path} + + true + + + + junit @@ -41,14 +107,20 @@ + + + com.google.cloud.artifactregistry + artifactregistry-maven-wagon + 2.1.1 + + maven-compiler-plugin + 3.8.1 - 1.6 - 1.6 + 8 - 2.3.2 maven-assembly-plugin From c9fac37821ea7e8adc7eb245ea57d4bae02d8f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Kluz?= Date: Mon, 2 Aug 2021 17:20:13 +0200 Subject: [PATCH 3/3] basic cloud-build script --- .ci/cloudbuild.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.ci/cloudbuild.yaml b/.ci/cloudbuild.yaml index 0b63254..9a41358 100644 --- a/.ci/cloudbuild.yaml +++ b/.ci/cloudbuild.yaml @@ -17,4 +17,3 @@ options: volumes: - name: 'mvn-cache' path: '/root/.m2' -tags: ['qa']