-
Notifications
You must be signed in to change notification settings - Fork 263
Update Gradle Examples #220
base: master
Are you sure you want to change the base?
Conversation
roguexz
commented
Dec 9, 2019
- Update the build scripts to take advantage of the newer features in the plugin
- Enable the examples project as part of the root project
- Upgrade the Gradle wrapper to 6.0.1
* Update the build scripts to take advantage of the newer features in the plugin * Enable the examples project as part of the root project * Upgrade the Gradle wrapper to 6.0.1
Hopefully, we should get past the previous issue that surfaced. I still need to work on improving the |
Will look at the |
@Ladicek A little help please. Looks like the Gradle repository is no longer available,
|
@@ -11,7 +11,7 @@ | |||
<parent> | |||
<groupId>io.thorntail.examples</groupId> | |||
<artifactId>examples-parent</artifactId> | |||
<version>2.5.1.Final-SNAPSHOT</version> | |||
<version>2.6.1.Final-SNAPSHOT</version> |
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.
Ah, thanks :-) This didn't update because the module was commented out and I forgot about that.
I wonder why it's not looking into our Nexus... |
Interesting, what would the URL for your internal Nexus repository be? |
I added a commit to your PR that should fix the problem. At least it fixed the problem for me locally :-) |
Interesting. Let me look at resolving the current problem. It seems related to the my next round of work, which is using an appropriate ArtifactResolvingHelper that searches for artifacts in the right location. I might be doing a crossover between |
I wonder why it's taking 30 minutes to run... Also, and I should have probably mentioned it in the PR to thorntail/thorntail, I'm thinking if we perhaps aren't going a bit too far with the Gradle changes. For example, unconditionally adding Arquillian to all tests might not be the best thing to do -- sometimes, you don't want to use Arquillian. |
By switching the resolution handler, I should be able to fix this problem.
I agree. I thought about it over many days and was debating both sides of the argument. I finally decided to use the following points to make a decision
I am open to both options. Before my previous PR, we were pulling in Arquillian related dependencies explicitly. I anticipated that some folks might have concerns around the recent change, which is why I made it a simple one-liner to revert :) |
I think, I have found the problem. Will raise a PR against Thorntail once the local build goes through fine. |
I was thinking of addressing this comment by ensuring that there was a clear separate of concern and then realized that I have battled with this question sometime in the past as well :) So here is a quick gist of what's happening,
So, effectively speaking, the previous change isn't necessarily forcing too much of stuff on to a project. What we can do is stop applying the plugin implicitly. That would mean that all developers using the Thorntail Gradle integration (which I am sure we can quite literally count on our finger tips 😄) will need to update their project files to include the arquillian plugin explicitly. Do let me know if you would prefer adopting that approach so that the docs and the examples can be updated. |
We can rerun the tests here when a new snapshot is deployed into our Nexus. That should be in a few hours. I'll trigger the tests later today, or tomorrow at worst. |
I think we can keep the |
retest this please |
At the moment, there is no option. But with my next change I plan on introducing better handling for Gradle tests so that they move through faster. If that model goes through fine, then we can split it up and inform the few developers who have been using Gradle about it. The current inheritance model for ArtifactResolvingHelper on the Arquillian front is complicating things a little bit. I will look at the failures and try figuring out what is going on. I will post my findings after my analysis. |
Funny that "Linux: Uberjar" passed :-) |