-
Notifications
You must be signed in to change notification settings - Fork 28
Add a recipe to migrate from JBoss Logging to SLF4J #241
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
base: main
Are you sure you want to change the base?
Conversation
*/ | ||
package org.openrewrite.java.logging.slf4j; | ||
|
||
import org.junit.jupiter.api.Test; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.Test; | |
import org.openrewrite.DocumentExample; |
import static org.openrewrite.java.Assertions.mavenProject; | ||
import static org.openrewrite.maven.Assertions.pomXml; | ||
|
||
public class JBossLoggingToSlf4jTest implements RewriteTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public class JBossLoggingToSlf4jTest implements RewriteTest { | |
class JBossLoggingToSlf4jTest implements RewriteTest { |
); | ||
} | ||
|
||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Test | |
@DocumentExample | |
@Test | |
void gradle() { | |
rewriteRun(recipeSpec -> recipeSpec.beforeRecipe(withToolingApi()), | |
//language=gradle | |
buildGradle( | |
""" | |
plugins { id "java" } | |
repositories { mavenCentral() } | |
dependencies { | |
implementation("org.jboss.logmanager:jboss-logmanager:latest.release") | |
implementation("org.jboss.logging:jboss-logging:latest.release") | |
} | |
""", | |
""" | |
plugins { id "java" } | |
repositories { mavenCentral() } | |
dependencies { | |
implementation("org.jboss.logmanager:jboss-logmanager:latest.release") | |
implementation("org.jboss.slf4j:slf4j-jboss-logmanager:latest.release") | |
} | |
""" | |
) | |
); | |
} | |
@Test |
} | ||
|
||
@Test | ||
void gradle() { | ||
rewriteRun(recipeSpec -> recipeSpec.beforeRecipe(withToolingApi()), | ||
//language=gradle | ||
buildGradle( | ||
""" | ||
plugins { id "java" } | ||
repositories { mavenCentral() } | ||
dependencies { | ||
implementation("org.jboss.logmanager:jboss-logmanager:latest.release") | ||
implementation("org.jboss.logging:jboss-logging:latest.release") | ||
} | ||
""", | ||
""" | ||
plugins { id "java" } | ||
repositories { mavenCentral() } | ||
dependencies { | ||
implementation("org.jboss.logmanager:jboss-logmanager:latest.release") | ||
implementation("org.jboss.slf4j:slf4j-jboss-logmanager:latest.release") | ||
} | ||
""" | ||
) | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
@Test | |
void gradle() { | |
rewriteRun(recipeSpec -> recipeSpec.beforeRecipe(withToolingApi()), | |
//language=gradle | |
buildGradle( | |
""" | |
plugins { id "java" } | |
repositories { mavenCentral() } | |
dependencies { | |
implementation("org.jboss.logmanager:jboss-logmanager:latest.release") | |
implementation("org.jboss.logging:jboss-logging:latest.release") | |
} | |
""", | |
""" | |
plugins { id "java" } | |
repositories { mavenCentral() } | |
dependencies { | |
implementation("org.jboss.logmanager:jboss-logmanager:latest.release") | |
implementation("org.jboss.slf4j:slf4j-jboss-logmanager:latest.release") | |
} | |
""" | |
) | |
); | |
} | |
} |
What's changed?
What's your motivation?
Anything in particular you'd like reviewers to focus on?
Anyone you would like to review specifically?
Have you considered any alternatives or workarounds?
Any additional context
Checklist