Skip to content

Fix getDependecyProject method deprecation - #65

Merged
iurysza merged 2 commits into
mainfrom
fix/getDependencyProject-deprecation
Aug 10, 2025
Merged

Fix getDependecyProject method deprecation#65
iurysza merged 2 commits into
mainfrom
fix/getDependencyProject-deprecation

Conversation

@iurysza

@iurysza iurysza commented Aug 10, 2025

Copy link
Copy Markdown
Owner

🚀 Description

Replaces deprecated ProjectDependency.getDependencyProject().path with ProjectDependency.path in the GradleProjectQuerier class. Also upgrades Gradle from 8.9 to 8.11.1 to support the new API.

📄 Motivation and Context

Closes #63 - The getDependencyProject() method is deprecated and scheduled for removal in Gradle 9.0. This change eliminates the deprecation warning by using the replacement API introduced in Gradle 8.11. Users reported build failures when using Gradle 9.0.

🧪 How Has This Been Tested?

  • Ran ./gradlew test - all unit tests pass
  • Ran ./gradlew preMerge - all quality checks pass
  • Verified plugin functionality with sample project
  • Confirmed deprecation warnings are eliminated

📦 Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

✅ Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@iurysza iurysza changed the title update gitignore Fix getDependecyProject method deprecation Aug 10, 2025
@iurysza
iurysza merged commit bd23af7 into main Aug 10, 2025
4 checks passed
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.

Usage of Deprecated getDependencyProject() Method in dev.iurysouza.modulegraph

1 participant