mirror of
https://github.com/google/nomulus.git
synced 2025-07-20 01:35:59 +02:00
Properly label compile-only dependencies in Gradle script
Dependencies labeled as 'neverlink' in bazel should have two labels in Gradle: compileOnly and testCompileOnly/testImplementation. This excludes the dependency from deployment archive. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218394354
This commit is contained in:
parent
57d95d4bec
commit
6f155ed3d2
1 changed files with 20 additions and 12 deletions
|
@ -26,6 +26,11 @@ subprojects { subproject ->
|
|||
apply plugin: 'java'
|
||||
apply plugin: 'java-library'
|
||||
|
||||
// Relevant canned dependency labels:
|
||||
// - implementation: Dependencies to be included in release distribution.
|
||||
// - compileOnly: Dependencies used at compile time only for production code. They will not be
|
||||
// included in release.
|
||||
// - testImplementation: Dependencies needed for testing only.
|
||||
dependencies {
|
||||
implementation 'com.beust:jcommander:1.48'
|
||||
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.5'
|
||||
|
@ -36,7 +41,6 @@ subprojects { subproject ->
|
|||
implementation 'com.google.api-client:google-api-client-jackson2:1.20.0'
|
||||
implementation 'com.google.monitoring-client:metrics:1.0.4'
|
||||
implementation 'com.google.monitoring-client:stackdriver:1.0.4'
|
||||
implementation 'com.google.monitoring-client:contrib:1.0.4'
|
||||
implementation 'com.google.api-client:google-api-client-java6:1.20.0'
|
||||
implementation 'com.google.api-client:google-api-client-servlet:1.22.0'
|
||||
implementation 'com.google.apis:google-api-services-admin-directory:directory_v1-rev72-1.22.0'
|
||||
|
@ -51,10 +55,11 @@ subprojects { subproject ->
|
|||
implementation 'com.google.apis:google-api-services-monitoring:v3-rev11-1.22.0'
|
||||
implementation 'com.google.apis:google-api-services-sheets:v4-rev483-1.22.0'
|
||||
implementation 'com.google.apis:google-api-services-storage:v1-rev86-1.22.0'
|
||||
// TODO(b/71631624): change appengine:appengine-api-1.0-sdk to testCompileOnly after
|
||||
// BillingEmailUtilsTest.java is fixed.
|
||||
implementation 'com.google.appengine:appengine-api-1.0-sdk:1.9.48'
|
||||
implementation 'com.google.appengine:appengine-api-labs:1.9.48'
|
||||
implementation 'com.google.appengine:appengine-api-stubs:1.9.48'
|
||||
implementation 'com.google.appengine:appengine-remote-api:1.9.48'
|
||||
implementation 'com.google.appengine.tools:appengine-gcs-client:0.6'
|
||||
implementation 'com.google.appengine.tools:appengine-mapreduce:0.8.5'
|
||||
implementation 'com.google.appengine.tools:appengine-pipeline:0.2.13'
|
||||
|
@ -63,14 +68,11 @@ subprojects { subproject ->
|
|||
implementation 'com.google.auth:google-auth-library-oauth2-http:0.7.1'
|
||||
implementation 'com.google.auto:auto-common:0.8'
|
||||
implementation 'com.google.auto.factory:auto-factory:1.0-beta3'
|
||||
implementation 'com.google.auto.service:auto-service:1.0-rc4'
|
||||
implementation 'com.google.auto.value:auto-value-annotations:1.6.2'
|
||||
annotationProcessor 'com.google.auto.value:auto-value:1.6.2'
|
||||
implementation 'com.google.cloud.bigdataoss:gcsio:1.4.5'
|
||||
implementation 'com.google.cloud.bigdataoss:util:1.4.5'
|
||||
implementation 'com.google.code.findbugs:jsr305:3.0.2'
|
||||
implementation 'com.google.dagger:dagger:2.15'
|
||||
annotationProcessor 'com.google.dagger:dagger-compiler:2.15'
|
||||
implementation 'com.google.dagger:dagger-producers:2.15'
|
||||
implementation 'com.google.errorprone:error_prone_annotations:2.1.3'
|
||||
implementation 'com.google.errorprone:javac-shaded:9-dev-r4023-3'
|
||||
|
@ -89,7 +91,7 @@ subprojects { subproject ->
|
|||
implementation 'com.google.oauth-client:google-oauth-client-servlet:1.22.0'
|
||||
implementation 'com.google.protobuf:protobuf-java:2.6.0'
|
||||
implementation 'com.google.re2j:re2j:1.1'
|
||||
implementation 'com.google.template:soy:2018-03-14' // Bazel version (2017-06-22) not working
|
||||
implementation 'com.google.template:soy:2018-03-14'
|
||||
implementation 'com.googlecode.charts4j:charts4j:1.3'
|
||||
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
|
||||
implementation 'com.ibm.icu:icu4j:57.1'
|
||||
|
@ -142,33 +144,39 @@ subprojects { subproject ->
|
|||
implementation 'org.bouncycastle:bcprov-jdk15on:1.52'
|
||||
implementation 'org.codehaus.jackson:jackson-core-asl:1.9.13'
|
||||
implementation 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
|
||||
implementation 'org.hamcrest:hamcrest-all:1.3'
|
||||
implementation 'org.hamcrest:hamcrest-core:1.3'
|
||||
implementation 'org.hamcrest:hamcrest-library:1.3'
|
||||
implementation 'org.joda:joda-money:0.10.0'
|
||||
implementation 'org.json:json:20160810'
|
||||
implementation 'org.khronos:opengl-api:gl1.1-android-2.1_r1'
|
||||
implementation 'org.mortbay.jetty:jetty:6.1.26'
|
||||
implementation 'org.mortbay.jetty:servlet-api:2.5-20081211'
|
||||
implementation 'org.mortbay.jetty:jetty-util:6.1.26'
|
||||
implementation 'org.osgi:org.osgi.core:4.3.0'
|
||||
implementation 'org.slf4j:slf4j-api:1.7.16'
|
||||
implementation 'org.tukaani:xz:1.5'
|
||||
implementation 'org.xerial.snappy:snappy-java:1.1.4-M3'
|
||||
implementation 'org.yaml:snakeyaml:1.17'
|
||||
implementation 'xerces:xmlParserAPIs:2.6.2'
|
||||
implementation 'xpp3:xpp3:1.1.4c'
|
||||
|
||||
// Custom-built objectify jar at commit ecd5165, included in Nomulus release.
|
||||
implementation name: 'objectify-4.1.3'
|
||||
|
||||
// AnnotationProcessors must be declared again for tests.
|
||||
compileOnly 'com.google.appengine:appengine-remote-api:1.9.48' // Also testImplementation
|
||||
compileOnly 'com.google.auto.service:auto-service:1.0-rc4'
|
||||
compileOnly 'org.osgi:org.osgi.core:4.3.0'
|
||||
|
||||
annotationProcessor 'com.google.auto.value:auto-value:1.6.2'
|
||||
testAnnotationProcessor 'com.google.auto.value:auto-value:1.6.2'
|
||||
annotationProcessor 'com.google.dagger:dagger-compiler:2.15'
|
||||
testAnnotationProcessor 'com.google.dagger:dagger-compiler:2.15'
|
||||
|
||||
testImplementation 'com.google.appengine:appengine-remote-api:1.9.48' // Also compileOnly
|
||||
testImplementation 'com.google.appengine:appengine-testing:1.9.58'
|
||||
testImplementation 'com.google.guava:guava-testlib:25.0-jre'
|
||||
testImplementation 'com.google.monitoring-client:contrib:1.0.4'
|
||||
testImplementation 'com.google.truth:truth:0.42'
|
||||
testImplementation 'com.google.truth.extensions:truth-java8-extension:0.39'
|
||||
testImplementation 'org.hamcrest:hamcrest-all:1.3'
|
||||
testImplementation 'org.hamcrest:hamcrest-core:1.3'
|
||||
testImplementation 'org.hamcrest:hamcrest-library:1.3'
|
||||
testImplementation 'junit:junit:4.12'
|
||||
testImplementation 'org.mockito:mockito-all:1.9.5'
|
||||
testImplementation 'org.slf4j:slf4j-simple:1.7.16' // Not needed by Bazel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue