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

Remove deprecated CompileOptions.annotationProcessorGeneratedSourcesDirectory property #17105

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

rieske
Copy link
Contributor

@rieske rieske commented May 6, 2021

@rieske rieske added the @core Issue owned by GBT Core label May 6, 2021
@rieske rieske added this to the 8.0 RC1 milestone May 6, 2021
@rieske rieske self-assigned this May 6, 2021
# Conflicts:
#	subprojects/docs/src/docs/dsl/org.gradle.api.tasks.compile.CompileOptions.xml
@gradle gradle deleted a comment from tresat Aug 9, 2022
@big-guy big-guy assigned tresat and unassigned rieske Aug 9, 2022
AGP and KGP both used deprecated compile options, and needed to be upgraded.  This caused the expected module and pom files used by
this test to change significantly in several ways:

1) Kotlin version numbers needed bumping.
2) Less variants were present (for example - "metadataApiElements-published" gone from "kotlin-multiplatform-android-library-android-demo-1.0.module")
3) Names of existing variants changed (for example - "metadataApiElements-published" became "metadataApiElements" in "kotlin-multiplatform-library-1.0.module")
4) Variant had less attributes present (for example - "com.android.build.api.attributes.VarianttAttr" is gone)
5) Some new attributes present (for example - "artifactType = org.jetbrains.kotlin.klib")

In addition, other properties in the Android extension were removed ("versionCode", "versionName").

But the biggest change necessary was in the comparison logic within this smoke test itself.  The order of the dependencies present in GMM and POM files
doesn't seem to be fixed.  This causes the existing comparisons to fail unless corrected.  This test now sorts the dependencies and then compares the results
of sorting.  Without this code, this test becomes flaky as the order of these nodes in the expected files needs to be changed to match...and then the next time
you run the test, it needs to be changed BACK.
@gradle gradle deleted a comment from tresat Aug 10, 2022
@gradle gradle deleted a comment from tresat Aug 17, 2022
@gradle gradle deleted a comment from tresat Aug 17, 2022
@gradle gradle deleted a comment from tresat Aug 18, 2022
@gradle gradle deleted a comment from tresat Aug 18, 2022
@gradle gradle deleted a comment from tresat Aug 18, 2022
@tresat tresat force-pushed the vv/8-removals/compile-options branch from 7c134a8 to 60235f4 Compare October 6, 2022 20:47
@gradle gradle deleted a comment from tresat Oct 6, 2022
@tresat tresat requested a review from a team October 7, 2022 11:38
@tresat tresat marked this pull request as ready for review October 7, 2022 11:39
@tresat
Copy link
Member

tresat commented Oct 7, 2022

@gradle/bt-core - After updating this branch with the current state of master, I believe all the previous issues are resolved and it is ready to merge.

@gradle gradle deleted a comment from tresat Oct 11, 2022
@gradle gradle deleted a comment from tresat Oct 11, 2022
@gradle gradle deleted a comment from tresat Oct 11, 2022
@bot-gradle
Copy link
Collaborator

OK, I've already triggered a build for you.

Copy link
Contributor

@nathan-contino nathan-contino left a comment

Choose a reason for hiding this comment

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

Docs LGTM

@bot-gradle
Copy link
Collaborator

Pre-tested commit build failed.

@blindpirate
Copy link
Collaborator

@bot-gradle test and merge

@gradle gradle deleted a comment from tresat Oct 12, 2022
@bot-gradle
Copy link
Collaborator

OK, I've already triggered a build for you.

@bot-gradle
Copy link
Collaborator

Pre-tested commit build failed.

@tresat
Copy link
Member

tresat commented Oct 12, 2022

Performance tests fail upon merge due to problems running sync with Android Studio on this generated performance test. The issue is the usage of getAnnotationProcessorGeneratedSourcesDirectory() here.

This is blocked until that is changed in a newer version of Android Studio.

@tresat
Copy link
Member

tresat commented Oct 12, 2022

IntelliJ Issue here.

@big-guy
Copy link
Member

big-guy commented Oct 12, 2022

@tresat we'll have to punt this to 9.0. We're not going to make it so Gradle 8.0 only works with the latest IntelliJ

@tresat tresat modified the milestones: 8.0 RC1, 9.0 RC1 Oct 13, 2022
@jvandort jvandort closed this Dec 9, 2022
@jvandort jvandort reopened this Dec 9, 2022
bot-gradle added a commit that referenced this pull request Dec 12, 2022
…irectory nag to 9.0

We are punting removal of this method to 9.0 since intellij uses it.

See: #17105

Co-authored-by: Justin Van Dort <jvandort@gradle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@core Issue owned by GBT Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants