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

Add Kotlin DSL examples in docs #1306

Merged
merged 35 commits into from
Mar 6, 2025
Merged

Add Kotlin DSL examples in docs #1306

merged 35 commits into from
Mar 6, 2025

Conversation

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds Kotlin DSL examples to the documentation, which is a great way to improve the usability and accessibility of the plugin. The changes are well-structured and easy to follow. However, there are a few minor suggestions for improvement.

Merge Readiness

The code changes are well-structured and easy to follow. I would recommend addressing the comments before merging. I am unable to directly approve this pull request, and recommend that others review and approve this code before merging.

Goooler added 6 commits March 5, 2025 17:39
@Goooler Goooler force-pushed the g/20250305/kotlin-dsl-in-docs branch from 01ea081 to c2ffc3d Compare March 5, 2025 11:41
Goooler added 2 commits March 5, 2025 19:43
@Goooler Goooler force-pushed the g/20250305/kotlin-dsl-in-docs branch from ab1d225 to 772f7f3 Compare March 5, 2025 12:11
@Goooler Goooler mentioned this pull request Mar 5, 2025
1 task
…-in-docs

// Conflicts:
//	docs/application-plugin/README.md
//	docs/configuration/README.md
//	docs/configuration/dependencies/README.md
//	docs/configuration/filtering/README.md
//	docs/configuration/merging/README.md
//	docs/configuration/minimizing/README.md
//	docs/configuration/relocation/README.md
//	docs/configuration/reproducible-builds/README.md
//	docs/custom-tasks/README.md
//	docs/getting-started/README.md
//	docs/kmp-plugin/README.md
//	docs/multi-project/README.md
//	docs/plugins/README.md
//	docs/publishing/README.md
@Goooler Goooler force-pushed the g/20250305/kotlin-dsl-in-docs branch 2 times, most recently from ec8c76b to 7520e81 Compare March 5, 2025 14:45
@Goooler Goooler force-pushed the g/20250305/kotlin-dsl-in-docs branch 4 times, most recently from b157a05 to aa068a8 Compare March 6, 2025 04:17
@Goooler Goooler force-pushed the g/20250305/kotlin-dsl-in-docs branch from aa068a8 to fc1a72d Compare March 6, 2025 04:26
Goooler added 2 commits March 6, 2025 13:20
…-in-docs

// Conflicts:
//	src/integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/DocCodeSnippetTest.kt
//	src/integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/snippet/CodeSnippetExtractor.kt
//	src/integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/snippet/DslLang.kt
//	src/integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/snippet/KotlinBuildExecutable.kt
//	src/integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/snippet/SnippetExecutable.kt
@Goooler
Copy link
Member Author

Goooler commented Mar 6, 2025

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request adds Kotlin DSL examples to the documentation, which improves the user experience for Kotlin developers. The changes are well-structured and cover various aspects of the Shadow plugin. However, there are a few areas that could be improved for clarity and consistency.

Summary of Findings

  • Inconsistent code block indentation: The indentation of code blocks within the documentation is inconsistent. Some code blocks have 4 spaces of indentation, while others do not. Consistent indentation improves readability.
  • Missing Kotlin DSL examples in some sections: While most sections now include Kotlin DSL examples, some sections are still missing them. Providing examples for both Groovy and Kotlin in all relevant sections ensures comprehensive documentation.
  • Inaccurate regex pattern: The regex pattern in CodeSnippetExtractor.kt is not correctly extracting the Kotlin code snippets.

Merge Readiness

The pull request is a valuable addition to the documentation. However, before merging, the identified issues should be addressed to ensure consistency and accuracy. I am unable to approve this pull request, and recommend that others review and approve this code before merging.

@Goooler Goooler requested a review from Copilot March 6, 2025 05:30
@Goooler Goooler force-pushed the g/20250305/kotlin-dsl-in-docs branch from 8b74b86 to de3e82d Compare March 6, 2025 06:21
@Goooler Goooler force-pushed the g/20250305/kotlin-dsl-in-docs branch 3 times, most recently from e8a936b to d94e30c Compare March 6, 2025 15:46
@Goooler Goooler force-pushed the g/20250305/kotlin-dsl-in-docs branch from d94e30c to 8637301 Compare March 6, 2025 15:49
@Goooler Goooler enabled auto-merge (squash) March 6, 2025 15:52
@Goooler Goooler disabled auto-merge March 6, 2025 15:52
@Goooler Goooler enabled auto-merge (squash) March 6, 2025 15:54
@Goooler Goooler merged commit 6fab5ad into main Mar 6, 2025
7 checks passed
@Goooler Goooler deleted the g/20250305/kotlin-dsl-in-docs branch March 6, 2025 16:03
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.

Support Kotlin Script Gradle DSL Provide Gradle Kotlin DSL examples in documentation
1 participant