GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make project.properties path independent per API by shinfan · Pull Request #1863 · googleapis/google-cloud-java

Conversation

@shinfan

@shinfan shinfan commented Apr 5, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@shinfan
Make project.properties path be API independente
b72db11
- 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
@shinfan shinfan assigned bjwatson, garrettjonesgoogle and michaelbausor Apr 5, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 5, 2017
@shinfan shinfan mentioned this pull request Apr 5, 2017
Update properties file path in Java XSettings googleapis/gapic-generator#1166
Merged
@coveralls

coveralls commented Apr 5, 2017

Copy link
Copy Markdown

Coverage Status

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

garrettjonesgoogle
garrettjonesgoogle reviewed Apr 5, 2017
View reviewed changes
Comment thread google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java Outdated
}
String projectPropertiesPath = PROPERTIES_ROOT
+ artifactId + "/"
+ PROPERTIES_FILE;

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java Outdated
public static String getLibraryVersion(String artifactId) {
String version = getPomVersion(artifactId);
if (version == null) {
version = getManifestVersion();

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-core/src/main/java/com/google/cloud/HttpTransportOptions.java Outdated
*/
public HttpRequestInitializer getHttpRequestInitializer(ServiceOptions<?, ?> serviceOptions) {
public HttpRequestInitializer getHttpRequestInitializer(
ServiceOptions<?, ?> serviceOptions, final String artifactId) {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

shinfan added 2 commits April 6, 2017 13:09
@shinfan
update PR comments
3391879
@shinfan
restore settings
23287a8
garrettjonesgoogle
garrettjonesgoogle reviewed Apr 6, 2017
View reviewed changes
Comment thread google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java Outdated
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.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/spi/v2/LoggingSettings.java Outdated
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.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java Outdated
HttpTransport transport = transportOptions.getHttpTransportFactory().create();
HttpRequestInitializer initializer = transportOptions.getHttpRequestInitializer(options);
HttpRequestInitializer initializer =
transportOptions.getHttpRequestInitializer(options);

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-core/src/main/java/com/google/cloud/GrpcTransportOptions.java Outdated
public static ChannelProvider setUpChannelProvider(
InstantiatingChannelProvider.Builder providerBuilder, ServiceOptions<?, ?> serviceOptions) {
InstantiatingChannelProvider.Builder providerBuilder,
ServiceOptions<?, ?> serviceOptions) {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shinfan
Fix formatting. Revert files
6b9cb12
garrettjonesgoogle
garrettjonesgoogle reviewed Apr 6, 2017
View reviewed changes
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.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

shinfan added 5 commits April 6, 2017 14:27
@shinfan
Fix tests
dc88e2c
@shinfan
Merge branch 'master' of github.com:GoogleCloudPlatform/google-cloud-…
d40e142
…java
@shinfan
Change path
403009e
@shinfan
Update PR comments
c18c378
@shinfan
Remove eclipse auto format change
6a2c4c9
@shinfan

shinfan commented Apr 11, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@garrettjonesgoogle PTAL

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

garrettjonesgoogle
garrettjonesgoogle reviewed Apr 11, 2017
View reviewed changes
Comment thread google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java Outdated
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.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shinfan
Update PR comment
b36d408
@garrettjonesgoogle

garrettjonesgoogle commented Apr 12, 2017

Copy link
Copy Markdown
Contributor

LGTM if tests pass

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shinfan
shinfan merged commit 3f0f645 into googleapis:master Apr 12, 2017
@theacodes theacodes unassigned bjwatson and michaelbausor Sep 28, 2018
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
@renovate-bot
deps: update dependency com.google.cloud:google-cloud-spanner-bom to …
bcb40d5
…v6.83.0 (googleapis#1863)
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
@release-please
chore(main): release 2.25.1 (googleapis#1858)
7ee518e
🤖 I have created a release *beep* *boop*
---


## [2.25.1](https://togithub.com/googleapis/java-spanner-jdbc/compare/v2.25.0...v2.25.1) (2024-12-14)


### Dependencies

* Update dependency com.google.cloud:google-cloud-spanner-bom to v6.83.0 ([googleapis#1863](https://togithub.com/googleapis/java-spanner-jdbc/issues/1863)) ([bcb40d5](https://togithub.com/googleapis/java-spanner-jdbc/commit/bcb40d5aeade1df6722101055729905883537843))
* Update dependency com.google.cloud:sdk-platform-java-config to v3.41.0 ([googleapis#1857](https://togithub.com/googleapis/java-spanner-jdbc/issues/1857)) ([ca02222](https://togithub.com/googleapis/java-spanner-jdbc/commit/ca02222968e25c3a0cb42994cfe9fdbe35059947))
* Update dependency io.opentelemetry:opentelemetry-bom to v1.45.0 ([googleapis#1853](https://togithub.com/googleapis/java-spanner-jdbc/issues/1853)) ([7ec5cf2](https://togithub.com/googleapis/java-spanner-jdbc/commit/7ec5cf2d7695ce32f7e8fab9f2af5b48ee739f05))
* Update dependency org.springframework.data:spring-data-bom to v2024.1.1 ([googleapis#1859](https://togithub.com/googleapis/java-spanner-jdbc/issues/1859)) ([bb8af53](https://togithub.com/googleapis/java-spanner-jdbc/commit/bb8af533a5be747c507489eb5f4142d92aab9d73))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@renovate-bot @gcf-owl-bot
chore(deps): update dependency com.google.cloud:google-cloud-pubsub t…
fc475e5
…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
@renovate-bot @gcf-owl-bot
chore(deps): update dependency com.google.cloud:google-cloud-pubsub t…
26af0b0
…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
@release-please
chore(main): release 3.27.1-SNAPSHOT (#1863)
756fa1d
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
@steveniemitz
chore: Add code formatting instructions to CONTRIBUTING (googleapis#1863
142b80f
)

This adds instructions on how to run the code formatter to CONTRIBUTING.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@garrettjonesgoogle garrettjonesgoogle garrettjonesgoogle left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@garrettjonesgoogle garrettjonesgoogle

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@shinfan @coveralls @garrettjonesgoogle @bjwatson @googlebot @michaelbausor
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.