Coder Social home page Coder Social logo

Comments (9)

Ekryd avatar Ekryd commented on July 26, 2024

Hi! SortPom version 3.0.1 supports Java 8, but 3.1.0 and forward has Java 11 as minimum requirement. Oracle dropped the support for Java 8 on March 2022 and there are quite a few new features in 11 to use, so I discontinued the support for 8.
I usually try to follow the support plan from Oracle:
https://www.oracle.com/java/technologies/java-se-support-roadmap.html

from sortpom.

sbernard31 avatar sbernard31 commented on July 26, 2024

Thx for the quick answer πŸ™

Oracle dropped the support for Java 8 on March 2022

Yep but extended to December 2030.

I will maybe try the 3.0.1 version, hoping there is not blocking issue for me :)

from sortpom.

Ekryd avatar Ekryd commented on July 26, 2024

Don’t think there are any major features. You can check the version history section in the readme.
Btw, Is it company policy or something else that stops you from using later versions of Java? Personally, I am longing for java 17 at work (we are using 11 now)

from sortpom.

sbernard31 avatar sbernard31 commented on July 26, 2024

Btw, Is it company policy or something else that stops you from using later versions of Java?

The project for which I want to maybe add sortpom has Java8 as minimal version.
This is an open source library and so aiming to be reused.
Even if world is moving through more recent version of Java, still be compliant to java8 does not enforce user to move to more recent version of jdk just for us and also be java8 compliant allow us to be more easily used in Android world.
See https://stackoverflow.com/questions/69643374/which-java-version-should-i-use-to-create-a-library-usable-with-android?noredirect=1#comment123110733_69643374

For maven plugin dependency, I could build project with most recent version of java and use toolchain to compile but I don't really want to bring out the big guns just for that.

Personally, I am longing for java 17 at work (we are using 11 now)

Yep I understand, but as an open source library developer, I need to live in the past πŸ˜… for user community.
One year ago, I was even stucked with java7 😬

from sortpom.

Ekryd avatar Ekryd commented on July 26, 2024

That is food for thought. Maybe I will reevaluate the Java 11 for this plugin. Perhaps I have some time this summer to see how much work it is. Thanks for the input!

from sortpom.

Ekryd avatar Ekryd commented on July 26, 2024

Hmmm, first glance doesn't look promising: https://stackoverflow.com/questions/54447541/how-to-write-code-in-java-11-but-target-java-8-and-above

from sortpom.

sbernard31 avatar sbernard31 commented on July 26, 2024

Hmmm, first glance doesn't look promising: https://stackoverflow.com/questions/54447541/how-to-write-code-in-java-11-but-target-java-8-and-above

That's why I said : "as an open source library developer, I need to live in the past" πŸ™‚

from sortpom.

Ekryd avatar Ekryd commented on July 26, 2024

I experimented a bit with java 8:

  • reverted a few usages of var
  • fmt plugin didn't want to work with java 8, can be fixed with Maven profiles
  • The new version of dom4j dependency needs 11 or higher. This replaced the old version of JDom 1 which had a security vulnerability that couldn't be fixed.

In order to fix the vulnerability, I had to upgrade to java 11. Sorry to say that this is the end of the road.

from sortpom.

sbernard31 avatar sbernard31 commented on July 26, 2024

In order to fix the vulnerability, I had to upgrade to java 11. Sorry to say that this is the end of the road.

Thx for giving it a try πŸ™ !

About :

The new version of dom4j dependency needs 11 or higher. This replaced the old version of JDom 1 which had a security vulnerability that couldn't be fixed.

Does it means that dom4j site web must be updated ? (it says Java 8)
(or maybe this not expected that domj4 need java 11 πŸ€”)

from sortpom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.