Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Make project.properties path independent per API#1863

Merged
shinfan merged 10 commits into
googleapis:mastergoogleapis/google-cloud-java:masterfrom
shinfan:mastershinfan/gcloud-java:masterCopy head branch name to clipboard
Apr 12, 2017
Merged

Make project.properties path independent per API#1863
shinfan merged 10 commits into
googleapis:mastergoogleapis/google-cloud-java:masterfrom
shinfan:mastershinfan/gcloud-java:masterCopy head branch name to clipboard

Conversation

@shinfan

@shinfan shinfan commented Apr 5, 2017

Copy link
Copy Markdown
Contributor
  • Previously we generate all project.properties files into root which is
    incorrect
  • Now the caller API client needs to pass in package path to retrieve the
    corresponding version
  • Create project.properties for Veneer-only clients as well

The new properties file will be stored at:
{ROOT}/com/google/cloud/{api}/project.properties

Follow-up: Update Gapic clients

- Previously we generate all project.properties files into root which is
incorrect
- Now the caller API client needs to pass in artifact ID to retrieve the
corresponding version
- Create project.properties for Veneer-only clients as well
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 5, 2017
@coveralls

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling b72db11 on shinfan:master into ** on GoogleCloudPlatform:master**.

}
String projectPropertiesPath = PROPERTIES_ROOT
+ artifactId + "/"
+ PROPERTIES_FILE;

This comment was marked as spam.

public static String getLibraryVersion(String artifactId) {
String version = getPomVersion(artifactId);
if (version == null) {
version = getManifestVersion();

This comment was marked as spam.

*/
public HttpRequestInitializer getHttpRequestInitializer(ServiceOptions<?, ?> serviceOptions) {
public HttpRequestInitializer getHttpRequestInitializer(
ServiceOptions<?, ?> serviceOptions, final String artifactId) {

This comment was marked as spam.

Attributes manifestAttributes = manifest.getMainAttributes();
String artifactId = manifestAttributes.getValue(MANIFEST_ARTIFACT_ID_KEY);
if (artifactId != null && artifactId.equals(ARTIFACT_ID)) {
String currentArtifactId = manifestAttributes.getValue(MANIFEST_ARTIFACT_ID_KEY);

This comment was marked as spam.

This comment was marked as spam.

import com.google.api.gax.grpc.UnaryCallable;
import com.google.cloud.logging.spi.v2.PagedResponseWrappers.ListLogEntriesPagedResponse;
import com.google.cloud.logging.spi.v2.PagedResponseWrappers.ListLogsPagedResponse;
import com.google.cloud.logging.spi.v2.PagedResponseWrappers.ListMonitoredResourceDescriptorsPagedResponse;

This comment was marked as spam.

This comment was marked as spam.

HttpTransport transport = transportOptions.getHttpTransportFactory().create();
HttpRequestInitializer initializer = transportOptions.getHttpRequestInitializer(options);
HttpRequestInitializer initializer =
transportOptions.getHttpRequestInitializer(options);

This comment was marked as spam.

This comment was marked as spam.

public static ChannelProvider setUpChannelProvider(
InstantiatingChannelProvider.Builder providerBuilder, ServiceOptions<?, ?> serviceOptions) {
InstantiatingChannelProvider.Builder providerBuilder,
ServiceOptions<?, ?> serviceOptions) {

This comment was marked as spam.

This comment was marked as spam.

Comment thread google-cloud-language/pom.xml Outdated
</goals>
<configuration>
<outputFile>${project.build.outputDirectory}/project.properties</outputFile>
<outputFile>${project.build.outputDirectory}/properties/${project.artifactId}/project.properties</outputFile>

This comment was marked as spam.

This comment was marked as spam.

@shinfan

shinfan commented Apr 11, 2017

Copy link
Copy Markdown
Contributor Author

@garrettjonesgoogle PTAL

As discussed offline, I have modified the properties file path to be /{package_path}/project.properties

private String getPackagePath() {
List<String> fullClassName = Splitter.on(".").splitToList(this.getClass().getCanonicalName());
if (fullClassName.size() > 2) {
return String.join("/", fullClassName.subList(0, fullClassName.size() - 1));

This comment was marked as spam.

This comment was marked as spam.

@garrettjonesgoogle

Copy link
Copy Markdown
Contributor

LGTM if tests pass

@shinfan

shinfan commented Apr 12, 2017

Copy link
Copy Markdown
Contributor Author

3 of 4 tests passed and 1 failed for timeout (most likely due to the flakiness of pubsub) Going to merge

@shinfan shinfan merged commit 3f0f645 into googleapis:master Apr 12, 2017
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
…o v1.126.0 (#1863)

* chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request May 1, 2026
…o v1.126.0 (#1863)

* chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request May 2, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.