[GRADLE-3507] Unable to add task inputs and outputs for inline tasks Created: 20/Jul/16  Updated: 27/Jul/16  Resolved: 27/Jul/16

Status: Resolved
Project: Gradle
Affects Version/s: 3.0-milestone-2
Fix Version/s: 3.0-rc-1

Type: Bug
Reporter: Eric Wendelin Assignee: Lóránt Pintér
Resolution: Fixed Votes: 0


Reported in https://discuss.gradle.org/t/unable-to-add-task-inputs-for-inline-tasks/18587

When a plugin compiled against Gradle 2.z uses the file(Object), files(Object...) or dir(Object) on TaskInputs or TaskOutputs with Gradle 3.0, the following exception is thrown:

java.lang.NoSuchMethodError: org.gradle.api.tasks.TaskInputs.files([Ljava/lang/Object;)Lorg/gradle/api/tasks/TaskInputs;

Plugins compiled against 3.0 are not affected.

This is caused by a change to the return type of these methods in 3.0-milestone-1.

Generated at Wed Jun 30 12:50:35 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.