Skip to content

Commit

Permalink
Update Gradle README.md to use 'implementation' rather than 'compile'
Browse files Browse the repository at this point in the history
  • Loading branch information
joelittlejohn committed Mar 2, 2021
1 parent d13f9e7 commit a5a5466
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
13 changes: 5 additions & 8 deletions jsonschema2pojo-gradle-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ repositories {
dependencies {
// Required if generating JSR-303 annotations
compile 'javax.validation:validation-api:1.1.0.CR2'
implementation 'javax.validation:validation-api:1.1.0.CR2'
// Required if generating Jackson 2 annotations
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.10.7'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.1'
// Required if generating JodaTime data types
compile 'joda-time:joda-time:2.2'
implementation 'joda-time:joda-time:2.2'
}
// Each configuration is set to the default value
Expand Down Expand Up @@ -213,18 +213,15 @@ generated source files.
It can be useful to build this project and try out changes in your existing gradle project.

1. From the root, run `mvn clean install`. This will install jsonschema2pojo in your local maven repository.
2. Include the local repo in your gradle file, and change your dependency to use the development version, (typically ending with '-SNAPSHOT' - you can find this in `pom.xml`). e.g:
2. Include the local repo in your build.gradle, and change your dependency to use the `latest.integration` version e.g.:

```groovy
buildscript {
repositories {
mavenLocal()
}
dependencies {
// this plugin
classpath 'org.jsonschema2pojo:jsonschema2pojo-gradle-plugin:0.4.23-SNAPSHOT'
// add additional dependencies here if you wish to reference instead of generate them (see example directory)
classpath 'org.jsonschema2pojo:jsonschema2pojo-gradle-plugin:latest.integration'
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
/**
* Copyright © 2010-2020 Nokia
* <p>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/**
* Copyright © 2010-2020 Nokia
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion jsonschema2pojo-gradle-plugin/example/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {

dependencies {
implementation 'javax.validation:validation-api:1.1.0.CR2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.10.7'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.1'

// see src/main/resources/json/external_dependencies.json
implementation 'joda-time:joda-time:2.2'
Expand Down

0 comments on commit a5a5466

Please sign in to comment.