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

Prepare Gradle 9.0 deprecations #177

Merged
merged 4 commits into from
Jun 4, 2024

Conversation

sh-cho
Copy link
Contributor

@sh-cho sh-cho commented May 4, 2024

Motivation:

Prepare deprecations which will be removed or fail in Gradle 9.0

Modification:

Result:

  • Several deprecations of Gradle 9.0 are handled in advance

Motivation:

Starting with Gradle 9.0, Gradle will not run builds if a project
directory is missing or read-only.
(ref:
https://docs.gradle.org/8.7/userguide/upgrading_version_8.html#deprecated_missing_project_directory)

Modification:

- Create project directories

Result:

- Deprecation for Gradle 9.0 is prepared for this behavior
@CLAassistant
Copy link

CLAassistant commented May 4, 2024

CLA assistant check
All committers have signed the CLA.

@sh-cho sh-cho changed the title Create project directories for 'dependencyManagement' Set virtual project directories for 'dependencyManagement' May 17, 2024
Copy link
Member

@minwoox minwoox left a comment

Choose a reason for hiding this comment

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

Thanks a lot! 👍 👍 👍
Let me merge this after build with Gradle 9.0, which isn't release yet, to make sure if we don't miss anything.

@sh-cho sh-cho changed the title Set virtual project directories for 'dependencyManagement' Prepare Gradle 9.0 deprecations May 20, 2024
Copy link
Contributor

@ikhoon ikhoon left a comment

Choose a reason for hiding this comment

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

Thanks! 👍

Copy link
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

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

👍 👍 👍

@minwoox minwoox merged commit f716cfe into line:main Jun 4, 2024
1 check passed
@minwoox
Copy link
Member

minwoox commented Jun 4, 2024

@sh-cho Thanks! 😄

relocatedProjects.each {
if (it != project && !it.hasFlags('no_aggregation')) {
injars it.tasks.shadedJar.archivePath
injars it.tasks.shadedTestJar.archivePath
injars it.tasks.shadedJar.aarchiveFile.get().asFile
Copy link
Member

Choose a reason for hiding this comment

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

Typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😨

minwoox pushed a commit to line/armeria that referenced this pull request Jun 11, 2024
Motivation:

Starting with Gradle 9.0, Gradle will not run builds if a project directory is missing or read-only.
(ref:
https://docs.gradle.org/8.7/userguide/upgrading_version_8.html#deprecated_missing_project_directory)

Modification:

- Create project directories under `build/virtual-projects`
  - `:bom`, `:version-catalog`
  - `:dependencyManagement` will be handled via line/gradle-scripts#177

Result:

- Deprecation for Gradle 9.0 is prepared for this behavior
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

6 participants