Skip to content

Fix Gradle deprecations#3892

Merged
mpeddada1 merged 2 commits intoGoogleContainerTools:masterfrom
Sineaggi:fix-gradle-deprecations
Jul 11, 2023
Merged

Fix Gradle deprecations#3892
mpeddada1 merged 2 commits intoGoogleContainerTools:masterfrom
Sineaggi:fix-gradle-deprecations

Conversation

@Sineaggi
Copy link
Contributor

  • Gradle has deprecated JavaPluginConvention in favor of JavaPluginExtension
  • The file com.google.cloud.tools.jib.properties is already being generated by the gradle plugin
  • The compile configuration has been replaced by implementation

@Sineaggi Sineaggi force-pushed the fix-gradle-deprecations branch 5 times, most recently from 6070f10 to 77942a5 Compare December 13, 2022 00:33
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

65.0% 65.0% Coverage
0.0% 0.0% Duplication

@Sineaggi Sineaggi force-pushed the fix-gradle-deprecations branch from 53177db to 7223718 Compare January 20, 2023 16:27
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

65.0% 65.0% Coverage
0.0% 0.0% Duplication

@emmileaf
Copy link
Contributor

emmileaf commented Feb 8, 2023

@Sineaggi Apologies for the number of PRs that fell off our radar - we will take some time to review them and appreciate your patience!

@Sineaggi
Copy link
Contributor Author

Sineaggi commented Feb 8, 2023

@emmileaf Take your time, and thanks for reaching out!

Copy link
Contributor

@emmileaf emmileaf left a comment

Choose a reason for hiding this comment

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

@Sineaggi Thanks for helping to address these deprecation warnings! I’ve left two quick inline comments below.

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.3-bin.zip
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we able to exclude these gradle wrapper updates and keep the existing version, or is it tied to another aspect of this PR that I am missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, it's just bumping gradle to the latest patch version is one of the first things I do when working on deprecation warnings.

Copy link
Contributor

Choose a reason for hiding this comment

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

Gotcha. If it's not a blocker, could you exclude the files related to gradle build version upgrade, and keep this PR just for the deprecation-related fixes? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Excluded


configurations {
integrationTestImplementation.extendsFrom testImplementation
integrationTestImplementation.setCanBeResolved(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I’m curious to what IDE you are using to develop with? Digging back in history a bit (#2961, #2375), I think some of this integrationTestImplementation setup may have been added to work around some Eclipse-specific issues, but I don’t personally use Eclipse for development and don’t have a quick way to confirm. It would be great to know if they no longer causing problems though!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I use Intellij, which didn't need this. If it's required for Eclipse, keeping it seems reasonable.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's keep it in if it doesn't hurt.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good

@emmileaf emmileaf requested a review from mpeddada1 February 11, 2023 01:41
@Sineaggi Sineaggi force-pushed the fix-gradle-deprecations branch from 7223718 to dfc477e Compare April 28, 2023 17:06
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

65.0% 65.0% Coverage
0.0% 0.0% Duplication

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 7, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

65.0% 65.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@mpeddada1
Copy link
Contributor

Thank you for your contribution @Sineaggi!

wwadge pushed a commit to wwadge/jib that referenced this pull request Jul 11, 2023
Co-authored-by: Clayton Walker <cwalker@sofi.org>
Co-authored-by: Emily Wang <emmwang@google.com>
wwadge pushed a commit to wwadge/jib that referenced this pull request Jul 11, 2023
Co-authored-by: Clayton Walker <cwalker@sofi.org>
Co-authored-by: Emily Wang <emmwang@google.com>

# Conflicts:
#	build.gradle
#	jib-cli/build.gradle
#	jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/GradleProjectProperties.java
#	jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/JibPlugin.java
#	jib-gradle-plugin/src/test/java/com/google/cloud/tools/jib/gradle/GradleProjectPropertiesTest.java
wwadge pushed a commit to wwadge/jib that referenced this pull request Jul 11, 2023
Co-authored-by: Clayton Walker <cwalker@sofi.org>
Co-authored-by: Emily Wang <emmwang@google.com>
wwadge added a commit to wwadge/jib that referenced this pull request Jul 11, 2023
Co-authored-by: Clayton Walker <cwalker@sofi.org>
Co-authored-by: Emily Wang <emmwang@google.com>
wwadge added a commit to wwadge/jib that referenced this pull request Jul 11, 2023
Co-authored-by: Clayton Walker <cwalker@sofi.org>
Co-authored-by: Emily Wang <emmwang@google.com>
wwadge added a commit to wwadge/jib that referenced this pull request Jul 20, 2023
Co-authored-by: Clayton Walker <cwalker@sofi.org>
Co-authored-by: Emily Wang <emmwang@google.com>
wwadge added a commit to wwadge/jib that referenced this pull request Sep 5, 2023
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.

4 participants