Skip to content

BomContentTest disableMavenCentralCheck property - #2310

Merged
suztomo merged 3 commits into
GoogleCloudPlatform:masterfrom
suztomo:skip_maven_central_check_option
Jul 11, 2022
Merged

suztomo merged 3 commits into
GoogleCloudPlatform:masterfrom
suztomo:skip_maven_central_check_option

Conversation

@suztomo

@suztomo suztomo commented Jul 8, 2022 •

Copy link
Copy Markdown
Contributor

When some artifacts are not available in Maven Central yet, use "-DdisableMavenCentralCheck=true" system property when running BomContentTest.


// Sometimes the artifacts are not yet available in Maven Central and only available in local
// Maven repository. Use
boolean enableMavenCentralAvailabilityCheck =

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable name is the opposite of the property name, can we keep them consistent? Either disableMavenCentralCheck or enableMavenCentralAvailabilityCheck?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@suztomo
suztomo force-pushed the skip_maven_central_check_option branch from fd064cc to 850d19d Compare July 8, 2022 20:11
// Sometimes the artifacts are not yet available in Maven Central and only available in local
// Maven repository. Use this property in that case.
boolean disableMavenCentralCheck =
! "true".equals(System.getProperty("disableMavenCentralCheck"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also remove ! here as well.

@suztomo suztomo added the kokoro:run force run kokoro label Jul 8, 2022
@cloud-tools-for-java-team cloud-tools-for-java-team removed the kokoro:run force run kokoro label Jul 8, 2022
@suztomo
suztomo merged commit b84addb into GoogleCloudPlatform:master Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants