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

Final review gradle-plugin.adoc and maven-plugin.adoc. #679

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

Conversation

olyagpl
Copy link
Member

@olyagpl olyagpl commented Jan 16, 2025

This PR includes the following:

  • Adding info how to enable resources autodetection with Gradle
  • Shortened Adding the Plugin section by sending users to the end-go-end guide
  • Removed the duplicated GraalVM installation info
  • Removed PGO section from gradle-plugin.adoc; it is duplicated in the end-to-end guide
  • Reviewed the hierarchy of table of contents in both gradle-plugin.adoc and maven-plugin.adoc, ensuring the titles are capitalized
    Compare the TOCs before and after:

Gradle
gradle-plugin-doc-before
gradle-plugin-doc-after

Maven
maven-plugin-doc-before
maven-plugin-doc-after

@olyagpl olyagpl requested a review from dnestoro January 16, 2025 12:59
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 16, 2025
@olyagpl olyagpl requested a review from melix January 16, 2025 12:59
@@ -294,7 +266,23 @@ If you want to **enable the agent on the command line**, you can specify in whic
./gradlew -Pagent=direct nativeTest
----

==== MetadataCopy task
[[resources-autodetecting]]
Copy link
Member Author

Choose a reason for hiding this comment

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

New Resources Autodetecting section

@@ -836,57 +825,8 @@ include::../snippets/gradle/kotlin/build.gradle.kts[tags=include-metadata]

For more advanced configurations you can declare the `org.graalvm.buildtools.gradle.tasks.CollectReachabilityMetadata` task and set the appropriate properties.

[[pgo-support]]
Copy link
Member Author

Choose a reason for hiding this comment

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

How to optimize with PGO is now part of end-to-end guide: https://github.com/graalvm/native-build-tools/blob/master/docs/src/docs/asciidoc/end-to-end-gradle-guide.adoc#gather-execution-profiles-and-build-optimized-images
I don't think we should have it in 2 places. Plus, in Maven doc, there isn't any mention of PGO. The structure should be consistent, at lease close.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am also against duplicating stuff but my only concern is that experienced users would maybe look into main plugins documentation and not into an end-to-end guide.

@melix what is your opinion? Should we have pgo section in the main plugin documentation as well or just in the end-to-end guides?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes I agree, I think this should be documented in the main docs.

Copy link
Member Author

Choose a reason for hiding this comment

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

What if we add a subtitle followed by a short paragraph that a user can build optimized images with PGO, and then send them to end-to-end guides?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't know. Personally I'm not much interested in the end-to-end guide, so I see linking to it as an annoyance. I'd prefer to have all required information in the reference docs.

dnestoro
dnestoro previously approved these changes Jan 16, 2025
</pluginRepository>
</pluginRepositories>
----
The plugin requires that you install a https://www.graalvm.org/downloads/[GraalVM JDK].
Copy link
Member Author

@olyagpl olyagpl Jan 17, 2025

Choose a reason for hiding this comment

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

Screenshot 2025-01-17 at 17 38 00


[NOTE]
====
The plugin requires that you install a https://www.graalvm.org/downloads/[GraalVM JDK].
Copy link
Member Author

Choose a reason for hiding this comment

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

Screenshot 2025-01-17 at 17 38 13

@olyagpl olyagpl force-pushed the og/GR-61276-resources-autodetection branch from 317b705 to 628e490 Compare January 20, 2025 10:56
@olyagpl
Copy link
Member Author

olyagpl commented Jan 20, 2025

I added PGO section in both Maven and Gradle reference docs.
@dnestoro, @melix, please review.

Copy link
Collaborator

@melix melix left a comment

Choose a reason for hiding this comment

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

Thanks! I think the capitalization could have also been handled directly in CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants