Skip to content

Commit 596c166

Browse files
authored
Merge of modules refactor into main (#530)
1 parent 5e79ce9 commit 596c166

16,912 files changed

Lines changed: 2049408 additions & 2048470 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ google-ads/*/buildNumber.properties
4848
# Gradle build output
4949
.gradle/
5050
buildSrc/.gradle/
51-
*/build
51+
*/build/
52+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright 2021 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* This is the build configuration for the google-ads-annotation-processing
17+
* subproject.
18+
*/
19+
20+
/** Defines a plugin that sets up a module to build generated stubs code. */
21+
plugins {
22+
id 'com.google.api-ads.java-conventions'
23+
}
24+
25+
dependencies {
26+
implementation project(":google-ads-stubs-lib")
27+
testFixturesImplementation 'org.slf4j:slf4j-api:1.7.25'
28+
testFixturesImplementation 'com.google.api:gax-grpc::testlib'
29+
testFixturesImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'
30+
testFixturesImplementation 'org.mockito:mockito-all:1.9.5'
31+
testFixturesImplementation 'junit:junit:4.13.1'
32+
}
33+
34+
// Required to expose gax-grpc::testlib.
35+
configurations.testImplementation.extendsFrom(configurations.testFixturesImplementation)
36+
// Required to expose GAX, gRPC etc.
37+
configurations.testFixturesImplementation.extendsFrom(configurations.implementation)
38+
39+
publishing {
40+
publications {
41+
maven(MavenPublication) { publication ->
42+
configurePom(publication,
43+
"Google Ads API client library for Java - " + project.name,
44+
"Stubs for GAAPI version " + project.name)
45+
}
46+
}
47+
}

buildSrc/src/main/groovy/com.google.api-ads.java-conventions.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import java.util.regex.Matcher
2525
plugins {
2626
id 'java-library'
2727
id 'maven-publish'
28+
id 'java-test-fixtures'
2829
id 'signing'
2930
}
3031

@@ -76,6 +77,9 @@ publishing {
7677
}
7778
}
7879

80+
components.java.withVariantsFromConfiguration(configurations.testFixturesApiElements) { skip() }
81+
components.java.withVariantsFromConfiguration(configurations.testFixturesRuntimeElements) { skip() }
82+
7983
// Provide a helpful error message for missing sonatype credentials.
8084
tasks.findAll {
8185
if (it.name.matches("publish.+ToSonatypeRepository")) {
@@ -154,9 +158,10 @@ dependencies {
154158
api 'io.grpc:grpc-stub'
155159
api 'io.grpc:grpc-protobuf'
156160
api 'com.google.auth:google-auth-library-oauth2-http'
157-
implementation platform('com.google.cloud:google-cloud-shared-dependencies:2.4.0')
161+
api platform('com.google.cloud:google-cloud-shared-dependencies:2.4.0')
158162
implementation 'com.google.guava:guava:30.0-android'
159163
implementation 'com.google.auto.service:auto-service:1.0-rc2'
164+
implementation 'javax.annotation:javax.annotation-api'
160165
annotationProcessor 'com.google.auto.service:auto-service:1.0-rc2'
161166
testImplementation 'junit:junit:4.13.1'
162167
}

google-ads-annotation-processing/build.gradle

Lines changed: 0 additions & 40 deletions
This file was deleted.

google-ads-annotation-processing/src/main/java/com/google/ads/googleads/annotations/impl/GoogleAdsCatalogAnnotationProcessor.java

Lines changed: 0 additions & 259 deletions
This file was deleted.

google-ads-annotation-processing/src/main/java/com/google/ads/googleads/annotations/impl/generators/Generator.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)