diff --git a/.ci/cloudbuild.yaml b/.ci/cloudbuild.yaml new file mode 100644 index 0000000..9a41358 --- /dev/null +++ b/.ci/cloudbuild.yaml @@ -0,0 +1,19 @@ +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' diff --git a/pom.xml b/pom.xml index 12f8f94..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 @@ -36,19 +102,25 @@ org.apache.httpcomponents httpclient - 4.1.1 + 4.5.6 + + + 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