Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Gradle deprecations #3892

Merged

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
@sonarcloud
Copy link

sonarcloud bot commented Dec 13, 2022

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

@sonarcloud
Copy link

sonarcloud bot commented Jan 20, 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

@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.

@@ -1,5 +1,5 @@
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

build.gradle Outdated
}
}

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

@sonarcloud
Copy link

sonarcloud bot commented Apr 28, 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

@sonarcloud
Copy link

sonarcloud 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!

@mpeddada1 mpeddada1 merged commit 201c810 into GoogleContainerTools:master Jul 11, 2023
8 of 9 checks passed
@Sineaggi Sineaggi deleted the fix-gradle-deprecations branch July 11, 2023 17:12
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.

None yet

4 participants