I am working on a Gradle plugin that has a work that generates compatible Java source code. This code takes the generator into the input of a "static" directory (property value) in which the files should be placed in a particular language (using a specific threshold). In addition, if a particular configuration property is set to True, then it will search for files with the same border (or better, in a specific configuration) in the entire cell path.
I have to make sure that this work runs when any of its input dependencies are new.
In the property definition for "stable" location, it is easy to add @InputDirectory, but I "dynamic" input dependency.
I have a property that defines the name of the configuration that will be used to find additional files to that extent. We will call that "search configuration". This property is optional. If this is not set, then it will use "compilation" I also have the property which states that we will search for additional files in the first place or not. We will call that "dependency of inspection"
I think I can type an @input-annotated method which essentially returns the "configurations.searchConfiguration.files" list. We will call that "friendly" I think that this is the basic idea, though, I do not understand what to do about the "dependency of inspection" I can easily return "empty-handed" an empty list If "dependency of inspections" is false, but what exactly is the right thing to do? It seems that if a person has inspected "false" "after the building" after "building", then the next build should be run again.
Well, this is temporary, but I asked about this on the Gradal Forum and Mark Viere convinced me It really should be simple, though it requires @InputFiles instead of @Input. My special method looks like this:
@InputFiles def getOptionalYangClasspath () {Return introspect continuation? Project.configurations [yangFilesConfiguration]: Collections.emptyList ()}
No comments:
Post a Comment