-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "GITBOOK-508: change request with no subject merged in GitBook"
This reverts commit 4ed05bd.
- Loading branch information
1 parent
4ed05bd
commit 92f1470
Showing
16 changed files
with
539 additions
and
639 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
**org.openrewrite.java.migrate.javax.AddJaxbRuntime** | ||
|
||
_Update build files to use the latest JAXB runtime from Jakarta EE 8 to maintain compatibility with Java version 11 or greater. The recipe will add a JAXB run-time, in Gradle `compileOnly`+`testImplementation` and Maven `provided` scope, to any project that has a transitive dependency on the JAXB API. **The resulting dependencies still use the**** ****`javax`**** ****namespace, despite the move to the Jakarta artifact**._ | ||
_Update build files to use the latest JAXB runtime from Jakarta EE 8 to maintain compatibility with Java version 11 or greater. The recipe will add a JAXB run-time, in Gradle `compileOnly`+`testImplementation` and Maven `provided` scope, to any project that has a transitive dependency on the JAXB API. **The resulting dependencies still use the `javax` namespace, despite the move to the Jakarta artifact**._ | ||
|
||
### Tags | ||
|
||
|
@@ -24,16 +24,17 @@ _Update build files to use the latest JAXB runtime from Jakarta EE 8 to maintain | |
{% hint style="info" %} | ||
This recipe is composed of more than one recipe. If you want to customize the set of recipes this is composed of, you can find and copy the GitHub source for the recipe from the link above. | ||
{% endhint %} | ||
|
||
## Options | ||
|
||
| Type | Name | Description | | ||
| -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- | | ||
| Type | Name | Description | | ||
| -- | -- | -- | | ||
| `String` | runtime | Which implementation of the JAXB run-time that will be added to maven projects that have transitive dependencies on the JAXB API | | ||
|
||
|
||
## Usage | ||
|
||
This recipe has required configuration parameters. Recipes with required configuration parameters cannot be activated directly. To activate this recipe you must create a new recipe which fills in the required parameters. In your `rewrite.yml` create a new recipe with a unique name. For example: `com.yourorg.AddJaxbRuntimeExample`. Here's how you can define and customize such a recipe within your rewrite.yml: | ||
This recipe has required configuration parameters. Recipes with required configuration parameters cannot be activated directly. To activate this recipe you must create a new recipe which fills in the required parameters. In your `rewrite.yml` create a new recipe with a unique name. For example: `com.yourorg.AddJaxbRuntimeExample`. | ||
Here's how you can define and customize such a recipe within your rewrite.yml: | ||
|
||
{% code title="rewrite.yml" %} | ||
```yaml | ||
|
@@ -48,11 +49,9 @@ recipeList: | |
{% endcode %} | ||
Now that `com.yourorg.AddJaxbRuntimeExample` has been defined activate it and take a dependency on org.openrewrite.recipe:rewrite-migrate-java:2.3.0 in your build file: | ||
|
||
{% tabs %} | ||
{% tab title="Gradle" %} | ||
1. Add the following to your `build.gradle` file: | ||
|
||
{% code title="build.gradle" %} | ||
```groovy | ||
plugins { | ||
|
@@ -72,13 +71,10 @@ dependencies { | |
} | ||
``` | ||
{% endcode %} | ||
|
||
2. Run `gradle rewriteRun` to run the recipe. | ||
{% endtab %} | ||
|
||
{% tab title="Maven" %} | ||
1. Add the following to your `pom.xml` file: | ||
|
||
{% code title="pom.xml" %} | ||
```xml | ||
<project> | ||
|
@@ -106,10 +102,8 @@ dependencies { | |
</project> | ||
``` | ||
{% endcode %} | ||
|
||
2. Run `mvn rewrite:run` to run the recipe. | ||
{% endtab %} | ||
|
||
{% tab title="Moderne CLI" %} | ||
You will need to have configured the [Moderne CLI](https://docs.moderne.io/moderne-cli/cli-intro) on your machine before you can run the following command. | ||
|
||
|
@@ -125,8 +119,9 @@ mod run . --recipe AddJaxbRuntime | |
|
||
{% tabs %} | ||
{% tab title="Recipe List" %} | ||
* [Use latest JAXB API and runtime for Jakarta EE 8](addjaxbruntime$addjaxbruntimegradle.md) | ||
* [Use latest JAXB API and runtime for Jakarta EE 8](addjaxbruntime$addjaxbruntimemaven.md) | ||
* [Use latest JAXB API and runtime for Jakarta EE 8](../../../java/migrate/javax/addjaxbruntime$addjaxbruntimegradle.md) | ||
* [Use latest JAXB API and runtime for Jakarta EE 8](../../../java/migrate/javax/addjaxbruntime$addjaxbruntimemaven.md) | ||
|
||
{% endtab %} | ||
|
||
{% tab title="Yaml Recipe List" %} | ||
|
@@ -154,12 +149,11 @@ recipeList: | |
|
||
## See how this recipe works across multiple open-source repositories | ||
|
||
[![Moderne Link Image](../../../../../.gitbook/assets/ModerneRecipeButton.png)](https://app.moderne.io/recipes/org.openrewrite.java.migrate.javax.AddJaxbRuntime) | ||
[![Moderne Link Image](/.gitbook/assets/ModerneRecipeButton.png)](https://app.moderne.io/recipes/org.openrewrite.java.migrate.javax.AddJaxbRuntime) | ||
|
||
The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories. | ||
|
||
Please [contact Moderne](https://moderne.io/product) for more information about safely running the recipes on your own codebase in a private SaaS. | ||
|
||
## Contributors | ||
|
||
[Shannon Pamperl](mailto:[email protected]), Tyler Van Gorder, [Jonathan Schneider](mailto:[email protected]), [Sam Snyder](mailto:[email protected]), [Simon Verhoeven](mailto:[email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.