Skip to content
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

Enhance the Gradle build as necessary after removing Ant support [LUCENE-9475] #10514

Closed
asfimport opened this issue Aug 22, 2020 · 20 comments
Closed

Comments

@asfimport
Copy link

asfimport commented Aug 22, 2020

Once the bulk of the Ant build system is removed, stuff will come bubbling up out of the cracks, especially as we try the first 9.0 release which will be Gradle only. Here we list some of the areas we'll have to be aware of. Please add as you see fit. Assigning to myself to track, but I certainly don't want hog all the fun.


Migrated from LUCENE-9475 by Erick Erickson (@ErickErickson), resolved Oct 27 2020
Linked issues:

Pull requests: apache/lucene-solr#1796, apache/lucene-solr#1806

@asfimport
Copy link
Author

asfimport commented Aug 22, 2020

Dawid Weiss (@dweiss) (migrated from JIRA)

Verify reference guide build works under Gradle

It should be fine - it's part of general check?

Remove Maven support and replace with "The Gradle Way" of doing Maven.

This is already covered in the list in #10119. I'll handle it, eventually. There is no specific "Maven" side of things: gradle descriptors translate into Maven descriptors and are published as such. The thing that needs to be done is assembling everything, setting up Apache deployment repository, etc.

@asfimport
Copy link
Author

asfimport commented Aug 23, 2020

Uwe Schindler (@uschindler) (migrated from JIRA)

Verify reference guide build works under Gradle

I think this means that our Jenkins builds work with Gradle.

That's what I am currently testing with Jenkins. I have some changes, see #10513!

@asfimport
Copy link
Author

ASF subversion and git services (migrated from JIRA)

Commit da8ea70 in lucene-solr's branch refs/heads/master from Erick Erickson
https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=da8ea70

LUCENE-9475: Enhance the Gradle build as necessary after removing Ant support

@asfimport
Copy link
Author

asfimport commented Aug 28, 2020

Cassandra Targett (@ctargett) (migrated from JIRA)

Crossed off the Verify Reference Guide builds item. That's been working fine for a few days now; Uwe is still working through other issues in #10513, though.

@asfimport
Copy link
Author

asfimport commented Aug 29, 2020

Tomoko Uchida (@mocobeta) (migrated from JIRA)

#10481 was fixed. Also this (re)enables Javadoc linter check on Gradle build.

@asfimport
Copy link
Author

Uwe Schindler (@uschindler) (migrated from JIRA)

I created a pull request to change the checkSourcePatterns task to remove the <groovy/> ant magic and execute the task's groovy code directly: apache/lucene-solr#1806

@asfimport
Copy link
Author

ASF subversion and git services (migrated from JIRA)

Commit bbf3aec in lucene-solr's branch refs/heads/master from Uwe Schindler
https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=bbf3aec

LUCENE-9475: Switch validateSourcePatterns away from Ant legacy (#1806)

@asfimport
Copy link
Author

ASF subversion and git services (migrated from JIRA)

Commit bbf3aec in lucene-solr's branch refs/heads/LUCENE-9215 from Uwe Schindler
https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=bbf3aec

LUCENE-9475: Switch validateSourcePatterns away from Ant legacy (#1806)

@asfimport
Copy link
Author

David Smiley (@dsmiley) (migrated from JIRA)

@rmuir I noticed that yesterday you committed a change to check-source-patterns.groovy to remove a prevention mechanism of the "var". The commit message didn't reference any issue or PR but I see this file migrated to a gradle build file the next day so I suppose this issue is fitting. Please don't make such changes without a JIRA or PR. This check was deliberate on master branch; I recall some conversations that led to it's addition – apache/lucene-solr@f6f1b42 and especially the rationale in the reported message: "var is not allowed in until we stop development on the 8x code line". We still do development on the 8x code line. When there is no such check on master, it's possible for back-ports to be more painful than they need to be thanks to this rather disruptive Java language feature. The thinking is we wait until 9.0 is released. WDYT? As we get closer to 9.0, I'm caring less about this constraint but I still think it's a good idea.
CC @ErickErickson

@asfimport
Copy link
Author

Robert Muir (@rmuir) (migrated from JIRA)

If solr wants to add such restrictions, they should form their own TLP and do it there. Don't hold back lucene code (especially when you don't have a clue as to how the feature even works, which is clear from the comments here). Master is on java 11.

@asfimport
Copy link
Author

Dawid Weiss (@dweiss) (migrated from JIRA)

Robert is known for being subtle. ;)

My personal opinion (on this in general, not in particular) is that we should be embracing those new language features and APIs. It's part of what makes programming fun and exciting - learning new things. Backports will not be automatic but it won't be anyway as we progress and branches diverge. In this case replacing vars can be probably done automatically from an IDE (much like the type is inferred by the compiler). More complex new language features may require hand-coding an equivalent.

@asfimport
Copy link
Author

Jan Høydahl (@janhoy) (migrated from JIRA)

This decision making process sucks.

@asfimport
Copy link
Author

Dawid Weiss (@dweiss) (migrated from JIRA)

I just expressed my opinion on the technical matter rather than how it was introduced. I agree it should have been called for in a separate Jira issue, like Uwe said.

@asfimport
Copy link
Author

ASF subversion and git services (migrated from JIRA)

Commit e3437a4 in lucene-solr's branch refs/heads/master from Dawid Weiss
https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=e3437a4

LUCENE-9475: remove obsolete ant-only jar sha's from Solr.

@asfimport
Copy link
Author

ASF subversion and git services (migrated from JIRA)

Commit 8c5ce09 in lucene-solr's branch refs/heads/master from Erick Erickson
https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=8c5ce090

LUCENE-9475: Enhance the Gradle build as necessary after removing Ant support, some minor text changes to solr/README.md and help.gradle

@asfimport
Copy link
Author

ASF subversion and git services (migrated from JIRA)

Commit 9f27041 in lucene-solr's branch refs/heads/reference_impl_gradle_updates from Dawid Weiss
https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=9f27041

LUCENE-9475: remove obsolete ant-only jar sha's from Solr.

@asfimport
Copy link
Author

Erick Erickson (@ErickErickson) (migrated from JIRA)

Is it time to close this and raise any other Gradle issues in another JIRA? Gradle is pretty well baked in to master at this point.

I'll close this on Wednesday absent objections. I don't think it's serving a valuable purpose at this point.

@asfimport
Copy link
Author

Dawid Weiss (@dweiss) (migrated from JIRA)

Yeah, close it, Erick.

@asfimport
Copy link
Author

Erick Erickson (@ErickErickson) (migrated from JIRA)

We're using Gradle, Ant has been removed from trunk. We can raise new JIRAs for anything that bubbles up.

@asfimport
Copy link
Author

Adrien Grand (@jpountz) (migrated from JIRA)

Closing after the 9.0.0 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants