-
-
Notifications
You must be signed in to change notification settings - Fork 6
Make plugin register the task rather than relying on doLast and project references #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, can you remove this empty constructor is not needed? foresee future use of that project parameter. Or rollback to instance with empty properties and maintain the previous DSL, idk because don't have test 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 @ 💬