Skip to content

Commit

Permalink
Avoid deprecation warning with Gradle plugin re Gradle 8.0 and Increm…
Browse files Browse the repository at this point in the history
…entalTaskInputs

Closes #1454
  • Loading branch information
joelittlejohn committed Jan 22, 2023
1 parent 1b28eef commit fccc016
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
*/
package org.jsonschema2pojo.gradle

import org.gradle.api.tasks.Input
import org.gradle.api.tasks.OutputDirectory
import org.gradle.api.tasks.SourceTask
import org.gradle.api.tasks.TaskAction
import org.gradle.api.tasks.incremental.IncrementalTaskInputs
import org.gradle.work.InputChanges
import org.jsonschema2pojo.GenerationConfig
import org.jsonschema2pojo.Jsonschema2Pojo

Expand All @@ -35,7 +34,7 @@ class GenerateJsonSchemaAndroidTask extends SourceTask {
File outputDir

@TaskAction
def generate(IncrementalTaskInputs inputs) {
def generate(InputChanges inputs) {

// If the whole thing isn't incremental, delete the build folder (if it exists)
if (!inputs.isIncremental() && outputDir.exists()) {
Expand Down

0 comments on commit fccc016

Please sign in to comment.