diff --git a/build.gradle.kts b/build.gradle.kts index 56bc5d2..a205570 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") @@ -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 { @@ -159,7 +159,7 @@ tasks.named("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() diff --git a/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt b/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt index 2907120..1e0e17b 100644 --- a/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt +++ b/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt @@ -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}") }