-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Replace groovy build-tools (buildSrc) with java #34459
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
Comments
Pinging @elastic/es-core-infra |
Hello, I would like to work on this. |
Hi @pt429sy that's great ! Feel free to pick a class and open a PR. |
just for info, I am working on |
Doing UpdateShasTask, probably will make a PR tonight. EDIT: Or tomorrow. |
I am interested in giving a try to |
Going to give |
I am working on DependenciesInfoTask, will raise a PR later |
I tried porting vagrant.VagrantPropertiesExtension file to Java but it seems all modules inside @atorok From what I understand, #34769 can be added against |
Going to give |
@akki Java code can't reference Groovy classes, but groovy can reference Java, so one has to start with leafs in the dependency tree when porting classes. |
This commit converts the logging related classes (only used for vagrant) to java from groovy. relates elastic#34459
This commit converts the logging related classes (only used for vagrant) to java from groovy. relates #34459
This commit converts the logging related classes (only used for vagrant) to java from groovy. relates #34459
Hi @atorok, I'd like to work on MavenFilteringHack if no one's working on it |
hello @alpar-t would like to work on |
@mark-vieira where do we stand on the |
My preference would be to remove it, and refactor the two remaining subclasses to not rely on Ant. So I'm not sure it's a good candidate for migration right now. |
@mark-vieira @alpar-t I just pulled the latest code and I see |
is there any class pending from the list where work is not in progress already, I would like to contribute. |
@sachinpaliwal1981 Both |
I would like to work on this, where can i start? |
I'd like to work on the code related to docs, SnippetTask and the related classes. I have a couple questions: I've seen both junit and spock used for tests. Is there one test framework that you want to make the standard, or does it not matter? Is there any documentation that spells out things like "This is what constitutes a valid code snippet", or is the existing implementation effectively the documentation as well? |
Yes, we want to prefer Spock going forward.
Yeah, I think we'll have to go off of the existing implementation. |
I'm having trouble getting Spock tests under build-tools-internal recognized by Gradle. I added details and examples in a comment to issue #78864 , thinking it may be related. |
@breskeby am I correct in thinking that this is something that you've been working on? |
@pugnascotia yes there is not much groovy left these days but the stuff that is left is more than just a simple port |
Pinging @elastic/es-delivery (Team:Delivery) |
Hey, I'm going to give a go to SnippetsTask |
We want to have build code implemented in Java to make it easier to maintain.
We can easily mix java and groovy implementations and everything is already set up to do so, so it's already easy to create new classes in Java.
It would also be great to take this opportunity to add tests for the newly written Java code.
The ingredients of a great rewrite:
project.afterEvaluate
in custom task implementations as well as any other configuration logic from the task constructor. The custom task constructor should not referenceproject
. Gradle calls methods annotated with@TaskAction
as well as@Input
,@Output
and the like at execution time rather than configuration time as defined by theGradle build lifecycle.
Here's a list of what is still in Groovy. Note that it goes from simple to complex and there are some inner dependencies :
The text was updated successfully, but these errors were encountered: