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.
| Package | Coordinates | Jars | What is called | Result |
|---|---|---|---|---|
| Gson | com.google.code.gson:gson:2.10.1 | 1 | JsonParser.parseString, Gson.toJson | works |
| Guava | com.google.guava:guava:33.0.0-jre | 7 | Strings.repeat, Strings.padStart, Ints.max (an array argument) | works |
| commons-io | commons-io:commons-io:2.15.1 | 1 | FilenameUtils.getExtension, getBaseName | works |
| commons-csv | org.apache.commons:commons-csv:1.10.0 | 1 | CSVFormat.DEFAULT.parse, an iterator of records, a quoted field | works |
| commons-codec | commons-codec:commons-codec:1.16.0 | 1 | DigestUtils.md5Hex, sha1Hex | works |
| commons-text | org.apache.commons:commons-text:1.11.0 | 2 | StringEscapeUtils.escapeHtml4, WordUtils.capitalizeFully | works (commons-lang3 comes with it) |
| SnakeYAML | org.yaml:snakeyaml:2.2 | 1 | new Yaml().load of a document, a Map back | works |
| Joda-Time | joda-time:joda-time:2.12.7 | 1 | new LocalDate(2024,2,28).plusDays(2) | works |
| OpenCSV | com.opencsv:opencsv:5.9 | 7 | new CSVParser().parseLine | works (returns a Java array: toList()) |
| Apache HttpClient 5 | org.apache.httpcomponents.client5:httpclient5:5.3 | 4 | URIBuilder, 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).
| Package | Coordinates | Jars | What is called | Result |
|---|---|---|---|---|
| commons-math3 | org.apache.commons:commons-math3:3.6.1 | 1 | DescriptiveStatistics (mean, standard deviation), ArithmeticUtils.gcd, CombinatoricsUtils.binomialCoefficient | works |
| commons-compress | org.apache.commons:commons-compress:1.26.0 | 3 | GzipCompressorOutputStream into a ByteArrayOutputStream, then GzipCompressorInputStream back | works (commons-io and commons-lang3 come with it) |
| commons-collections4 | org.apache.commons:commons-collections4:4.4 | 1 | HashBag.getCount, DualHashBidiMap.getKey | works |
| commons-validator | commons-validator:commons-validator:1.8.0 | 5 | EmailValidator, IBANValidator | works |
| ICU4J | com.ibm.icu:icu4j:74.2 | 1 | Transliterator (Cyrillic to ASCII), NumberFormat for a German locale | works |
| Bouncy Castle | org.bouncycastle:bcprov-jdk18on:1.77 | 1 | SHA3Digest (a result written into an array), Hex.toHexString | works |
| jBCrypt | org.mindrot:jbcrypt:0.4 | 1 | BCrypt.hashpw, gensalt, checkpw | works |
| OkHttp | com.squareup.okhttp3:okhttp:4.12.0 | 8 | HttpUrl.get, queryParameter, newBuilder().addQueryParameter | works (Kotlin and Okio come with it) |
| org.json | org.json:json:20240303 | 1 | JSONObject: getString, getJSONArray, toString | works |
| Mustache.java | com.github.spullara.mustache.java:compiler:0.9.10 | 1 | DefaultMustacheFactory.compile, execute into a StringWriter | works |
- All twenty packages run with no change to RingJava; the largest of the second batch is OkHttp, with eight jars.
- A method that fills an array that you pass (Bouncy Castle
doFinal(out, 0)) writes into your array: make it withjArray("byte", list(32))and read it afterwards (for example withHex.toHexString). - Text with non-ASCII letters (the Cyrillic word of the ICU4J check) goes in and out unchanged.
- The result of a method that returns a
byte[](ByteArrayOutputStream.toByteArray) is a Ring text of raw bytes:ascii(text[1])is the first byte.
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#
- All ten packages resolve with their dependencies (the largest, Guava and OpenCSV, are seven jars) and run the first time, with no change to RingJava.
- The first download can fail on a bad connection (one
Connection resetwas seen on commons-io); the call raises an error and nothing wrong is left in the cache, so callingjMavenagain is enough. - A method that returns a Java array (OpenCSV
parseLine) gives an object:.toList()makes the Ring list. - HttpClient 5 and OpenCSV use SLF4J; without a binding Java prints three
SLF4J:lines on the error stream and goes on with a no-operation logger. Addslf4j-simplewithjMavento see the log. - A Ring text has no escapes: write a new line as
nlin the documents given to SnakeYAML or commons-csv.