-
Notifications
You must be signed in to change notification settings - Fork 561
8309381: Support JavaFX incubator modules #1616
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
Conversation
|
👋 Welcome back kcr! A progress list of the required criteria for merging this PR into |
|
@kevinrushforth This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
|
@kevinrushforth |
|
@kevinrushforth has indicated that a compatibility and specification (CSR) request is needed for this pull request. @kevinrushforth please create a CSR request for issue JDK-8309381 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
|
@andy-goryachev-oracle @arapte Can you review? |
Webrevs
|
andy-goryachev-oracle
left a comment
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.
looks consistent with the original changes, but easier to understand.
had a few minor suggestions, will re-approve if you decide to fix it (WRAIYDTFI).
| "jsobject", | ||
| "web", | ||
| "media", | ||
| "systemTests" |
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.
thank you for placing each entry on a separate line!
I would prefer to remove the blank lines around the comment so as not to break the visual grouping (the comments are typically syntax colored anyway unless the user is on TRS80)
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.
OK
settings.gradle
Outdated
| // BEGIN: incubator placeholder | ||
| //project(":incubator.mymod").projectDir = file("modules/jfx.incubator.mymod") | ||
| // END: incubator placeholder | ||
|
|
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.
same suggestion about empty lines
build.gradle
Outdated
| // BEGIN: incubator placeholder | ||
| //'incubator.mymod', | ||
| // END: incubator placeholder | ||
|
|
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.
(same comment about empty lines)
|
|
||
| // Add a project declaration for each incubator module here, leaving the | ||
| // incubator placeholder lines as an example. | ||
| // BEGIN: incubator placeholder |
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.
Q: maybe we should mention the JBS every time we say the word "incubator"?
It might be useful to anyone who is looking at the code and has no access to git history (or when git history is obscured by a move). I mean, JBS is our knowledge base, and it usually helps.
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.
I generally prefer not to do this. In this case, the JBS Enhancement isn't what we would want to point to anyway (it would just be a placeholder). I can see some value in pointing to the CSR, so I'll add that here (I don't think there a need to repeat it).
What would really be useful, though, is a pointer to a template with a sample module, along the lines of what I mentioned in #1617, and a pointer to the JEP (which gets back to an earlier discussion of a permanent repository for JEPs). I'll file a follow-up issue to address this.
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.
thank you, the CSR is definitely better.
Referring to a ticket has another positive side effect: it's easy to grep.
| 'graphics', | ||
| 'controls', | ||
|
|
||
| // Add an entry for each incubator module here, leaving the incubator |
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.
Can we check for the existence of a file in e.g. buildSrc/incubator.gradle instead, and if so, modify things like dependendProjects in that file?
The build.gradle is already huge and hard to understand/maintain. Every line we add to it makes it harder.
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.
That's an interesting idea. I'll prototype it and see how it looks.
|
I made the changes to split out the build logic from Click here to see the diff between this PR branch and v2. See README-incubator.md for instructions on creating a new incubator module. I also updated the sample incubator module, Click here to see the jfx.incubator.v2 diffs. @andy-goryachev-oracle Can you take a look? I do think it makes a better separation to get the build logic out of build.gradle, but I wonder whether we want to wait and do this as part of the larger build.gradle cleanup. |
could you create a draft PR for v2, so we can leave comments? |
Done. I created Draft PR #1646 |
|
I had a look (at v2). If this approach works then it's fine for now, but it repeats the sin of coupling configurations of (potentially) unrelated modules and will increase the build time for a normal build (at least it will from the looks of it). It can be fix as part of the cleanup, but I don't see an easy way to make it work "properly" with the current setup. |
I second that. Hence, I am ok with it as the build.gradle rehaul will probably take much more time, and the incubator module PR should not have to wait for that. It stresses the importancy of doing the "cleanup" (or modernization) of build.gradle, but I think we are all aware of that, so +1. |
|
@nlisker @johanvos @andy-goryachev-oracle Thanks for taking a look. On further reflection, I prefer to stick with the version in this PR, rather than doing something ad hoc for just the incubator modules (Andy recommended the same in this comment on Draft PR v2). So I propose to integrate this PR "as is", and file a follow-up bug for further improvements, linking it to the overall Gradle modernization umbrella Task, JDK-8344728. I'll wait until at least Tuesday of next week to see if there are additional comments. |
|
Alright, the changes are not big, so if you feel it's better to have them inside I'm fine with it. It's not going to be the make-or-break for the build file. |
|
This PR has been reviewed by 2 "R"eviewers, the last changes are trivial (added a comment and removed some blank lines). I am going to downgrade the requirements so it can be integrated. /reviewers 1 |
|
@andy-goryachev-oracle |
|
Thanks for the reviews. /integrate |
|
@kevinrushforth Pushed as commit 67eed6d. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR add the necessary support for JavaFX Incubator Modules. It includes the following:
build.gradleandsettings.gradleto document where to add your incubator module. Also addedjlinkflags to not resolve incubator modules by default and warn when resolving (same as is done for JDK incubator modules).javafx.base/module-info.javato document where to add the needed qualified exports to your module to access the utility class in 2.See PR #1617 for a sample module that is built on top of this PR's source branch.
This is almost ready to review. I will take it out of Draft in the next day or so.
/reviewers 2 reviewers
/csr
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1616/head:pull/1616$ git checkout pull/1616Update a local copy of the PR:
$ git checkout pull/1616$ git pull https://git.openjdk.org/jfx.git pull/1616/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1616View PR using the GUI difftool:
$ git pr show -t 1616Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1616.diff
Using Webrev
Link to Webrev Comment