mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 09:21:49 +02:00
Collect the set of dependencies using the gradle proxy and push to GCS using gcs_sync. TESTED: Verified that the script works against both unupdated and up-to-date dependency sets, verified that the proxy server is destroyed after completion. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=241529357
35 lines
977 B
Groovy
35 lines
977 B
Groovy
|
|
repositories {
|
|
if (project.ext.properties.mavenUrl == null) {
|
|
println "Plugins: Using Maven central..."
|
|
mavenCentral()
|
|
} else {
|
|
maven {
|
|
println "Plugins: Using repo ${mavenUrl}..."
|
|
url mavenUrl
|
|
}
|
|
}
|
|
}
|
|
|
|
apply from: '../dependencies.gradle'
|
|
|
|
|
|
dependencies {
|
|
def deps = dependencyMap
|
|
compile deps['com.google.guava:guava']
|
|
compile deps['com.google.auto.value:auto-value-annotations']
|
|
compile deps['com.google.cloud:google-cloud-storage']
|
|
compile deps['org.apache.commons:commons-text']
|
|
compile deps['com.google.auth:google-auth-library-credentials']
|
|
compile deps['com.google.template:soy']
|
|
annotationProcessor deps['com.google.auto.value:auto-value']
|
|
testCompile deps['com.google.truth:truth']
|
|
testCompile deps['com.google.truth.extensions:truth-java8-extension']
|
|
testCompile deps['org.mockito:mockito-core']
|
|
}
|
|
|
|
gradle.projectsEvaluated {
|
|
tasks.withType(JavaCompile) {
|
|
options.compilerArgs << "-Xlint:unchecked"
|
|
}
|
|
}
|