-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Current Gradle insists on having all 4 JDKs being installed/present #1874
Comments
We have never made any guarantees or offered any warranty about our sanity. The current build will work with just Java 21 though, you might be looking at an old build. |
This is more about the assumed sanity of the development systems. not the developers themselves. ;-)
Not sure what you mean by "an old build" - I'm (always) building the current "main" branch from the sources. First, there's this:
Why a perfectly good already-installed current Gradle isn't good enough for this Here's what I'm getting:
Here's the complete log: gradle-build.txt |
Hmmm... if you do a: javac --help it does show: --release doesn't it? |
|
I was facing the exact same issue, I am working off the current fork in github and running ./gradlew clean build I fixed it by setting BC_JDK8 in my bash file but keeping Java 21 as the default version |
We think it should now be possible to just use Java 21. Feedback would be appreciated. |
Better than before. But in the end - no joy.
|
What extra directories are in the distribution? I think to see this the checkstyle plugin would have to be wandering into something it shouldn't. |
None, as far as I know - "bc-java" is cloned directly: $ git remote -v
origin https://github.com/bcgit/bc-java.git (fetch)
origin https://github.com/bcgit/bc-java.git (push)
$
$ li
CONTRIBUTING.md bnd.sh* config/ kmip/ prov/
CONTRIBUTORS.html build/ core/ libs/ run_test.sh
LICENSE.html build.gradle docs/ mail/ scripts/
LICENSE.md build1-1 gradle/ misc/ settings.gradle
README.md build1-2 gradle.properties mls/ spotbugs/
SECURITY.md build1-3 gradlew* mod_test_ext.sh spotbugs.gradle
add_module.sh build1-4 gradlew.bat mod_test_prov.sh spotbugs.settings.gradle
ant/ build1-5to1-8 index.html osgi_scan.sh* spotbugs_settings.gradle
bc-build.properties build1-8+ jar_process.sh osgi_scan.xml test/
bc-build.user.properties@ buildj2me jce/ pg/ tls/
bc_maven_public_key.asc ci/ jmail/ pkix/ util/
$
Alas, I've no clue. What appears to me is that (a) |
Back to the drawing board... |
It is impossible to build BC with Gradle, because it seems to require that all the four JDKs - JDK8, JDK11, JDK17, JDK21 - are installed.
No sane organization, except for those who's distributing something for all of those JDKs, would allow keeping outdated and vulnerable JDKs around. So, we're frowned upon if we have JDK17 (my systems don't), and are forbidden to install JDK11 and JDK8 (and for a good reason, if you ask me).
So, please fix the Gradle build script/file to build its OSGI (or whatever that thing is called) with those JDKs that it can find, rather than insist on all 4. Thanks.
P.S. And/or maintain the Ant build in good shape, and we don't give a flying look for Gradle.
The text was updated successfully, but these errors were encountered: