Skip to content

Commit

Permalink
Document rewrite-ai-research recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Jun 10, 2024
1 parent 2970c37 commit b73f8e2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 40 deletions.
80 changes: 40 additions & 40 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:latest.release")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:latest.release")

"recipe"(platform("org.openrewrite:rewrite-bom:$rewriteVersion"))
"recipe"(platform("org.openrewrite.recipe:rewrite-recipe-bom:$rewriteVersion"))
"recipe"("org.openrewrite:rewrite-core")
"recipe"("org.openrewrite:rewrite-groovy")
"recipe"("org.openrewrite:rewrite-gradle")
Expand All @@ -71,44 +71,44 @@ dependencies {
"recipe"("org.openrewrite:rewrite-yaml")
"recipe"("org.openrewrite:rewrite-java-test")

// "recipe"("org.openrewrite:rewrite-csharp:$rewriteVersion")
// "recipe"("org.openrewrite:rewrite-javascript:$rewriteVersion")
"recipe"("org.openrewrite:rewrite-kotlin:$rewriteVersion")
// "recipe"("org.openrewrite:rewrite-python:$rewriteVersion") // Removed based on Olga request
// "recipe"("org.openrewrite:rewrite-ruby:$rewriteVersion")

// "recipe"("org.openrewrite.recipe:rewrite-all:$rewriteVersion") // Exclude language composition data table recipes
"recipe"("org.openrewrite.meta:rewrite-analysis:$rewriteVersion")
// "recipe"("org.openrewrite.recipe:rewrite-ai-search:$rewriteVersion") Needs further attention
"recipe"("org.openrewrite.recipe:rewrite-apache:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-circleci:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-concourse:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-cucumber-jvm:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-github-actions:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-hibernate:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-jackson:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-java-dependencies:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-java-security:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-jenkins:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-kubernetes:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-liberty:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-launchdarkly:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-logging-frameworks:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-micrometer:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-micronaut:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-migrate-java:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-nodejs:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-okhttp:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-openapi:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-quarkus:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-recommendations:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-spring:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-sql:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-static-analysis:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-struts:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-terraform:$rewriteVersion")
"recipe"("org.openrewrite.recipe:rewrite-testing-frameworks:$rewriteVersion")
// "recipe"("org.openrewrite.recipe:rewrite-third-party:$rewriteVersion") Needs further attention
// "recipe"("org.openrewrite:rewrite-csharp")
// "recipe"("org.openrewrite:rewrite-javascript")
"recipe"("org.openrewrite:rewrite-kotlin")
// "recipe"("org.openrewrite:rewrite-python") // Removed based on Olga request
// "recipe"("org.openrewrite:rewrite-ruby")

// "recipe"("org.openrewrite.recipe:rewrite-all") // Exclude language composition data table recipes
"recipe"("org.openrewrite.meta:rewrite-analysis")
"recipe"("org.openrewrite.recipe:rewrite-ai-search")
"recipe"("org.openrewrite.recipe:rewrite-apache")
"recipe"("org.openrewrite.recipe:rewrite-circleci")
"recipe"("org.openrewrite.recipe:rewrite-concourse")
"recipe"("org.openrewrite.recipe:rewrite-cucumber-jvm")
"recipe"("org.openrewrite.recipe:rewrite-github-actions")
"recipe"("org.openrewrite.recipe:rewrite-hibernate")
"recipe"("org.openrewrite.recipe:rewrite-jackson")
"recipe"("org.openrewrite.recipe:rewrite-java-dependencies")
"recipe"("org.openrewrite.recipe:rewrite-java-security")
"recipe"("org.openrewrite.recipe:rewrite-jenkins")
"recipe"("org.openrewrite.recipe:rewrite-kubernetes")
"recipe"("org.openrewrite.recipe:rewrite-liberty")
"recipe"("org.openrewrite.recipe:rewrite-launchdarkly")
"recipe"("org.openrewrite.recipe:rewrite-logging-frameworks")
"recipe"("org.openrewrite.recipe:rewrite-micrometer")
"recipe"("org.openrewrite.recipe:rewrite-micronaut")
"recipe"("org.openrewrite.recipe:rewrite-migrate-java")
"recipe"("org.openrewrite.recipe:rewrite-nodejs")
"recipe"("org.openrewrite.recipe:rewrite-okhttp")
"recipe"("org.openrewrite.recipe:rewrite-openapi")
"recipe"("org.openrewrite.recipe:rewrite-quarkus")
"recipe"("org.openrewrite.recipe:rewrite-recommendations")
"recipe"("org.openrewrite.recipe:rewrite-spring")
"recipe"("org.openrewrite.recipe:rewrite-sql")
"recipe"("org.openrewrite.recipe:rewrite-static-analysis")
"recipe"("org.openrewrite.recipe:rewrite-struts")
"recipe"("org.openrewrite.recipe:rewrite-terraform")
"recipe"("org.openrewrite.recipe:rewrite-testing-frameworks")
// "recipe"("org.openrewrite.recipe:rewrite-third-party") Needs further attention
}

java {
Expand Down Expand Up @@ -159,7 +159,7 @@ tasks.named<JavaExec>("run").configure {
args = listOf(targetDir.toString(), recipeModules, recipeClasspath, gradlePluginVersion, mavenPluginVersion, deployType, diffFileName)
doFirst {
logger.lifecycle("Recipe modules: ")
logger.lifecycle(recipeModules)
logger.lifecycle(recipeModules.replace(";", "\n"))

// Ensure no stale output from previous runs is in the output directory
targetDir.deleteRecursively()
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1731,6 +1731,8 @@ $cliSnippet
private fun getRecipePath(recipe: RecipeDescriptor): String =
if (recipe.name.startsWith("org.openrewrite")) {
recipe.name.substring(16).replace("\\.".toRegex(), "/").lowercase(Locale.getDefault())
} else if (recipe.name.startsWith("io.moderne")) {
recipe.name.substring(11).replace("\\.".toRegex(), "/").lowercase(Locale.getDefault())
} else {
throw RuntimeException("Recipe package unrecognized: ${recipe.name}")
}
Expand Down

0 comments on commit b73f8e2

Please sign in to comment.