Re: Dependency changes in 5.8.1

"Thiago H. de Paula Figueiredo" <[email protected]>
Newsgroups gmane.comp.jakarta.tapestry.devel
Message-ID <CAE_88GZ5d-Qk+R5Rfx8eUJErFiNEAe-uhWuT9u0dyKOW2j6g2Q@mail.gmail.com>
On Mon, Apr 4, 2022 at 2:07 PM Ben Weidig <[email protected]> wrote:

> Hi,
>

Hello, Ben!


> after moving to 5.8.1 on more projects, I found an issue with a missing
> dependency due to some dependencies switching from 'compile' to
> 'implementation' in Gradle.
>

I had to do that during the Gradle 4.x to 7.x upgrade and indeed I had a
lot of cases I didn't know what dependency type to use. I guess I got at
least this one wrong.


> It's the right approach, we've done the same in our projects, but it's easy
> to miss something that might be required in an edge-case. Especially if
> IDEs like Eclipse can still resolve everything, but Gradle won't.
>

Thanks for spotting that!


> In our case, tapestry-webresources no longer has the Google Closure
> Compiler exposed, which is needed if a custom
> org.apache.tapestry5.webresources.GoogleClosureMinimizerOptionsProvider is
> provided.
>
> This is just a FYI mail, I've created an issue and pushed a fix already:
> https://issues.apache.org/jira/browse/TAP5-2716


Awesome! Thank you!


> But if you run into some missing dependencies, it might help to check
>
> https://github.com/apache/tapestry-5/commit/17d58c3956eee98f7684bb803d19f19b74bb22b5
> for a changed dependency.
> The workaround is to include the same dependency in your own build.gradle /
> pom.xml
>

[Insert thumbs up emoji here].

By the way, anyone else having problems with tapestry-hibernate-core
classes such as org.apache.tapestry5.hibernate.HibernateSessionSource not
being found after an 5.8.0 to 5.8.1 upgrade? I'm having them at my day job
and I'm flabbergasted at that because they're found if you use reflection.
I tried both Class.forName() and using Tapestry IoC's own ClasspathScanner.


>
> Cheers,
> Ben
>


-- 
Thiago
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.