RingJavafor Ring

Maven packages tried

Twenty packages of Maven Central, each used through jMaven with a real call, and what was found.

t24_maven_central.ring downloads each package with jMaven, calls a class of it through the dynamic API and checks the result (20 checks, on Windows with JDK 25 and on Ubuntu with JDK 21). When Maven Central cannot be reached and a package is not in the cache (~/.ringjava/maven), the checks of that package are skipped with a note.

PackageCoordinatesJarsWhat is calledResult
Gsoncom.google.code.gson:gson:2.10.11JsonParser.parseString, Gson.toJsonworks
Guavacom.google.guava:guava:33.0.0-jre7Strings.repeat, Strings.padStart, Ints.max (an array argument)works
commons-iocommons-io:commons-io:2.15.11FilenameUtils.getExtension, getBaseNameworks
commons-csvorg.apache.commons:commons-csv:1.10.01CSVFormat.DEFAULT.parse, an iterator of records, a quoted fieldworks
commons-codeccommons-codec:commons-codec:1.16.01DigestUtils.md5Hex, sha1Hexworks
commons-textorg.apache.commons:commons-text:1.11.02StringEscapeUtils.escapeHtml4, WordUtils.capitalizeFullyworks (commons-lang3 comes with it)
SnakeYAMLorg.yaml:snakeyaml:2.21new Yaml().load of a document, a Map backworks
Joda-Timejoda-time:joda-time:2.12.71new LocalDate(2024,2,28).plusDays(2)works
OpenCSVcom.opencsv:opencsv:5.97new CSVParser().parseLineworks (returns a Java array: toList())
Apache HttpClient 5org.apache.httpcomponents.client5:httpclient5:5.34URIBuilder, HttpClients.createDefault()works

A second batch#

t27_maven_central2.ring does the same with ten more packages (25 checks, on Windows with JDK 25 and on Ubuntu with JDK 21).

PackageCoordinatesJarsWhat is calledResult
commons-math3org.apache.commons:commons-math3:3.6.11DescriptiveStatistics (mean, standard deviation), ArithmeticUtils.gcd, CombinatoricsUtils.binomialCoefficientworks
commons-compressorg.apache.commons:commons-compress:1.26.03GzipCompressorOutputStream into a ByteArrayOutputStream, then GzipCompressorInputStream backworks (commons-io and commons-lang3 come with it)
commons-collections4org.apache.commons:commons-collections4:4.41HashBag.getCount, DualHashBidiMap.getKeyworks
commons-validatorcommons-validator:commons-validator:1.8.05EmailValidator, IBANValidatorworks
ICU4Jcom.ibm.icu:icu4j:74.21Transliterator (Cyrillic to ASCII), NumberFormat for a German localeworks
Bouncy Castleorg.bouncycastle:bcprov-jdk18on:1.771SHA3Digest (a result written into an array), Hex.toHexStringworks
jBCryptorg.mindrot:jbcrypt:0.41BCrypt.hashpw, gensalt, checkpwworks
OkHttpcom.squareup.okhttp3:okhttp:4.12.08HttpUrl.get, queryParameter, newBuilder().addQueryParameterworks (Kotlin and Okio come with it)
org.jsonorg.json:json:202403031JSONObject: getString, getJSONArray, toStringworks
Mustache.javacom.github.spullara.mustache.java:compiler:0.9.101DefaultMustacheFactory.compile, execute into a StringWriterworks

Packages of the other pages of the manual: Jackson (jackson-databind), jsoup, commons-lang3, H2, SQLite JDBC and JavaFX are used by the samples and the tests of their own pages.

Findings#

RingJava - use Java classes and methods from Ring programs.