mirror of
https://github.com/google/nomulus.git
synced 2025-07-23 19:20:44 +02:00
The API provided by the GAE SDK will not be available outside GAE runtime. This presents a problem when we migrate off of GAE. More pressingly, the RDE pipeline migration to Beam requires that we write to GCS on GCE. Previously we were able to sidestep the issue by delegating the writes to FileIO provided by Beam, which knows how to write to GCS. However the RDE pipeline cannot use FileIO directly as it needs to write to multiple files in one go and explicit use of GCS API is needed. An unfortunate side effect of the API migration is that the new testing library contains a bug which makes serializing GcsUtils impossible. It is fixed upstream but not released yet. The fix has been backported for the time being. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1228) <!-- Reviewable:end -->
93 lines
3.7 KiB
Groovy
93 lines
3.7 KiB
Groovy
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
|
|
//
|
|
// Licensed 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.
|
|
|
|
createUberJar('deployJar', 'proxy_server', 'google.registry.proxy.ProxyServer')
|
|
|
|
task buildProxyImage(dependsOn: deployJar, type: Exec) {
|
|
commandLine 'docker', 'build', '-t', 'proxy', '.'
|
|
}
|
|
|
|
task deployProxy(dependsOn: buildProxyImage) {
|
|
configure verifyDeploymentConfig
|
|
doLast {
|
|
exec {
|
|
commandLine 'docker', 'tag', 'proxy', "gcr.io/${rootProject.gcpProject}/proxy"
|
|
}
|
|
exec {
|
|
commandLine 'docker', 'push', "gcr.io/${rootProject.gcpProject}/proxy"
|
|
}
|
|
exec {
|
|
commandLine './deploy-proxy-for-env.sh', "${rootProject.environment}"
|
|
}
|
|
}
|
|
}
|
|
|
|
project.build.dependsOn buildProxyImage
|
|
|
|
dependencies {
|
|
def deps = rootProject.dependencyMap
|
|
|
|
compile deps['com.beust:jcommander']
|
|
compile deps['com.google.api-client:google-api-client']
|
|
compile deps['com.google.apis:google-api-services-cloudkms']
|
|
compile deps['com.google.apis:google-api-services-monitoring']
|
|
compile deps['com.google.auth:google-auth-library-credentials']
|
|
compile deps['com.google.auth:google-auth-library-oauth2-http']
|
|
compile deps['com.google.auto.value:auto-value-annotations']
|
|
compile deps['com.google.cloud:google-cloud-core']
|
|
compile deps['com.google.cloud:google-cloud-core-http']
|
|
compile deps['com.google.cloud:google-cloud-storage']
|
|
compile deps['com.google.code.findbugs:jsr305']
|
|
compile deps['com.google.code.gson:gson']
|
|
compile deps['com.google.dagger:dagger']
|
|
compile deps['com.google.flogger:flogger']
|
|
compile deps['com.google.guava:guava']
|
|
compile deps['com.google.http-client:google-http-client']
|
|
compile deps['com.google.monitoring-client:metrics']
|
|
compile deps['com.google.monitoring-client:stackdriver']
|
|
compile deps['io.netty:netty-buffer']
|
|
compile deps['io.netty:netty-codec-http']
|
|
compile deps['io.netty:netty-codec']
|
|
compile deps['io.netty:netty-common']
|
|
compile deps['io.netty:netty-handler']
|
|
compile deps['io.netty:netty-transport']
|
|
compile deps['javax.inject:javax.inject']
|
|
compile deps['joda-time:joda-time']
|
|
compile deps['org.bouncycastle:bcpkix-jdk15on']
|
|
compile deps['org.bouncycastle:bcprov-jdk15on']
|
|
compile project(':common')
|
|
compile project(':networking')
|
|
compile project(':util')
|
|
|
|
runtime deps['com.google.flogger:flogger-system-backend']
|
|
runtime deps['com.google.auto.value:auto-value']
|
|
runtime deps['io.netty:netty-tcnative-boringssl-static']
|
|
|
|
testCompile deps['com.google.monitoring-client:contrib']
|
|
testCompile deps['com.google.truth:truth']
|
|
testCompile deps['org.yaml:snakeyaml']
|
|
testCompile deps['org.junit.jupiter:junit-jupiter-api']
|
|
testCompile deps['org.junit.jupiter:junit-jupiter-engine']
|
|
testCompile deps['org.junit.jupiter:junit-jupiter-params']
|
|
testCompile deps['org.mockito:mockito-core']
|
|
testCompile project(path: ':common', configuration: 'testing')
|
|
testCompile project(path: ':networking', configuration: 'testRuntime')
|
|
|
|
// Include auto-value in compile until nebula-lint understands
|
|
// annotationProcessor
|
|
annotationProcessor deps['com.google.auto.value:auto-value']
|
|
testAnnotationProcessor deps['com.google.auto.value:auto-value']
|
|
annotationProcessor deps['com.google.dagger:dagger-compiler']
|
|
testAnnotationProcessor deps['com.google.dagger:dagger-compiler']
|
|
}
|