Different versions in BOM vs WAR

29 views
Skip to first unread message

Jérôme LELEU

unread,
Jul 2, 2021, 5:10:28 AM7/2/21
to CAS Developer
Hi,

I notice that the versions in the BOM are sometimes different from the versions in the WAR.

For example, in version 6.4.0-RC5, there is:
- guava 30.0-jre in the BOM
- guava 30.1.1-jre in the WAR.

Shouldn't both versions be the same?

Thanks.
Best regards,
Jérôme

Misagh

unread,
Jul 2, 2021, 5:11:45 AM7/2/21
to CAS Developer
They should.
> --
> You received this message because you are subscribed to the Google Groups "CAS Developer" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cas-dev+u...@apereo.org.
> To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-dev/CAP279Lyit7KSxekntCjbmHv3pTMNyjgawQky6C9z0%3DyC_zzMLg%40mail.gmail.com.

Jérôme LELEU

unread,
Jul 2, 2021, 8:31:15 AM7/2/21
to Misagh, CAS Developer
Hi,

OK. I agree.
So what's the fix? Changing the BOM generation process or changing the dependency versions in the gradle.properties?
Thanks.
Best regards,
Jérôme


Misagh

unread,
Jul 2, 2021, 8:33:06 AM7/2/21
to CAS Developer
The latter. You'd have to see where the conflict comes from first.

Jérôme LELEU

unread,
Jul 2, 2021, 8:51:15 AM7/2/21
to Misagh, CAS Developer
Hi,

Thanks for the feedback.
So this is something we must do manually when needed.
Best regards,
Jérôme


Misagh

unread,
Jul 2, 2021, 8:52:44 AM7/2/21
to CAS Developer
Only when you introduce your own dependencies. Otherwise, it needs to
be fixed at the source where you have to look for the source of
conflict.

Jérôme LELEU

unread,
Jul 2, 2021, 9:38:54 AM7/2/21
to Misagh, CAS Developer
Sorry but I'm not sure to follow you.

Let's take my guava example on master.

In the gradle.properties, I see: guavaVersion=30.0-jre

In the WEB-INF/lib directory of the cas-server-webapp WAR, I see:
guava-2.9.0.jar
guava-30.0-jre.jar
guava-30.1.1-jre.jar
jackson-datatype-guava-2.12.3.jar
listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar

What should I do? Update the gradle.properties file to version 30.1.1-jre for guava or search from which CAS dependency this version 30.1.1-jre comes from and exclude it in the dependencies.gradle file?

Thanks.
Best regards,
Jérôme


Misagh

unread,
Jul 2, 2021, 9:41:52 AM7/2/21
to Jérôme LELEU, CAS Developer
Sorry, I should have been more clear. You should first:

- search from which CAS dependency this version 30.1.1-jre comes from
and exclude it in the dependencies.gradle file.
- Then, optionally, upgrade guava to the latest.

Jérôme LELEU

unread,
Jul 2, 2021, 10:18:52 AM7/2/21
to Misagh, CAS Developer
OK. Thank you for the explanations
Reply all
Reply to author
Forward
0 new messages