Package com.uber.okbuck.core.annotation
Class AnnotationProcessorCache
- java.lang.Object
-
- com.uber.okbuck.core.annotation.AnnotationProcessorCache
-
public class AnnotationProcessorCache extends java.lang.ObjectKeeps a cache of the annotation processor dependencies and its scope.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTO_VALUE_GROUPstatic java.lang.StringAUTO_VALUE_NAME
-
Constructor Summary
Constructors Constructor Description AnnotationProcessorCache(org.gradle.api.Project project, BuckFileManager buckFileManager, java.lang.String processorBuckFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalizeProcessors()java.util.List<Scope>getAnnotationProcessorScopes(org.gradle.api.Project project, java.lang.String configurationString)Get all the scopes for the specified configuration.java.util.List<Scope>getAnnotationProcessorScopes(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration)Get all the scopes for the specified configuration.java.util.Map<java.nio.file.Path,java.util.List<Scope>>getBasePathToExternalDependencyScopeMap()Write the buck file for the java_annotation_processor rules.booleanhasEmptyAnnotationProcessors(org.gradle.api.Project project, java.lang.String configurationString)Checks if the configuration has any empty annotation processors.booleanhasEmptyAnnotationProcessors(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration)Checks if the configuration has any empty annotation processors.
-
-
-
Field Detail
-
AUTO_VALUE_GROUP
public static final java.lang.String AUTO_VALUE_GROUP
- See Also:
- Constant Field Values
-
AUTO_VALUE_NAME
public static final java.lang.String AUTO_VALUE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AnnotationProcessorCache
public AnnotationProcessorCache(org.gradle.api.Project project, BuckFileManager buckFileManager, java.lang.String processorBuckFile)
-
-
Method Detail
-
getAnnotationProcessorScopes
public java.util.List<Scope> getAnnotationProcessorScopes(org.gradle.api.Project project, java.lang.String configurationString)
Get all the scopes for the specified configuration. Returns one configuration per dependency. Will group auto value and its extensions together into one scope as well.- Parameters:
project- project on which the configuration is defined.configurationString- Configuration string which is used to query the deps.- Returns:
- A list of scopes generated by the configuration.
-
getAnnotationProcessorScopes
public java.util.List<Scope> getAnnotationProcessorScopes(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration)
Get all the scopes for the specified configuration. Returns one configuration per dependency. Will group auto value and its extensions together into one scope as well.- Parameters:
project- project on which the configuration is defined.configuration- Configuration which is used to query the deps.- Returns:
- A list of scopes generated by the configuration.
-
hasEmptyAnnotationProcessors
public boolean hasEmptyAnnotationProcessors(org.gradle.api.Project project, java.lang.String configurationString)Checks if the configuration has any empty annotation processors.- Parameters:
project- project on which the configuration is defined.configurationString- ConfigurationString which is used to query the deps.- Returns:
- A boolean whether the configuration has any empty annotation processors.
-
hasEmptyAnnotationProcessors
public boolean hasEmptyAnnotationProcessors(org.gradle.api.Project project, org.gradle.api.artifacts.Configuration configuration)Checks if the configuration has any empty annotation processors.- Parameters:
project- project on which the configuration is defined.configuration- Configuration which is used to query the deps.- Returns:
- A boolean whether the configuration has any empty annotation processors.
-
getBasePathToExternalDependencyScopeMap
public java.util.Map<java.nio.file.Path,java.util.List<Scope>> getBasePathToExternalDependencyScopeMap()
Write the buck file for the java_annotation_processor rules.
-
finalizeProcessors
public void finalizeProcessors()
-
-