Skip to content

Commit

Permalink
Update README.md to advise on plugin ordering in Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
joelittlejohn authored Feb 17, 2023
1 parent 1c061ec commit e612ae2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jsonschema2pojo-gradle-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This Gradle plugin is hosted on both Maven Central and the [Gradle Plugin Portal

## Usage

For Gradle 7.3 and later, you can use the plugins DSL:

With Groovy:

```groovy
Expand All @@ -34,6 +36,9 @@ jsonSchema2Pojo {
}
```

For Gradle 7.2.x and older, there is a [bug related to the application order of plugins](https://github.com/gradle/gradle/issues/15664) so you must use [legacy plugin application](https://plugins.gradle.org/plugin/org.jsonschema2pojo).


Below we have a full build.gradle example, showing all available configuration options:

```groovy
Expand Down

0 comments on commit e612ae2

Please sign in to comment.