Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
releaseType: java-yoshi
bumpMinorPreMajor: true
13 changes: 0 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ nosetests.xml

# Mr Developer
.mr.developer.cfg

.metadata
.project
.pydevproject
*.iml
Expand All @@ -30,16 +28,5 @@ nosetests.xml
# Built documentation
docs/


# Wheel directory used in Travis builds.
gcloud-java-wheels/
src/test/resources/gcd-head.zip
src/test/resources/gcd-v1beta2-rev1-2.1.1.zip

# API key file containing value of GOOGLE_API_KEY for integration tests
api_key

# Python utilities
*.pyc
artman-genfiles
venv
5 changes: 3 additions & 2 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ echo ${JOB_TYPE}
mvn install -B -V \
-DskipTests=true \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dmaven.javadoc.skip=true \
-Dgcloud.download.skip=true \
-T 1C
Expand All @@ -38,7 +39,7 @@ fi

case ${JOB_TYPE} in
test)
mvn test -B -Dclirr.skip=true
mvn test -B -Dclirr.skip=true -Denforcer.skip=true
bash ${KOKORO_GFILE_DIR}/codecov.sh
bash .kokoro/coerce_logs.sh
;;
Expand All @@ -57,4 +58,4 @@ clirr)
;;
*)
;;
esac
esac
6 changes: 5 additions & 1 deletion .kokoro/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ echo $JOB_TYPE

export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"

mvn install -DskipTests=true -B -V
# this should run maven enforcer
mvn install -B -V \
-DskipTests=true \
-Dclirr.skip=true

mvn -B dependency:analyze -DfailOnWarning=true
3 changes: 0 additions & 3 deletions .kokoro/release/drop.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-logging/.kokoro/release/drop.sh"
}

# Download staging properties file.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-logging"
4 changes: 0 additions & 4 deletions .kokoro/release/promote.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-logging/.kokoro/release/promote.sh"
}

# Download staging properties file.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-logging"

2 changes: 1 addition & 1 deletion .kokoro/release/publish_javadoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ python3 -m pip install gcp-docuploader
# compile all packages
mvn clean install -B -DskipTests=true

NAME=logging
NAME=google-cloud-logging
VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)

# build the docs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Assert;
Expand All @@ -82,7 +83,7 @@ public static void startStaticServer() {
mockMetricsServiceV2 = new MockMetricsServiceV2();
serviceHelper =
new MockServiceHelper(
"in-process-1",
UUID.randomUUID().toString(),
Arrays.<MockGrpcService>asList(
mockConfigServiceV2, mockLoggingServiceV2, mockMetricsServiceV2));
serviceHelper.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Assert;
Expand All @@ -74,7 +75,7 @@ public static void startStaticServer() {
mockMetricsServiceV2 = new MockMetricsServiceV2();
serviceHelper =
new MockServiceHelper(
"in-process-1",
UUID.randomUUID().toString(),
Arrays.<MockGrpcService>asList(
mockConfigServiceV2, mockLoggingServiceV2, mockMetricsServiceV2));
serviceHelper.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Assert;
Expand All @@ -68,7 +69,7 @@ public static void startStaticServer() {
mockMetricsServiceV2 = new MockMetricsServiceV2();
serviceHelper =
new MockServiceHelper(
"in-process-1",
UUID.randomUUID().toString(),
Arrays.<MockGrpcService>asList(
mockConfigServiceV2, mockLoggingServiceV2, mockMetricsServiceV2));
serviceHelper.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.logging.v2;

import static io.grpc.MethodDescriptor.generateFullMethodName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.logging.v2;

import static io.grpc.MethodDescriptor.generateFullMethodName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.logging.v2;

import static io.grpc.MethodDescriptor.generateFullMethodName;
Expand Down
24 changes: 19 additions & 5 deletions synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
{
"updateTime": "2019-10-02T07:47:52.258007Z",
"updateTime": "2019-11-19T22:55:20.728150Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.37.1",
"dockerImage": "googleapis/artman@sha256:6068f67900a3f0bdece596b97bda8fc70406ca0e137a941f4c81d3217c994a80"
"version": "0.42.1",
"dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57"
}
},
{
"generator": {
"name": "artman",
"version": "0.42.1",
"dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "2123bcae97debe57e0870fca157cdf21e32bf3fb",
"internalRef": "272289410"
"sha": "5af83f47b9656261cafcf88b0b3334521ab266b3",
"internalRef": "281334391"
}
},
{
"template": {
"name": "java_library",
"origin": "synthtool.gcp",
"version": "2019.10.17"
}
}
],
Expand Down
19 changes: 4 additions & 15 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,12 @@
config_pattern = '/google/logging/artman_logging.yaml'

for version in versions:
library = gapic.java_library(
library = java.gapic_library(
service=service,
version=version,
config_path=config_pattern.format(version=version),
artman_output_name='')

package_name = f'com.google.cloud.{service}.{version}'
java.fix_proto_headers(library / f'proto-google-cloud-{service}-{version}')
java.fix_grpc_headers(library / f'grpc-google-cloud-{service}-{version}', package_name)

s.copy(library / f'gapic-google-cloud-{service}-{version}/src', f'google-cloud-{service}/src')
s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'grpc-google-cloud-{service}-{version}/src')
s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'proto-google-cloud-{service}-{version}/src')

java.format_code(f'google-cloud-{service}/src')
java.format_code(f'grpc-google-cloud-{service}-{version}/src')
java.format_code(f'proto-google-cloud-{service}-{version}/src')
config_pattern=config_pattern,
package_pattern='com.google.{service}.{version}'
)

common_templates = gcp.CommonTemplates()
templates = common_templates.java_library()
Expand Down