Skip to content

Commit

Permalink
Show some modules in latest versions only
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Jan 17, 2025
1 parent beb89a7 commit 551b496
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,12 @@ dependencies {
"recipe"("org.openrewrite:rewrite-xml")
"recipe"("org.openrewrite:rewrite-yaml")

// Enable the following lines to show in latest versions
// Do not yet show recipes associated with these languages
// "recipe"("org.openrewrite:rewrite-csharp")
// "recipe"("org.openrewrite:rewrite-javascript")
"recipe"("org.openrewrite:rewrite-kotlin")
// "recipe"("org.openrewrite:rewrite-python")
// "recipe"("org.openrewrite:rewrite-ruby")
"recipe"("org.openrewrite:rewrite-templating")

"recipe"("org.openrewrite.recipe:rewrite-all")
"recipe"("org.openrewrite.meta:rewrite-analysis")
Expand Down Expand Up @@ -122,8 +121,9 @@ dependencies {
"recipe"("org.openrewrite.recipe:rewrite-testing-frameworks")
"recipe"("org.openrewrite.recipe:rewrite-third-party")

"recipe"("io.moderne.recipe:rewrite-hibernate")
"recipe"("io.moderne.recipe:rewrite-spring")
// Enable once released and managed
// "recipe"("io.moderne.recipe:rewrite-hibernate")
// "recipe"("io.moderne.recipe:rewrite-spring")
}

java {
Expand Down Expand Up @@ -189,6 +189,15 @@ tasks.register<JavaExec>("latestVersionsMarkdown").configure {
classpath(sourceSets.main.get().runtimeClasspath)
mainClass.set("org.openrewrite.RecipeMarkdownGenerator")

// Additional modules whose versions we want to show, but not (yet) their recipes
dependencies {
"recipe"("org.openrewrite:rewrite-csharp:$rewriteVersion")
"recipe"("org.openrewrite:rewrite-javascript:$rewriteVersion")
"recipe"("org.openrewrite:rewrite-polyglot:$rewriteVersion")
"recipe"("org.openrewrite:rewrite-python:$rewriteVersion")
"recipe"("org.openrewrite:rewrite-templating:$rewriteVersion")
}

val targetDir = layout.buildDirectory.dir("docs").get().asFile
// Collect all of the dependencies from recipeConf, then stuff them into a string representation
val recipeModules = recipeConf.resolvedConfiguration.firstLevelModuleDependencies.flatMap { dep ->
Expand Down

0 comments on commit 551b496

Please sign in to comment.