Skip to content

Add a new task to our Gradle configuration: printCompileClasspath #8263

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

jwren
Copy link
Member

@jwren jwren commented Jun 12, 2025

Run with ./third_party/gradlew printCompileClasspath --no-configuration-cache

This task lists out all jars used when compiling an IntelliJ plugin.

Run with `./third_party/gradlew printCompileClasspath --no-configuration-cache `

This task lists out all jars used when compiling an IntelliJ plugin.
@jwren jwren requested review from pq and helin24 June 12, 2025 19:44
Copy link
Contributor

@pq pq left a comment

Choose a reason for hiding this comment

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

For my own edification, how does printing these paths come in handy?

@helin24
Copy link
Member

helin24 commented Jun 12, 2025

For my own edification, how does printing these paths come in handy?

I'm also curious! What does this look like now?

@jwren
Copy link
Member Author

jwren commented Jun 12, 2025

For my own edification, how does printing these paths come in handy?

This will print out the suite of jars used to compile the project, where they are cached on disk, what versions are, etc. When configuring Gradle and the Gradle IJ plugin, this can be used to ensure that the expected set of jars is included or excluded.

--- Begin Compile Classpath ---
/Users/jwren/src/flutter-intellij/flutter-idea/build/libs/flutter-idea-base.jar
/Users/jwren/src/flutter-intellij/flutter-studio/build/libs/flutter-studio-base.jar
/Users/jwren/.gradle/caches/transforms-3/36f0257c03e696453b8c648be3d3de14/transformed/android-studio-2024.3.1.10-mac_arm/lib/modules/intellij.platform.coverage.jar
/Users/jwren/.gradle/caches/transforms-3/36f0257c03e696453b8c648be3d3de14/transformed/android-studio-2024.3.1.10-mac_arm/lib/modules/intellij.platform.coverage.agent.jar
/Users/jwren/.gradle/caches/transforms-3/36f0257c03e696453b8c648be3d3de14/transformed/android-studio-2024.3.1.10-mac_arm/plugins/gemini/lib/libv1internal_java_rest.jar
...

@pq
Copy link
Contributor

pq commented Jun 12, 2025

Thanks for the context!

Maybe consider adding some documentation so one of us doesn't think this is dead code down the road?

@jwren jwren merged commit e9afeb1 into flutter:master Jun 12, 2025
6 of 12 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.

3 participants