Deprecated API
Contents
-
InterfaceDescriptionUse
DirectoryProperty
instead.UseRegularFileProperty
instead.UseProperty
instead.The interface is only here to allow plugins built against Gradle 2.x to run and it will be removed in Gradle 5.0.The interface is only here to allow plugins built against Gradle 2.x to run and it will be removed in Gradle 5.0.
-
FieldDescriptionUsers should prefer
JavaPlugin.API_CONFIGURATION_NAME
orJavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME
.Consumers should useJavaPlugin.RUNTIME_ELEMENTS_CONFIGURATION_NAME
instead.UseJavaPlugin.TEST_RUNTIME_CLASSPATH_CONFIGURATION_NAME
instead.
-
MethodDescriptionUse
ProjectLayout.directoryProperty()
instead.UseProjectLayout.fileProperty()
instead.Replaced byJDepend.getClassesDirs()
.Replaced byJDepend.getClassesDirs()
.UseObjectFactory.property(Class)
instead.UseObjectFactory.property(Class)
instead.UseObjectFactory.property(Class)
instead.Build logic should not depend on this information about a task. Instead, declare task inputs and outputs to allow Gradle to optimize task execution.UseCompileOptions.getBootstrapClasspath()
instead.UseCompileOptions.setBootstrapClasspath(FileCollection)
instead.Scaladoc does not support to set a stylesheet any more (Scala 2.11).Scaladoc does not support to set a stylesheet any more (Scala 2.11).Set the output directory for the particularAbstractCompile
taskSet the output directory for the particularAbstractCompile
taskUseTaskDestroyables.register(Object...)
instead.UseTaskDestroyables.register(Object...)
instead.UseTaskInputs.dir(Object)
directly instead.UseTaskInputs.file(Object)
directly instead.UseTaskInputs.files(Object...)
directly instead.UseTaskInputs.getFiles()
directly instead.UseTaskInputs.getHasInputs()
directly instead.UseTaskInputs.getHasSourceFiles()
directly instead.UseTaskInputs.getProperties()
directly instead.UseTaskInputs.getSourceFiles()
directly instead.UseTaskInputs.properties(Map)
directly instead.UseTaskInputs.property(String, Object)
directly instead.UseTaskInputs.dir(Object)
directly instead.UseTaskInputs.file(Object)
directly instead.UseTaskInputs.files(Object...)
directly instead.UseTaskInputs.getFiles()
directly instead.UseTaskInputs.getHasInputs()
directly instead.UseTaskInputs.getHasSourceFiles()
directly instead.UseTaskInputs.getProperties()
directly instead.UseTaskInputs.getSourceFiles()
directly instead.UseTaskInputs.properties(Map)
directly instead.UseTaskInputs.property(String, Object)
directly instead.UseTaskOutputs.dir(Object)
instead.UseTaskOutputs.file(Object)
instead.UseTaskOutputs.files(Object...)
instead.UseTaskOutputs.getFiles()
instead.UseTaskOutputs.getHasOutput()
instead.UseTaskOutputs.upToDateWhen(Closure)
instead.UseTaskOutputs.upToDateWhen(Spec)
instead.
-
ConstructorDescriptionUse public
ObjectFactory
constructor instead of this one using internalInstantiator
.