/*
 * Copyright 2010 the original author or authors.
 *
 * 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
 *
 *      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.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.gradle.api;

import org.gradle.api.file.DirectoryProperty;
import org.gradle.api.file.RegularFileProperty;
import org.gradle.api.internal.AbstractTask;
import org.gradle.api.internal.NoConventionMapping;
import org.gradle.api.internal.file.TaskFileVarFactory;

/**
 * {@code DefaultTask} is the standard {@link Task} implementation. You can extend this to implement your own task types.
 */
@NoConventionMapping
public class DefaultTask extends AbstractTask {
    /**
     * Creates a new output directory property for this task.
     *
     * @return The property.
     * @since 4.1
     */
    @Incubating
    protected DirectoryProperty newOutputDirectory() {
        return getServices().get(TaskFileVarFactory.class).newOutputDirectory(this);
    }

    /**
     * Creates a new output file property for this task.
     *
     * @return The property.
     * @since 4.1
     */
    @Incubating
    protected RegularFileProperty newOutputFile() {
        return getServices().get(TaskFileVarFactory.class).newOutputFile(this);
    }

    /**
     * Creates a new input file property for this task.
     *
     * @return The property.
     * @since 4.1
     */
    @Incubating
    protected RegularFileProperty newInputFile() {
        return getServices().get(TaskFileVarFactory.class).newInputFile(this);
    }

    /**
     * Creates a new input directory property for this task.
     *
     * @return The property.
     * @since 4.3
     */
    @Incubating
    protected DirectoryProperty newInputDirectory() {
        return getServices().get(TaskFileVarFactory.class).newInputDirectory(this);
    }
}

@@ -1196,33 +1196,33 @@
      * @since 4.
-1
+4
 %0A     */%0A    @In
@@ -1486,33 +1486,33 @@
      * @since 4.
-1
+4
 %0A     */%0A    @In
@@ -1775,17 +1775,17 @@
 since 4.
-1
+4
 %0A     */
@@ -2063,9 +2063,9 @@
 e 4.
-3
+4
 %0A   

Fix binary compatibility