Make plugin register the task rather than relying on doLast and project references#5
Make plugin register the task rather than relying on doLast and project references#5marko-bekhta wants to merge 2 commits into
Conversation
sebersole
left a comment
There was a problem hiding this comment.
Minor suggestion. Looks good.
| import org.gradle.api.tasks.TaskAction; | ||
|
|
||
| /** | ||
| * Responsible for coordinating the actual injection of project version. Runs as a Gradle Action (doLast typically |
There was a problem hiding this comment.
| * Responsible for coordinating the actual injection of project version. Runs as a Gradle Action (doLast typically | |
| * Responsible for coordinating the actual injection of project version. |
c8c25c3 to
d635b0e
Compare
| public abstract Property<String> getVersion(); | ||
|
|
||
| @Input | ||
| public abstract ListProperty<TargetMember> getInjectionTargets(); |
There was a problem hiding this comment.
BTW, I've tried adding an output, as:
@OutputDirectory
public FileCollection getOutputFiles() {
return getClasspath();
}^ my thinking was since we update classes, it somewhat makes sense ...
but I had build issues on the ORM side when I tried building an entire project, rather than just a single module where the injection plugin is actually applied. Some of those modules that didn't need the plugin were complaining...
maybe it's because of that "global" declaration here:
🤔
d635b0e to
74972b4
Compare
I'll assume you were talking about the |
Yes, GH don't link the lines. |
related to #hibernate-orm-dev > Null safe and build time @ 💬