Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
Copyright (C) 2016 Migeran
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.moe.gradle.tasks;
import org.gradle.api.GradleException;
import org.gradle.api.file.ConfigurableFileCollection;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.InputFile;
import org.gradle.api.tasks.InputFiles;
import org.gradle.api.tasks.Internal;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.api.tasks.SourceSet;
import org.moe.gradle.MoeExtension;
import org.moe.gradle.MoePlugin;
import org.moe.gradle.MoeSDK;
import org.moe.gradle.anns.IgnoreUnused;
import org.moe.gradle.anns.NotNull;
import org.moe.gradle.anns.Nullable;
import org.moe.gradle.utils.FileUtils;
import org.moe.gradle.utils.Require;
import org.moe.gradle.utils.StringUtils;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
public class Retrolambda extends AbstractBaseTask {
private static final String CONVENTION_RETROLAMBDA_JAR = "retrolambdaJar";
private static final String CONVENTION_INPUT_FILES = "inputFiles";
private static final String CONVENTION_CLASSPATH_FILES = "classpathFiles";
private static final String CONVENTION_DEFAULT_METHODS = "defaultMethods";
private static final String CONVENTION_NATJ_SUPPORT = "natjSupport";
private static final String CONVENTION_EXPANDED_CLASSES_DIR = "expandedClassesDir";
private static final String CONVENTION_OUTPUT_DIR = "outputDir";
@Nullable
private Object retrolambdaJar;
@InputFile
@NotNull
public File getRetrolambdaJar() {
return getProject().file(getOrConvention(retrolambdaJar, CONVENTION_RETROLAMBDA_JAR));
}
@IgnoreUnused
public void setRetrolambdaJar(@Nullable Object retrolambdaJar) {
this.retrolambdaJar = retrolambdaJar;
}
@Nullable
private Set