foray-commit Mailing List for FOray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(139) |
Apr
(98) |
May
(250) |
Jun
(394) |
Jul
(84) |
Aug
(13) |
Sep
(420) |
Oct
(186) |
Nov
(1) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(108) |
Feb
(202) |
Mar
(291) |
Apr
(247) |
May
(374) |
Jun
(227) |
Jul
(231) |
Aug
(60) |
Sep
(31) |
Oct
(45) |
Nov
(18) |
Dec
|
2008 |
Jan
(38) |
Feb
(71) |
Mar
(142) |
Apr
|
May
(59) |
Jun
(6) |
Jul
(10) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(12) |
Feb
(4) |
Mar
(88) |
Apr
(121) |
May
(17) |
Jun
(30) |
Jul
|
Aug
(5) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2010 |
Jan
(11) |
Feb
(76) |
Mar
(11) |
Apr
|
May
(11) |
Jun
|
Jul
|
Aug
(44) |
Sep
(14) |
Oct
(7) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(168) |
2017 |
Jan
(77) |
Feb
(11) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
(6) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(88) |
Mar
(118) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(141) |
2021 |
Jan
(170) |
Feb
(20) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(62) |
Nov
(189) |
Dec
(162) |
2022 |
Jan
(201) |
Feb
(118) |
Mar
(8) |
Apr
|
May
(2) |
Jun
(47) |
Jul
(19) |
Aug
(14) |
Sep
(3) |
Oct
|
Nov
(28) |
Dec
(235) |
2023 |
Jan
(112) |
Feb
(23) |
Mar
(2) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
(70) |
Sep
(92) |
Oct
(20) |
Nov
(1) |
Dec
(1) |
2024 |
Jan
|
Feb
|
Mar
(1) |
Apr
(1) |
May
(14) |
Jun
(11) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(10) |
Feb
(29) |
Mar
|
Apr
(162) |
May
(245) |
Jun
(83) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <vic...@us...> - 2025-08-05 14:37:30
|
Revision: 13878 http://sourceforge.net/p/foray/code/13878 Author: victormote Date: 2025-08-05 14:37:28 +0000 (Tue, 05 Aug 2025) Log Message: ----------- Normalize whitespace in attribute values before comparing them. Modified Paths: -------------- trunk/foray/foray-xml/src/main/java/org/foray/xml/ForayXdiff.java Modified: trunk/foray/foray-xml/src/main/java/org/foray/xml/ForayXdiff.java =================================================================== --- trunk/foray/foray-xml/src/main/java/org/foray/xml/ForayXdiff.java 2025-06-26 16:03:23 UTC (rev 13877) +++ trunk/foray/foray-xml/src/main/java/org/foray/xml/ForayXdiff.java 2025-08-05 14:37:28 UTC (rev 13878) @@ -54,12 +54,10 @@ import javax.xml.stream.XMLStreamReader; /** - * This class reads two or more XML streams and finds the first difference (if - * any) between them. + * This class reads two or more XML streams and finds the first difference (if any) between them. * This is not intended to be a general-purpose XML diff and compare tool. - * It is suitable in situations where some tranformation (like a pretty-print) - * has taken place and we wish to make sure that no significant changes were - * made to the document. + * It is suitable in situations where some tranformation (like a pretty-print) has taken place and we wish to make sure + * that no significant changes were made to the document. */ public class ForayXdiff { @@ -82,10 +80,8 @@ /** The pull parsers for the input documents. */ private XMLStreamReader[] readers; - /** Caches the best description that we can find of the input source for - * each of the items in {@link #readers}. The Location instances provided - * don't provide this information, so we work around that limitation here. - */ + /** Caches the best description that we can find of the input source for each of the items in {@link #readers}. + * The Location instances provided don't provide this information, so we work around that limitation here. */ private String[] readerIDs; /** The logger (lazily created). Use {#getLogger()} to get the instance. */ @@ -92,6 +88,7 @@ private Logger logger; /* Begin configurable parameters. */ + /** Ignores character items that are all whitespace. */ private boolean ignoreCharacterWhitespace = true; @@ -176,11 +173,9 @@ } /** - * Compares the XML streams passed or implicitly passed in the constructor, - * and returns true if the streams are equivalent, false if there is one or - * more differences. - * @return True if the streams are equivalent, false if there is one or - * more differences. + * Compares the XML streams passed or implicitly passed in the constructor, and returns true if the streams are + * equivalent, false if there is one or more differences. + * @return True if the streams are equivalent, false if there is one or more differences. * @throws IOException For errors reading the documents. * @throws XMLStreamException For errors pulling events from the documents. */ @@ -279,10 +274,8 @@ } /** - * Checks the event type for all XMLStreamReaders for equality, returning - * the value if all are equal. - * @return If the events are equal, returns that value. Otherwise, returns - * {@link Integer#MIN_VALUE}. + * Checks the event type for all XMLStreamReaders for equality, returning the value if all are equal. + * @return If the events are equal, returns that value. Otherwise, returns {@link Integer#MIN_VALUE}. * @throws XMLStreamException For errors pulling the events. */ private int readEvents() throws XMLStreamException { @@ -366,8 +359,7 @@ /** * Pull an event from a specific document. - * @param i The index to the input documents indicating which document - * should pull an event. + * @param i The index to the input documents indicating which document should pull an event. * @return The pulled event. * @throws XMLStreamException For errors pulling the event. */ @@ -398,8 +390,7 @@ } /** - * Send a message to the user indicating a problem, and providing as much - * location information as possible. + * Send a message to the user indicating a problem, and providing as much location information as possible. * @param message The raw message to send to the user. */ private void message(final String message) { @@ -555,10 +546,9 @@ /** * Indicates whether all of the elements are equivalent. - * @return True if all of the Elements are equivalent. To be equivalent, - * they must have the same names, and must have exactly the same attributes - * and attribute values, although the attributes do not have to be in the - * same order. + * @return True if all of the Elements are equivalent. + * To be equivalent, they must have the same names, and must have exactly the same attributes and attribute values, + * although the attributes do not have to be in the same order. */ private boolean compareElements() { /* 1. Make sure the names are the same. */ @@ -581,19 +571,17 @@ return false; } } - /* 3. Make sure that each attribute in first document exists in the - * others, and that their values are equal. */ + /* 3. Make sure that each attribute in first document exists in the others, and that their values are equal. + * We already checked that the count is equal above, so we only need to test from the base to the comparatives. + * There is no need to check from the comparatives back to the base. */ /* Iterate through each attribute of the base element. */ for (int i = 0; i < baseAttributeCount; i++) { - final QName baseAttributeName = - this.readers[0].getAttributeName(i); - final String baseAttributeValue = - this.readers[0].getAttributeValue(i); + final QName baseAttributeName = this.readers[0].getAttributeName(i); + final String baseAttributeValue = XmlUtils.normalizeWhitespace(this.readers[0].getAttributeValue(i)); String baseNamespaceURI = baseAttributeName.getNamespaceURI(); - /* QName maps null attribute names to "", but the reader doesn't - * seem to know about that and treates "" as different from null. - * Therefore we must change it back to null for them to be seen - * as equivalent. */ + /* QName maps null attribute names to "", but the reader doesn't seem to know about that and treates "" as + * different from null. + * Therefore we must change it back to null for them to be seen as equivalent. */ if ("".equals(baseNamespaceURI)) { baseNamespaceURI = null; } @@ -600,17 +588,15 @@ /* Iterate through each of the other documents. */ for (int j = 1; j < this.readers.length; j++) { final XMLStreamReader reader = this.readers[j]; - final String compareAttributeValue = reader.getAttributeValue( - baseNamespaceURI, + final String rawAttributeValue = reader.getAttributeValue(baseNamespaceURI, baseAttributeName.getLocalPart()); + final String compareAttributeValue = XmlUtils.normalizeWhitespace(rawAttributeValue); if (compareAttributeValue == null) { - message("Attribute not found: " - + baseAttributeName.toString()); + message("Attribute not found: " + baseAttributeName.toString()); return false; } if (! compareAttributeValue.equals(baseAttributeValue)) { - message("Attribute values differ: " - + baseAttributeName.toString()); + message("Attribute values differ: " + baseAttributeName.toString()); return false; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-26 16:03:26
|
Revision: 13877 http://sourceforge.net/p/foray/code/13877 Author: victormote Date: 2025-06-26 16:03:23 +0000 (Thu, 26 Jun 2025) Log Message: ----------- Fix issues reported by checkstyle. Modified Paths: -------------- trunk/foray/foray-00-dev/config/checkstyle/checkstyle-suppressions.xml trunk/foray/foray-pdf-core/src/main/java/org/foray/pdf/PdfParserConstants.java trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfHandler.java trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfParser.java trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfRandomAccessInput.java Added Paths: ----------- trunk/foray/foray-pdf-core/src/main/java/org/foray/pdf/package-info.java trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/package-info.java Modified: trunk/foray/foray-00-dev/config/checkstyle/checkstyle-suppressions.xml =================================================================== --- trunk/foray/foray-00-dev/config/checkstyle/checkstyle-suppressions.xml 2025-06-26 15:44:45 UTC (rev 13876) +++ trunk/foray/foray-00-dev/config/checkstyle/checkstyle-suppressions.xml 2025-06-26 16:03:23 UTC (rev 13877) @@ -43,5 +43,6 @@ <!-- Permanently suppress some checks in data transfer interfaces. --> <suppress checks="LeftCurly" files="src.main.java.org.foray.fontParse.ttf.handler.*"/> <suppress checks="LeftCurly" files="src.main.java.org.foray.graphic.handler.*"/> + <suppress checks="LeftCurly" files="src.main.java.org.foray.pdf.PdfHandler.java"/> </suppressions> Modified: trunk/foray/foray-pdf-core/src/main/java/org/foray/pdf/PdfParserConstants.java =================================================================== --- trunk/foray/foray-pdf-core/src/main/java/org/foray/pdf/PdfParserConstants.java 2025-06-26 15:44:45 UTC (rev 13876) +++ trunk/foray/foray-pdf-core/src/main/java/org/foray/pdf/PdfParserConstants.java 2025-06-26 16:03:23 UTC (rev 13877) @@ -34,7 +34,10 @@ import java.util.Arrays; import java.util.List; -public class PdfParserConstants { +/** + * Constants used in PDF files. + */ +public final class PdfParserConstants { /** The standard tokenizer configuration for parsing a PDF. */ public static final ByteSequenceTokenizerConfig STD_TOKENIZER_CONFIG = @@ -67,4 +70,9 @@ public static final ByteSequenceTokenizerConfig STREAM_TOKENIZER_CONFIG = new ByteSequenceTokenizerConfig(PDF_STREAM_DELIMITERS, null, null, null); + /** + * Private constructor. This is a utility class and should not be instantiated. + */ + private PdfParserConstants() { } + } Added: trunk/foray/foray-pdf-core/src/main/java/org/foray/pdf/package-info.java =================================================================== --- trunk/foray/foray-pdf-core/src/main/java/org/foray/pdf/package-info.java (rev 0) +++ trunk/foray/foray-pdf-core/src/main/java/org/foray/pdf/package-info.java 2025-06-26 16:03:23 UTC (rev 13877) @@ -0,0 +1,33 @@ +/* + * Copyright 2025 The FOray Project. + * http://www.foray.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This work is in part derived from the following work(s), used with the + * permission of the licensor: + * Apache FOP, licensed by the Apache Software Foundation + * + */ + +/* + * $LastChangedRevision$ + * $LastChangedDate$ + * $LastChangedBy$ + */ + +/** + * <p>Classes used to parse PDF documents.</p> + */ + +package org.foray.pdf; Property changes on: trunk/foray/foray-pdf-core/src/main/java/org/foray/pdf/package-info.java ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev \ No newline at end of property Modified: trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfHandler.java =================================================================== --- trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfHandler.java 2025-06-26 15:44:45 UTC (rev 13876) +++ trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfHandler.java 2025-06-26 16:03:23 UTC (rev 13877) @@ -28,6 +28,9 @@ package org.foray.pdf; +/** + * Handler for events fired by {@link PdfParser}. + */ public interface PdfHandler { default void pdfVersion(final String value) { return; } Modified: trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfParser.java =================================================================== --- trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfParser.java 2025-06-26 15:44:45 UTC (rev 13876) +++ trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfParser.java 2025-06-26 16:03:23 UTC (rev 13877) @@ -35,6 +35,13 @@ */ public class PdfParser { + /** + * Parses a PDF File, firing events reporting the content. + * @param input The input to be parsed. + * @param offset The offset in {@code input} at which parsing should begin. + * @param handler The handler of the events fired by this parser. + * @throws IOException For IO errors. + */ public void parse(final PdfRandomAccessInput input, final int offset, final PdfHandler handler) throws IOException { input.seek(offset); Modified: trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfRandomAccessInput.java =================================================================== --- trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfRandomAccessInput.java 2025-06-26 15:44:45 UTC (rev 13876) +++ trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/PdfRandomAccessInput.java 2025-06-26 16:03:23 UTC (rev 13877) @@ -66,12 +66,12 @@ } @Override - public int lastIndexOf(ByteSequence sequence, int fromIndex) { + public int lastIndexOf(final ByteSequence sequence, final int fromIndex) { return getByteSequence().lastIndexOf(sequence); } @Override - public int indexOf(ByteSequence sequence, int fromIndex) { + public int indexOf(final ByteSequence sequence, final int fromIndex) { return getByteSequence().indexOf(sequence, fromIndex); } Added: trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/package-info.java =================================================================== --- trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/package-info.java (rev 0) +++ trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/package-info.java 2025-06-26 16:03:23 UTC (rev 13877) @@ -0,0 +1,33 @@ +/* + * Copyright 2025 The FOray Project. + * http://www.foray.org + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This work is in part derived from the following work(s), used with the + * permission of the licensor: + * Apache FOP, licensed by the Apache Software Foundation + * + */ + +/* + * $LastChangedRevision$ + * $LastChangedDate$ + * $LastChangedBy$ + */ + +/** + * <p>Classes shared by other PDF projects.</p> + */ + +package org.foray.pdf; Property changes on: trunk/foray/foray-pdf-parse/src/main/java/org/foray/pdf/package-info.java ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-26 15:44:48
|
Revision: 13876 http://sourceforge.net/p/foray/code/13876 Author: victormote Date: 2025-06-26 15:44:45 +0000 (Thu, 26 Jun 2025) Log Message: ----------- Fix checkstyle config and versioning. Modified Paths: -------------- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle trunk/foray/buildSrc/src/main/groovy/foray.library-conventions.gradle trunk/foray/gradle/libs.versions.toml Modified: trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-26 14:40:06 UTC (rev 13875) +++ trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-26 15:44:45 UTC (rev 13876) @@ -3,7 +3,6 @@ plugins { id 'java' id 'eclipse' - id 'checkstyle' id 'maven-publish' } @@ -33,6 +32,18 @@ ext.buildDate = new Date().format("yyyy-MM-dd 'at' HH:mm 'GMT'", TimeZone.getTimeZone("GMT")) +ext.versions = [ + /* IMPORTANT: Most dependency versions should be managed in gradle/libs.versions.toml. The versions recorded here + should apply only to dependencies that cannot be managed from that document, or for which we do not know how to + manage from that document. */ + + /* The latest version of checkstyle as of 2025-06-11 is 10.25. As of that same date, the current Eclipse plugin for + checkstyle uses Checkstyle 10.23.0. We will use that for now to avoid configuration conflicts between the two + versions. */ + checkstyle: "10.23.0" +] + + java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 @@ -136,13 +147,6 @@ } -checkstyle { - configFile = new File(rootProject.projectDir.absolutePath + '/foray-00-dev/config/checkstyle/checkstyle-config.xml') - configProperties.put('foray.root', rootProject.projectDir) - toolVersion = "10.23" -} - - tasks.withType(JavaCompile) { options.deprecation = true } Modified: trunk/foray/buildSrc/src/main/groovy/foray.library-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.library-conventions.gradle 2025-06-26 14:40:06 UTC (rev 13875) +++ trunk/foray/buildSrc/src/main/groovy/foray.library-conventions.gradle 2025-06-26 15:44:45 UTC (rev 13876) @@ -3,7 +3,15 @@ plugins { id 'foray.common-conventions' id 'java-library' + id 'checkstyle' } +checkstyle { + configFile = new File(rootProject.projectDir.absolutePath + '/foray-00-dev/config/checkstyle/checkstyle-config.xml') + configProperties.put('foray.root', rootProject.projectDir) + toolVersion = versions.checkstyle +} + + /* Last line of script. */ Modified: trunk/foray/gradle/libs.versions.toml =================================================================== --- trunk/foray/gradle/libs.versions.toml 2025-06-26 14:40:06 UTC (rev 13875) +++ trunk/foray/gradle/libs.versions.toml 2025-06-26 15:44:45 UTC (rev 13876) @@ -25,8 +25,8 @@ icu4j = "72.1" # Latest is 72.1 as of 2022-11-26. -checkerFramework = "3.49.2" # Latest is 3.49.2 as of 2025-04-20. See Note 7. -checkerFrameworkGradlePlugin = "0.6.55" # Latest is 0.6.55 as of 2025-06-24. See Note 7. +checkerFramework = "3.49.2" # Latest is 3.49.2 as of 2025-04-20. See Note 6. +checkerFrameworkGradlePlugin = "0.6.55" # Latest is 0.6.55 as of 2025-06-24. See Note 6. autonomousDependencyAnalysis = "2.19.0" # Latest is 2.19.0 as of 2025-06-25. @@ -40,8 +40,9 @@ #logbackClassic = "1.3.5" # Latest is 1.3.5 as of 2022-11-26. # Build-time-only dependencies that should never be permanently used in build.gradle files. */ -checkstyle = "10.23" # Latest is 10.25 as of 2025-06-11. See Note 6. +# checkstyle -- see axsl.common-conventions.gradle, ext.versions + # Notes on Dependency Releases (See above for references) # ======================================================== # 1. Latest release information above is per www.mvnrepository.com, and ignores non-released artifacts (no alpha or @@ -61,10 +62,7 @@ # Java version used to start Gradle. For now, using a JDK that matches the javaTargetCompatibility value above # seems to solve the problem. # -# 6. The current (as of 2025-06-11) Eclipse plugin for checkstyle uses Checkstyle 10.23. -# We will use that for now to avoid configuration conflicts between the two versions. -# -# 7. The version of the Checker Framework is irrelevant to us. +# 6. The version of the Checker Framework is irrelevant to us. # Instead, we use the Gradle Checker Framework Plugin which is a wrapper of, but a separate product from, the # Checker Framework, having its own release cycle, and its own release numbering system. # https://github.com/kelloggm/checkerframework-gradle-plugin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-26 14:40:09
|
Revision: 13875 http://sourceforge.net/p/foray/code/13875 Author: victormote Date: 2025-06-26 14:40:06 +0000 (Thu, 26 Jun 2025) Log Message: ----------- Fix junit dependency. Modified Paths: -------------- trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle trunk/foray/gradle/libs.versions.toml Modified: trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle 2025-06-26 12:42:56 UTC (rev 13874) +++ trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle 2025-06-26 14:40:06 UTC (rev 13875) @@ -5,7 +5,6 @@ } dependencies { - testImplementation (platform libs.junit.bom) testImplementation libs.junit.jupiter testRuntimeOnly libs.junit.platform.launcher Modified: trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle 2025-06-26 12:42:56 UTC (rev 13874) +++ trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle 2025-06-26 14:40:06 UTC (rev 13875) @@ -8,7 +8,6 @@ dependencies { /* Allow test fixtures to make assertions and use Mockito. */ - testFixturesImplementation (platform libs.junit.bom) testFixturesImplementation libs.junit.jupiter testFixturesImplementation libs.mockito } Modified: trunk/foray/gradle/libs.versions.toml =================================================================== --- trunk/foray/gradle/libs.versions.toml 2025-06-26 12:42:56 UTC (rev 13874) +++ trunk/foray/gradle/libs.versions.toml 2025-06-26 14:40:06 UTC (rev 13875) @@ -125,8 +125,7 @@ checker-framework = { group = "org.checkerframework", name = "checker", version.ref = "checkerFramework" } checker-qual = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerFramework" } -junit-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } -junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter" } +junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter", version.ref = "junit" } junit-platform-launcher = { group = "org.junit.platform", name = "junit-platform-launcher" } mockito = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-26 12:42:58
|
Revision: 13874 http://sourceforge.net/p/foray/code/13874 Author: victormote Date: 2025-06-26 12:42:56 +0000 (Thu, 26 Jun 2025) Log Message: ----------- Remove unused dependencies. Modified Paths: -------------- trunk/foray/foray-graphic/build.gradle Modified: trunk/foray/foray-graphic/build.gradle =================================================================== --- trunk/foray/foray-graphic/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) +++ trunk/foray/foray-graphic/build.gradle 2025-06-26 12:42:56 UTC (rev 13874) @@ -15,8 +15,6 @@ implementation libs.batik.anim api libs.batik.dom implementation libs.batik.util - api (group: "xml-apis", name: "xml-apis", version: "1.4.01") - api (group: "xml-apis", name: "xml-apis-ext", version: "1.3.04") api libs.jeuclid api libs.svg.dom api libs.mathml.dom This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-26 12:31:03
|
Revision: 13873 http://sourceforge.net/p/foray/code/13873 Author: victormote Date: 2025-06-26 12:31:00 +0000 (Thu, 26 Jun 2025) Log Message: ----------- Make gradle libs more consistent. Modified Paths: -------------- trunk/foray/build.gradle trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle trunk/foray/foray-app/build.gradle trunk/foray/foray-areatree/build.gradle trunk/foray/foray-common/build.gradle trunk/foray/foray-core/build.gradle trunk/foray/foray-font/build.gradle trunk/foray/foray-fotree/build.gradle trunk/foray/foray-graphic/build.gradle trunk/foray/foray-orthography/build.gradle trunk/foray/foray-pdf/build.gradle trunk/foray/foray-primitive/build.gradle trunk/foray/foray-ps/build.gradle trunk/foray/foray-ps-data/build.gradle trunk/foray/foray-render/build.gradle trunk/foray/foray-xml/build.gradle trunk/foray/foray-zz-attic/build.gradle trunk/foray/gradle/libs.versions.toml Modified: trunk/foray/build.gradle =================================================================== --- trunk/foray/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -166,9 +166,9 @@ } dependencies { - checkerFramework libs.checkerFramework - compileOnly libs.checkerQual - testCompileOnly libs.checkerQual + checkerFramework libs.checker.framework + compileOnly libs.checker.qual + testCompileOnly libs.checker.qual } } Modified: trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -5,9 +5,9 @@ } dependencies { - testImplementation (platform libs.junitBom) - testImplementation libs.junitJupiter - testRuntimeOnly libs.junitPlatformLauncher + testImplementation (platform libs.junit.bom) + testImplementation libs.junit.jupiter + testRuntimeOnly libs.junit.platform.launcher testImplementation libs.mockito } Modified: trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -8,8 +8,8 @@ dependencies { /* Allow test fixtures to make assertions and use Mockito. */ - testFixturesImplementation (platform libs.junitBom) - testFixturesImplementation libs.junitJupiter + testFixturesImplementation (platform libs.junit.bom) + testFixturesImplementation libs.junit.jupiter testFixturesImplementation libs.mockito } Modified: trunk/foray/foray-app/build.gradle =================================================================== --- trunk/foray/foray-app/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-app/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -8,48 +8,48 @@ description = 'foray-app' dependencies { - implementation libs.servletApi - implementation libs.xmlResolver - implementation libs.ant - implementation libs.commonsIo - implementation libs.commonsCli + implementation libs.servlet.api + implementation libs.xml.resolver + implementation libs.ant + implementation libs.commons.io + implementation libs.commons.cli - implementation libs.axsl.font - implementation libs.axsl.linebreak - implementation libs.axsl.ps - implementation libs.axsl.areatree - implementation libs.axsl.output - implementation libs.axsl.fotree - implementation libs.axsl.galley - implementation libs.axsl.orthography - implementation libs.axsl.graphic - implementation libs.axsl.layout - implementation libs.axsl.speech - implementation libs.axsl.mif - implementation libs.axsl.pdf + implementation libs.axsl.font + implementation libs.axsl.linebreak + implementation libs.axsl.ps + implementation libs.axsl.areatree + implementation libs.axsl.output + implementation libs.axsl.fotree + implementation libs.axsl.galley + implementation libs.axsl.orthography + implementation libs.axsl.graphic + implementation libs.axsl.layout + implementation libs.axsl.speech + implementation libs.axsl.mif + implementation libs.axsl.pdf - implementation (project(':foray-areatree')) - implementation (project(':foray-common')) - implementation (project(':foray-core')) - implementation (project(':foray-font')) - implementation (project(':foray-fotree')) - implementation (project(':foray-graphic')) - implementation (project(':foray-layout')) - implementation (project(':foray-mif')) - implementation (project(':foray-orthography')) - implementation (project(':foray-output')) - implementation (project(':foray-pdf')) - implementation (project(':foray-pioneer')) - implementation (project(':foray-ps')) - implementation (project(':foray-render')) - implementation (project(':foray-speech')) - implementation (project(':foray-linebreak')) + implementation project(':foray-areatree') + implementation project(':foray-common') + implementation project(':foray-core') + implementation project(':foray-font') + implementation project(':foray-fotree') + implementation project(':foray-graphic') + implementation project(':foray-layout') + implementation project(':foray-mif') + implementation project(':foray-orthography') + implementation project(':foray-output') + implementation project(':foray-pdf') + implementation project(':foray-pioneer') + implementation project(':foray-ps') + implementation project(':foray-render') + implementation project(':foray-speech') + implementation project(':foray-linebreak') - testFixturesImplementation (project(':foray-areatree')) - testFixturesImplementation (project(':foray-core')) - testFixturesImplementation (project(':foray-fotree')) - testFixturesImplementation (project(':foray-pioneer')) + testFixturesImplementation project(':foray-areatree') + testFixturesImplementation project(':foray-core') + testFixturesImplementation project(':foray-fotree') + testFixturesImplementation project(':foray-pioneer') testImplementation(testFixtures(libs.axsl.fotree)) } Modified: trunk/foray/foray-areatree/build.gradle =================================================================== --- trunk/foray/foray-areatree/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-areatree/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,18 +1,18 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.test-conventions" + id "foray.logging-conventions" } -description = 'foray-areatree' +description = "foray-areatree" dependencies { - api libs.svg.lib - api libs.mathml.lib + api libs.svg.dom + api libs.mathml.dom - api libs.axsl.areatree - api libs.axsl.font - api libs.axsl.fotree + api libs.axsl.areatree + api libs.axsl.font + api libs.axsl.fotree /* We dislike declaring a direct dependency on axsl-galley here as axsl-areatree is intended to be a direct superset * of it, and a dependency on axsl-areatree should be sufficient. Indeed, from a gradle standpoint it is, as gradle * handles the transitive dependency properly. However, there is no build pattern (known to us) that allows a module @@ -19,16 +19,16 @@ * to declare that its API is a direct (non-transitive) superset of another module's API. Since we are using the * autonomousapps dependency-analysis tool, which (for good reason) dislikes having transitive dependencies * accidentally leak into the API of client code, we declare a direct dependency on axsl-galley here. */ - api libs.axsl.galley - api libs.axsl.graphic - api libs.axsl.i18n - api libs.axsl.orthography - api libs.axsl.value - implementation libs.axsl.constants - implementation libs.axsl.kp.model + api libs.axsl.galley + api libs.axsl.graphic + api libs.axsl.i18n + api libs.axsl.orthography + api libs.axsl.value + implementation libs.axsl.constants + implementation libs.axsl.kp.model - api (project(':foray-common')) - implementation (project(':foray-primitive')) + api project(":foray-common") + implementation project(":foray-primitive") } javadoc { Modified: trunk/foray/foray-common/build.gradle =================================================================== --- trunk/foray/foray-common/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-common/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,24 +1,24 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' + id "foray.library-conventions" + id "foray.test-conventions" /* TODO: foray-common should probably not have a dependency on logging. */ - id 'foray.logging-conventions' + id "foray.logging-conventions" } -description = 'foray-common' +description = "foray-common" dependencies { - implementation libs.commonsIo - implementation libs.icu4j + implementation libs.commons.io + implementation libs.icu4j - implementation libs.axsl.primitive - implementation libs.axsl.i18n - implementation libs.axsl.kp.model - implementation libs.axsl.ps - implementation libs.axsl.constants - implementation libs.axsl.value + implementation libs.axsl.primitive + implementation libs.axsl.i18n + implementation libs.axsl.kp.model + implementation libs.axsl.ps + implementation libs.axsl.constants + implementation libs.axsl.value - implementation project(':foray-primitive') + implementation project(":foray-primitive") } javadoc { @@ -29,10 +29,10 @@ /* We want the DTDs to live as part of the website files, so we need to copy them into the jar file here. */ jar { - from rootProject.projectDir.absolutePath + '/foray-00-dev/doc/web/dtds/0.1/en/', + from rootProject.projectDir.absolutePath + "/foray-00-dev/doc/web/dtds/0.1/en/", { - include 'foray-config.dtd' - into '/resources/org/foray/dtds/' + include "foray-config.dtd" + into "/resources/org/foray/dtds/" } } Modified: trunk/foray/foray-core/build.gradle =================================================================== --- trunk/foray/foray-core/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-core/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,27 +1,27 @@ plugins { - id 'foray.library-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.logging-conventions" } -description = 'foray-core' +description = "foray-core" dependencies { - implementation libs.xmlResolver + implementation libs.xml.resolver - api libs.axsl.areatree - api libs.axsl.fotree - api libs.axsl.font - implementation libs.axsl.galley - api libs.axsl.graphic - api libs.axsl.layout - api libs.axsl.orthography - api libs.axsl.output - api libs.axsl.speech - api libs.axsl.linebreak - implementation libs.axsl.constants + api libs.axsl.areatree + api libs.axsl.fotree + api libs.axsl.font + implementation libs.axsl.galley + api libs.axsl.graphic + api libs.axsl.layout + api libs.axsl.orthography + api libs.axsl.output + api libs.axsl.speech + api libs.axsl.linebreak + implementation libs.axsl.constants - api (project(':foray-common')) - api (project(':foray-xml')) + api project(":foray-common") + api project(":foray-xml") } javadoc { @@ -32,10 +32,10 @@ /* We want the DTDs to live as part of the website files, so we need to copy them into the jar file here. */ jar { - from rootProject.projectDir.absolutePath + '/doc/web/dtds/0.1/en/', + from rootProject.projectDir.absolutePath + "/doc/web/dtds/0.1/en/", { - include '*.dtd' - into '/resources/org/foray/dtds/' + include "*.dtd" + into "/resources/org/foray/dtds/" } } Modified: trunk/foray/foray-font/build.gradle =================================================================== --- trunk/foray/foray-font/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-font/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,16 +1,16 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.test-conventions" + id "foray.logging-conventions" } -description = 'foray-font' +description = "foray-font" dependencies { - api libs.commonsIo - implementation libs.commonsDiscovery - api libs.commonsCli + api libs.commons.io + implementation libs.commons.discovery + api libs.commons.cli api libs.axsl.primitive api libs.axsl.font @@ -19,13 +19,13 @@ implementation libs.axsl.constants api libs.axsl.value - api (project(':foray-common')) - implementation (project(':foray-primitive')) - api (project(':foray-xml')) - api (project(':foray-ps-data')) - api (project(':foray-font-parse')) + api project(":foray-common") + implementation project(":foray-primitive") + api project(":foray-xml") + api project(":foray-ps-data") + api project(":foray-font-parse") - testRuntimeOnly (project(':foray-ps')) + testRuntimeOnly project(":foray-ps") } @@ -41,12 +41,12 @@ outputs.upToDateWhen { false } description = "Parse and serialize the Base-14 metrics files" classpath = sourceSets.main.runtimeClasspath - mainClass = 'org.foray.font.format.type1.Type1MetricsSerializer' - args('--input') - args('src/main/data/base-14') - args('--output') - args('src/main/resources/resources/org/foray/font/base14') - args('--pattern') + mainClass = "org.foray.font.format.type1.Type1MetricsSerializer" + args("--input") + args("src/main/data/base-14") + args("--output") + args("src/main/resources/resources/org/foray/font/base14") + args("--pattern") args('^.*\\.afm$') } Modified: trunk/foray/foray-fotree/build.gradle =================================================================== --- trunk/foray/foray-fotree/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-fotree/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,10 +1,10 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.test-conventions" + id "foray.logging-conventions" } -description = 'foray-fotree' +description = "foray-fotree" dependencies { @@ -20,25 +20,25 @@ */ - api libs.svg.lib - api libs.mathml.lib + api libs.svg.dom + api libs.mathml.dom /* TODO: Replace this dependency on batik-anim, used for parsing SVGDocument, with something more lightweight. */ - implementation libs.batikAnim + implementation libs.batik.anim - api libs.axsl.constants - api libs.axsl.fotree - implementation libs.axsl.primitive - api libs.axsl.i18n - api libs.axsl.orthography - api libs.axsl.kp.model - implementation libs.axsl.constants - api libs.axsl.value + api libs.axsl.constants + api libs.axsl.fotree + implementation libs.axsl.primitive + api libs.axsl.i18n + api libs.axsl.orthography + api libs.axsl.kp.model + implementation libs.axsl.constants + api libs.axsl.value - api (project(':foray-common')) - implementation (project(':foray-primitive')) - api (project(':foray-xml')) + api project(":foray-common") + implementation project(":foray-primitive") + api project(":foray-xml") - testImplementation testFixtures(libs.axsl.fotree) + testImplementation testFixtures(libs.axsl.fotree) } javadoc { Modified: trunk/foray/foray-graphic/build.gradle =================================================================== --- trunk/foray/foray-graphic/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-graphic/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,37 +1,37 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.test-conventions" + id "foray.logging-conventions" } -description = 'foray-graphic' +description = "foray-graphic" dependencies { - api libs.xmlgraphicsCommons - api libs.batikBridge - api libs.batikGvt - implementation libs.batikParser - implementation libs.batikTranscoder - implementation libs.batikAnim - api libs.batikDom - implementation libs.batikUtil - api (group: "xml-apis", name: "xml-apis", version: "1.4.01") - api (group: "xml-apis", name: "xml-apis-ext", version: "1.3.04") - api libs.jeuclid - api libs.svg.lib - api libs.mathml.lib + api libs.xmlgraphics.commons + api libs.batik.bridge + api libs.batik.gvt + implementation libs.batik.parser + implementation libs.batik.transcoder + implementation libs.batik.anim + api libs.batik.dom + implementation libs.batik.util + api (group: "xml-apis", name: "xml-apis", version: "1.4.01") + api (group: "xml-apis", name: "xml-apis-ext", version: "1.3.04") + api libs.jeuclid + api libs.svg.dom + api libs.mathml.dom - api libs.axsl.constants - api libs.axsl.primitive - api libs.axsl.font - api libs.axsl.graphic - api libs.axsl.orthography - api libs.axsl.ps - api libs.axsl.value + api libs.axsl.constants + api libs.axsl.primitive + api libs.axsl.font + api libs.axsl.graphic + api libs.axsl.orthography + api libs.axsl.ps + api libs.axsl.value - api (project(':foray-common')) - implementation (project(':foray-primitive')) - implementation (project(':foray-xml')) + api project(":foray-common") + implementation project(":foray-primitive") + implementation project(":foray-xml") } javadoc { Modified: trunk/foray/foray-orthography/build.gradle =================================================================== --- trunk/foray/foray-orthography/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-orthography/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,27 +1,27 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.test-conventions" + id "foray.logging-conventions" } -description = 'foray-orthography' +description = "foray-orthography" dependencies { - api libs.commonsCli - api libs.commonsIo - implementation libs.icu4j + api libs.commons.cli + api libs.commons.io + implementation libs.icu4j - implementation libs.axsl.constants - api libs.axsl.fotree - api libs.axsl.i18n - api libs.axsl.kp.model - api libs.axsl.orthography - api libs.axsl.primitive - api libs.axsl.value + implementation libs.axsl.constants + api libs.axsl.fotree + api libs.axsl.i18n + api libs.axsl.kp.model + api libs.axsl.orthography + api libs.axsl.primitive + api libs.axsl.value - api (project(':foray-common')) - api (project(':foray-primitive')) - api (project(':foray-xml')) + api project(":foray-common") + api project(":foray-primitive") + api project(":foray-xml") } @@ -37,12 +37,12 @@ outputs.upToDateWhen { false } description = "Parse and serialize the hyphenation patterns" classpath = sourceSets.main.runtimeClasspath - mainClass = 'org.foray.orthography.util.PatternSerializer' - args('--input') - args('src/main/data/hyph-patterns') - args('--output') - args('src/main/resources/resources/org/foray/orthography/hyphPatterns') - args('--pattern') + mainClass = "org.foray.orthography.util.PatternSerializer" + args("--input") + args("src/main/data/hyph-patterns") + args("--output") + args("src/main/resources/resources/org/foray/orthography/hyphPatterns") + args("--pattern") args('^.*\\.xml$') } Modified: trunk/foray/foray-pdf/build.gradle =================================================================== --- trunk/foray/foray-pdf/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-pdf/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,31 +1,31 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.test-conventions" + id "foray.logging-conventions" } -description = 'foray-pdf' +description = "foray-pdf" dependencies { - api libs.batikAwtUtil + api libs.batik.awt.util - api libs.axsl.constants - api libs.axsl.pdf - api libs.axsl.primitive - api libs.axsl.font - api libs.axsl.graphic - api libs.axsl.orthography - api libs.axsl.ps - implementation libs.axsl.constants - api libs.axsl.value + api libs.axsl.constants + api libs.axsl.pdf + api libs.axsl.primitive + api libs.axsl.font + api libs.axsl.graphic + api libs.axsl.orthography + api libs.axsl.ps + implementation libs.axsl.constants + api libs.axsl.value - api (project(':foray-common')) - implementation (project(':foray-primitive')) - implementation (project(':foray-pdf-core')) - implementation (project(":foray-ps-data")) + api project(":foray-common") + implementation project(":foray-primitive") + implementation project(":foray-pdf-core") + implementation project(":foray-ps-data") - testImplementation (project(':foray-font')) - testImplementation (project(':foray-ps')) + testImplementation project(":foray-font") + testImplementation project(":foray-ps") } javadoc { Modified: trunk/foray/foray-primitive/build.gradle =================================================================== --- trunk/foray/foray-primitive/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-primitive/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,14 +1,14 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' + id "foray.library-conventions" + id "foray.test-conventions" } -description = 'foray-primitive' +description = "foray-primitive" dependencies { - implementation libs.commonsIo - api libs.axsl.constants - api libs.axsl.primitive + implementation libs.commons.io + api libs.axsl.constants + api libs.axsl.primitive } javadoc { Modified: trunk/foray/foray-ps/build.gradle =================================================================== --- trunk/foray/foray-ps/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-ps/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,21 +1,21 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.test-conventions" + id "foray.logging-conventions" } -description = 'foray-ps' +description = "foray-ps" dependencies { - implementation libs.commonsCli + implementation libs.commons.cli - api libs.axsl.constants - api libs.axsl.primitive - api libs.axsl.ps + api libs.axsl.constants + api libs.axsl.primitive + api libs.axsl.ps - implementation (project(':foray-common')) - implementation (project(':foray-primitive')) - implementation (project(':foray-ps-data')) + implementation project(":foray-common") + implementation project(":foray-primitive") + implementation project(":foray-ps-data") } Modified: trunk/foray/foray-ps-data/build.gradle =================================================================== --- trunk/foray/foray-ps-data/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-ps-data/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,20 +1,20 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.test-conventions" + id "foray.logging-conventions" } -description = 'foray-ps-data' +description = "foray-ps-data" dependencies { - implementation libs.commonsCli + implementation libs.commons.cli - api libs.axsl.ps + api libs.axsl.ps - implementation (project(':foray-common')) - implementation (project(':foray-primitive')) + implementation project(":foray-common") + implementation project(":foray-primitive") - testImplementation libs.commonsIo + testImplementation libs.commons.io } javadoc { Modified: trunk/foray/foray-render/build.gradle =================================================================== --- trunk/foray/foray-render/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-render/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,30 +1,30 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' + id "foray.library-conventions" + id "foray.test-conventions" } -description = 'foray-render' +description = "foray-render" dependencies { - implementation libs.svg.lib + implementation libs.svg.dom - api libs.axsl.constants - implementation libs.axsl.primitive - api libs.axsl.output - api libs.axsl.font - api libs.axsl.pdf - api libs.axsl.galley - api libs.axsl.value - api libs.axsl.graphic - implementation libs.axsl.orthography - api libs.axsl.ps + api libs.axsl.constants + implementation libs.axsl.primitive + api libs.axsl.output + api libs.axsl.font + api libs.axsl.pdf + api libs.axsl.galley + api libs.axsl.value + api libs.axsl.graphic + implementation libs.axsl.orthography + api libs.axsl.ps /* TODO: Replace this dependency on batik-anim, used for parsing SVGDocument, with something more lightweight. */ - implementation libs.batikAnim + implementation libs.batik.anim - implementation (project(':foray-common')) - implementation (project(':foray-primitive')) - api (project(':foray-output')) - api (project(':foray-ps-data')) + implementation project(":foray-common") + implementation project(":foray-primitive") + api project(":foray-output") + api project(":foray-ps-data") } javadoc { Modified: trunk/foray/foray-xml/build.gradle =================================================================== --- trunk/foray/foray-xml/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-xml/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,23 +1,23 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.test-conventions" + id "foray.logging-conventions" } -description = 'foray-xml' +description = "foray-xml" dependencies { - implementation libs.commonsCli - implementation libs.xmlResolver - implementation libs.xmlSchemaCore + implementation libs.commons.cli + implementation libs.xml.resolver + implementation libs.xmlschema.core /* The Xerces parser is used because it handles numeric character references correctly, while the standard Java parser currently does not. */ - implementation libs.xerces2JImpl - api libs.batikDom - api libs.mathml.lib + implementation libs.xerces2J + api libs.batik.dom + api libs.mathml.dom - implementation (project(':foray-common')) - implementation (project(':foray-primitive')) + implementation project(":foray-common") + implementation project(":foray-primitive") } javadoc { Modified: trunk/foray/foray-zz-attic/build.gradle =================================================================== --- trunk/foray/foray-zz-attic/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/foray-zz-attic/build.gradle 2025-06-26 12:31:00 UTC (rev 13873) @@ -1,23 +1,23 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' - id 'foray.logging-conventions' + id "foray.library-conventions" + id "foray.test-conventions" + id "foray.logging-conventions" } -description = 'foray-zz-attic' +description = "foray-zz-attic" dependencies { - implementation libs.commonsIo - api (group: 'jakarta.activation', name: 'jakarta.activation-api', version: '1.2.2') - implementation libs.icu4j + implementation libs.commons.io + api (group: "jakarta.activation", name: "jakarta.activation-api", version: "1.2.2") + implementation libs.icu4j - api libs.axsl.constants - implementation libs.axsl.primitive + api libs.axsl.constants + implementation libs.axsl.primitive - api (project(':foray-common')) - implementation (project(':foray-primitive')) - api (project(':foray-orthography')) - testImplementation (project(':foray-orthography').sourceSets.test.output) + api project(":foray-common") + implementation project(":foray-primitive") + api project(":foray-orthography") + testImplementation project(":foray-orthography").sourceSets.test.output } javadoc { Modified: trunk/foray/gradle/libs.versions.toml =================================================================== --- trunk/foray/gradle/libs.versions.toml 2025-06-25 21:51:29 UTC (rev 13872) +++ trunk/foray/gradle/libs.versions.toml 2025-06-26 12:31:00 UTC (rev 13873) @@ -76,59 +76,58 @@ [libraries] -svg-lib = { group = "org.axsl.org.w3c.dom.svg", name = "svg-dom-java", version.ref = "svgDom" } -mathml-lib = { group = "org.axsl.org.w3c.dom.mathml", name = "mathml-dom-java", version.ref = "mathMlDom" } +svg-dom = { group = "org.axsl.org.w3c.dom.svg", name = "svg-dom-java", version.ref = "svgDom" } +mathml-dom = { group = "org.axsl.org.w3c.dom.mathml", name = "mathml-dom-java", version.ref = "mathMlDom" } -axsl-areatree = { group = "org.axsl", name = "axsl-areatree", version.ref = "axsl" } -axsl-constants = { group = "org.axsl", name = "axsl-constants", version.ref = "axsl" } -axsl-content = { group = "org.axsl", name = "axsl-content", version.ref = "axsl" } -axsl-context = { group = "org.axsl", name = "axsl-context", version.ref = "axsl" } -axsl-font = { group = "org.axsl", name = "axsl-font", version.ref = "axsl" } -axsl-fotree = { group = "org.axsl", name = "axsl-fotree", version.ref = "axsl" } -axsl-galley = { group = "org.axsl", name = "axsl-galley", version.ref = "axsl" } -axsl-graphic = { group = "org.axsl", name = "axsl-graphic", version.ref = "axsl" } -axsl-i18n = { group = "org.axsl", name = "axsl-i18n", version.ref = "axsl" } -axsl-kp-model = { group = "org.axsl", name = "axsl-kp-model", version.ref = "axsl" } -axsl-layout = { group = "org.axsl", name = "axsl-layout", version.ref = "axsl" } -axsl-linebreak = { group = "org.axsl", name = "axsl-linebreak", version.ref = "axsl" } -axsl-mif = { group = "org.axsl", name = "axsl-mif", version.ref = "axsl" } -axsl-orthography = { group = "org.axsl", name = "axsl-orthography", version.ref = "axsl" } -axsl-output = { group = "org.axsl", name = "axsl-output", version.ref = "axsl" } -axsl-pdf = { group = "org.axsl", name = "axsl-pdf", version.ref = "axsl" } -axsl-primitive = { group = "org.axsl", name = "axsl-primitive", version.ref = "axsl" } -axsl-ps = { group = "org.axsl", name = "axsl-ps", version.ref = "axsl" } -axsl-speech = { group = "org.axsl", name = "axsl-speech", version.ref = "axsl" } -axsl-value = { group = "org.axsl", name = "axsl-value", version.ref = "axsl" } +axsl-areatree = { group = "org.axsl", name = "axsl-areatree", version.ref = "axsl" } +axsl-constants = { group = "org.axsl", name = "axsl-constants", version.ref = "axsl" } +axsl-content = { group = "org.axsl", name = "axsl-content", version.ref = "axsl" } +axsl-context = { group = "org.axsl", name = "axsl-context", version.ref = "axsl" } +axsl-font = { group = "org.axsl", name = "axsl-font", version.ref = "axsl" } +axsl-fotree = { group = "org.axsl", name = "axsl-fotree", version.ref = "axsl" } +axsl-galley = { group = "org.axsl", name = "axsl-galley", version.ref = "axsl" } +axsl-graphic = { group = "org.axsl", name = "axsl-graphic", version.ref = "axsl" } +axsl-i18n = { group = "org.axsl", name = "axsl-i18n", version.ref = "axsl" } +axsl-kp-model = { group = "org.axsl", name = "axsl-kp-model", version.ref = "axsl" } +axsl-layout = { group = "org.axsl", name = "axsl-layout", version.ref = "axsl" } +axsl-linebreak = { group = "org.axsl", name = "axsl-linebreak", version.ref = "axsl" } +axsl-mif = { group = "org.axsl", name = "axsl-mif", version.ref = "axsl" } +axsl-orthography = { group = "org.axsl", name = "axsl-orthography", version.ref = "axsl" } +axsl-output = { group = "org.axsl", name = "axsl-output", version.ref = "axsl" } +axsl-pdf = { group = "org.axsl", name = "axsl-pdf", version.ref = "axsl" } +axsl-primitive = { group = "org.axsl", name = "axsl-primitive", version.ref = "axsl" } +axsl-ps = { group = "org.axsl", name = "axsl-ps", version.ref = "axsl" } +axsl-speech = { group = "org.axsl", name = "axsl-speech", version.ref = "axsl" } +axsl-value = { group = "org.axsl", name = "axsl-value", version.ref = "axsl" } -slf4j = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4j" } -commonsIo = { group = "commons-io", name = "commons-io", version.ref = "commonsIo" } -commonsCli = { group = "commons-cli", name = "commons-cli", version.ref = "commonsCli" } -commonsDiscovery = { group = "commons-discovery", name = "commons-discovery", version.ref = "commonsDiscovery" } -xmlResolver = { group = "xml-resolver", name = "xml-resolver", version.ref = "xmlResolver" } -xmlSchemaCore = { group = "org.apache.ws.xmlschema", name = "xmlschema-core", version.ref = "xmlSchemaCore" } -xerces2JImpl = { group = "xerces", name = "xercesImpl", version.ref = "xerces2J" } -servletApi = { group = "javax.servlet", name = "javax.servlet-api", version.ref = "servletApi" } -ant = { group = "org.apache.ant", name = "ant", version.ref = "ant" } -icu4j = { group = "com.ibm.icu", name = "icu4j", version.ref = "icu4j" } -xmlgraphicsCommons = { group = "org.apache.xmlgraphics", name = "xmlgraphics-commons", version.ref = "xmlgraphicsCommons" } -batikBridge = { group = "org.apache.xmlgraphics", name = "batik-bridge", version.ref = "batik" } -batikGvt = { group = "org.apache.xmlgraphics", name = "batik-gvt", version.ref = "batik" } -batikParser = { group = "org.apache.xmlgraphics", name = "batik-parser", version.ref = "batik" } -batikTranscoder = { group = "org.apache.xmlgraphics", name = "batik-transcoder", version.ref = "batik" } -batikAnim = { group = "org.apache.xmlgraphics", name = "batik-anim", version.ref = "batik" } -batikDom = { group = "org.apache.xmlgraphics", name = "batik-dom", version.ref = "batik" } -batikUtil = { group = "org.apache.xmlgraphics", name = "batik-util", version.ref = "batik" } -batikAwtUtil = { group = "org.apache.xmlgraphics", name = "batik-awt-util", version.ref = "batik" } -#jeuclid = { group = "net.sourceforge.jeuclid", name = "jeuclid-core", version.ref = "jeuclid" } -jeuclid = { group = "de.rototor.jeuclid", name = "jeuclid-core", version.ref = "jeuclid" } +slf4j = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4j" } +commons-io = { group = "commons-io", name = "commons-io", version.ref = "commonsIo" } +commons-cli = { group = "commons-cli", name = "commons-cli", version.ref = "commonsCli" } +commons-discovery = { group = "commons-discovery", name = "commons-discovery", version.ref = "commonsDiscovery" } +xml-resolver = { group = "xml-resolver", name = "xml-resolver", version.ref = "xmlResolver" } +xmlschema-core = { group = "org.apache.ws.xmlschema", name = "xmlschema-core", version.ref = "xmlSchemaCore" } +xerces2J = { group = "xerces", name = "xercesImpl", version.ref = "xerces2J" } +servlet-api = { group = "javax.servlet", name = "javax.servlet-api", version.ref = "servletApi" } +ant = { group = "org.apache.ant", name = "ant", version.ref = "ant" } +icu4j = { group = "com.ibm.icu", name = "icu4j", version.ref = "icu4j" } +xmlgraphics-commons = { group = "org.apache.xmlgraphics", name = "xmlgraphics-commons", version.ref = "xmlgraphicsCommons" } +batik-bridge = { group = "org.apache.xmlgraphics", name = "batik-bridge", version.ref = "batik" } +batik-gvt = { group = "org.apache.xmlgraphics", name = "batik-gvt", version.ref = "batik" } +batik-parser = { group = "org.apache.xmlgraphics", name = "batik-parser", version.ref = "batik" } +batik-transcoder = { group = "org.apache.xmlgraphics", name = "batik-transcoder", version.ref = "batik" } +batik-anim = { group = "org.apache.xmlgraphics", name = "batik-anim", version.ref = "batik" } +batik-dom = { group = "org.apache.xmlgraphics", name = "batik-dom", version.ref = "batik" } +batik-util = { group = "org.apache.xmlgraphics", name = "batik-util", version.ref = "batik" } +batik-awt-util = { group = "org.apache.xmlgraphics", name = "batik-awt-util", version.ref = "batik" } +jeuclid = { group = "de.rototor.jeuclid", name = "jeuclid-core", version.ref = "jeuclid" } -checkerFramework = { group = "org.checkerframework", name = "checker", version.ref = "checkerFramework" } -checkerQual = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerFramework" } +checker-framework = { group = "org.checkerframework", name = "checker", version.ref = "checkerFramework" } +checker-qual = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerFramework" } -junitBom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } -junitJupiter = { group = "org.junit.jupiter", name = "junit-jupiter" } -junitPlatformLauncher = { group = "org.junit.platform", name = "junit-platform-launcher" } +junit-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } +junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter" } +junit-platform-launcher = { group = "org.junit.platform", name = "junit-platform-launcher" } mockito = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 21:51:30
|
Revision: 13872 http://sourceforge.net/p/foray/code/13872 Author: victormote Date: 2025-06-25 21:51:29 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Fix deprecation warning by upgrading dependency analysis plugin. Modified Paths: -------------- trunk/foray/build.gradle trunk/foray/gradle/libs.versions.toml Modified: trunk/foray/build.gradle =================================================================== --- trunk/foray/build.gradle 2025-06-25 20:31:51 UTC (rev 13871) +++ trunk/foray/build.gradle 2025-06-25 21:51:29 UTC (rev 13872) @@ -28,8 +28,8 @@ plugins { id "foray.common-conventions" id "java" - id "com.autonomousapps.dependency-analysis" version "1.0.0-rc02" id "java-library-distribution" + alias(libs.plugins.autonomousDependencyAnalysis) alias(libs.plugins.checkerFramework) apply false } Modified: trunk/foray/gradle/libs.versions.toml =================================================================== --- trunk/foray/gradle/libs.versions.toml 2025-06-25 20:31:51 UTC (rev 13871) +++ trunk/foray/gradle/libs.versions.toml 2025-06-25 21:51:29 UTC (rev 13872) @@ -27,6 +27,9 @@ checkerFramework = "3.49.2" # Latest is 3.49.2 as of 2025-04-20. See Note 7. checkerFrameworkGradlePlugin = "0.6.55" # Latest is 0.6.55 as of 2025-06-24. See Note 7. +autonomousDependencyAnalysis = "2.19.0" # Latest is 2.19.0 as of 2025-06-25. + + junit = "5.13.1" # Latest is 5.13.1 as of 2025-06-15. mockito = "4.9.0" # Latest is 4.9.0 as of 2022-11-26. See Note 5. @@ -135,5 +138,6 @@ [plugins] checkerFramework = { id = "org.checkerframework", version.ref = "checkerFrameworkGradlePlugin" } +autonomousDependencyAnalysis = { id = "com.autonomousapps.dependency-analysis", version.ref = "autonomousDependencyAnalysis" } # Last line of libs.versions.toml File. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 20:31:53
|
Revision: 13871 http://sourceforge.net/p/foray/code/13871 Author: victormote Date: 2025-06-25 20:31:51 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Force gradle builders to use Java 17. Added Paths: ----------- trunk/foray/gradle/gradle-daemon-jvm.properties Added: trunk/foray/gradle/gradle-daemon-jvm.properties =================================================================== --- trunk/foray/gradle/gradle-daemon-jvm.properties (rev 0) +++ trunk/foray/gradle/gradle-daemon-jvm.properties 2025-06-25 20:31:51 UTC (rev 13871) @@ -0,0 +1,2 @@ +#This file is generated by updateDaemonJvm +toolchainVersion=17 Property changes on: trunk/foray/gradle/gradle-daemon-jvm.properties ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 20:31:11
|
Revision: 13870 http://sourceforge.net/p/foray/code/13870 Author: victormote Date: 2025-06-25 20:31:08 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Remove versions, replacing remaining uses of it. Modified Paths: -------------- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle trunk/foray/foray-fotree/build.gradle trunk/foray/foray-linebreak/build.gradle Modified: trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 19:58:56 UTC (rev 13869) +++ trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 20:31:08 UTC (rev 13870) @@ -33,11 +33,6 @@ ext.buildDate = new Date().format("yyyy-MM-dd 'at' HH:mm 'GMT'", TimeZone.getTimeZone("GMT")) -ext.versions = [ - checkerFramework: '3.49.2', // Latest is 3.49.2 as of 2025-04-20. -] - - java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 Modified: trunk/foray/foray-fotree/build.gradle =================================================================== --- trunk/foray/foray-fotree/build.gradle 2025-06-25 19:58:56 UTC (rev 13869) +++ trunk/foray/foray-fotree/build.gradle 2025-06-25 20:31:08 UTC (rev 13870) @@ -38,7 +38,7 @@ implementation (project(':foray-primitive')) api (project(':foray-xml')) - testImplementation(testFixtures(group: 'org.axsl', name: 'axsl-fotree', version: versions.axsl)) + testImplementation testFixtures(libs.axsl.fotree) } javadoc { Modified: trunk/foray/foray-linebreak/build.gradle =================================================================== --- trunk/foray/foray-linebreak/build.gradle 2025-06-25 19:58:56 UTC (rev 13869) +++ trunk/foray/foray-linebreak/build.gradle 2025-06-25 20:31:08 UTC (rev 13870) @@ -1,26 +1,26 @@ plugins { - id 'foray.library-conventions' - id 'foray.test-conventions' + id "foray.library-conventions" + id "foray.test-conventions" } -description = 'foray-linebreak' +description = "foray-linebreak" dependencies { - api libs.axsl.linebreak - api libs.axsl.context - api libs.axsl.kp.model + api libs.axsl.linebreak + api libs.axsl.context + api libs.axsl.kp.model - api (project(':foray-common')) - implementation (project(':foray-primitive')) + api project(":foray-common") + implementation project(":foray-primitive") - testImplementation (project(':foray-orthography')) - testImplementation (group: "org.axsl", name: "axsl-font", version: versions.axsl) - testImplementation (group: "org.axsl", name: "axsl-orthography", version: versions.axsl) - testImplementation (group: "org.axsl", name: "axsl-ps", version: versions.axsl) - testImplementation (project(":foray-ps-data")) - testImplementation (project(":foray-font-tf")) + testImplementation project(":foray-orthography") + testImplementation libs.axsl.font + testImplementation libs.axsl.orthography + testImplementation libs.axsl.ps + testImplementation project(":foray-ps-data") + testImplementation project(":foray-font-tf") - testImplementation (testFixtures(group: "org.axsl", name: "axsl-kp-model", version: versions.axsl)) + testImplementation testFixtures(libs.axsl.kp.model) } javadoc { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 19:58:59
|
Revision: 13869 http://sourceforge.net/p/foray/code/13869 Author: victormote Date: 2025-06-25 19:58:56 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Fix checker dependency. Modified Paths: -------------- trunk/foray/build.gradle trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle trunk/foray/gradle/libs.versions.toml Modified: trunk/foray/build.gradle =================================================================== --- trunk/foray/build.gradle 2025-06-25 17:59:13 UTC (rev 13868) +++ trunk/foray/build.gradle 2025-06-25 19:58:56 UTC (rev 13869) @@ -30,13 +30,7 @@ id "java" id "com.autonomousapps.dependency-analysis" version "1.0.0-rc02" id "java-library-distribution" - /* The Gradle Checker Framework Plugin (being invoked here) is a wrapper of, but is a separate product from, the - Checker Framework, has its own release cycle, and its own release numbering system. - https://github.com/kelloggm/checkerframework-gradle-plugin - Documentation of the Checker Framework itself can be found at - https://checkerframework.org/manual/#gradle - */ - id "org.checkerframework" version "0.6.53" + alias(libs.plugins.checkerFramework) apply false } @@ -158,4 +152,24 @@ } +allprojects { + apply plugin: "org.checkerframework" + + checkerFramework { + checkers = [ + "org.checkerframework.checker.signedness.SignednessChecker" + ] + + /* Uncomment the following line temporarily to disable checker, for testing. */ + /* We leave this checking turned off for now, pending resolution of build errors that we don't understand. */ + skipCheckerFramework = true + } + + dependencies { + checkerFramework libs.checkerFramework + compileOnly libs.checkerQual + testCompileOnly libs.checkerQual + } +} + /* Last line of script. */ Modified: trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 17:59:13 UTC (rev 13868) +++ trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 19:58:56 UTC (rev 13869) @@ -5,7 +5,6 @@ id 'eclipse' id 'checkstyle' id 'maven-publish' - id "org.checkerframework" } @@ -142,7 +141,6 @@ } - checkstyle { configFile = new File(rootProject.projectDir.absolutePath + '/foray-00-dev/config/checkstyle/checkstyle-config.xml') configProperties.put('foray.root', rootProject.projectDir) @@ -149,24 +147,9 @@ toolVersion = "10.23" } + tasks.withType(JavaCompile) { options.deprecation = true } -checkerFramework { - checkers = [ - "org.checkerframework.checker.signedness.SignednessChecker" - ] - - /* Uncomment the following line temporarily to disable checker, for testing. */ - /* We leave this checking turned off for now, pending resolution of build errors that we don't understand. */ - skipCheckerFramework = true -} - -dependencies { - compileOnly (group: 'org.checkerframework', name: 'checker-qual', version: versions.checkerFramework) - testCompileOnly (group: 'org.checkerframework', name: 'checker-qual', version: versions.checkerFramework) - checkerFramework (group: 'org.checkerframework', name: 'checker', version: versions.checkerFramework) -} - /* Last line of script. */ Modified: trunk/foray/gradle/libs.versions.toml =================================================================== --- trunk/foray/gradle/libs.versions.toml 2025-06-25 17:59:13 UTC (rev 13868) +++ trunk/foray/gradle/libs.versions.toml 2025-06-25 19:58:56 UTC (rev 13869) @@ -120,8 +120,8 @@ jeuclid = { group = "de.rototor.jeuclid", name = "jeuclid-core", version.ref = "jeuclid" } -checker-framework = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerFramework" } -# checkerFramework (group = "org.checkerframework", name = "checker", version = versions.checkerFramework) +checkerFramework = { group = "org.checkerframework", name = "checker", version.ref = "checkerFramework" } +checkerQual = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerFramework" } junitBom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } junitJupiter = { group = "org.junit.jupiter", name = "junit-jupiter" } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 17:59:16
|
Revision: 13868 http://sourceforge.net/p/foray/code/13868 Author: victormote Date: 2025-06-25 17:59:13 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Replace some dependencies on ext.versions with dependencies on libs.versions.toml. Modified Paths: -------------- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle trunk/foray/gradle/libs.versions.toml Modified: trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 15:12:30 UTC (rev 13867) +++ trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 17:59:13 UTC (rev 13868) @@ -36,8 +36,6 @@ ext.versions = [ checkerFramework: '3.49.2', // Latest is 3.49.2 as of 2025-04-20. - junit: '5.13.1', // Latest is 5.13.1 as of 2025-06-15. - mockito: '4.9.0', // Latest is 4.9.0 as of 2022-11-26. See Note 5. ] Modified: trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle 2025-06-25 15:12:30 UTC (rev 13867) +++ trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle 2025-06-25 17:59:13 UTC (rev 13868) @@ -5,12 +5,11 @@ } dependencies { - testImplementation (platform - (group: 'org.junit', name: 'junit-bom', version: versions.junit)) - testImplementation (group: 'org.junit.jupiter', name: 'junit-jupiter') - testRuntimeOnly (group: 'org.junit.platform', name: 'junit-platform-launcher') + testImplementation (platform libs.junitBom) + testImplementation libs.junitJupiter + testRuntimeOnly libs.junitPlatformLauncher - testImplementation (group: 'org.mockito', name: 'mockito-core', version: versions.mockito) + testImplementation libs.mockito } test { Modified: trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle 2025-06-25 15:12:30 UTC (rev 13867) +++ trunk/foray/buildSrc/src/main/groovy/foray.test-fixtures-conventions.gradle 2025-06-25 17:59:13 UTC (rev 13868) @@ -8,9 +8,9 @@ dependencies { /* Allow test fixtures to make assertions and use Mockito. */ - testFixturesImplementation (platform (group: 'org.junit', name: 'junit-bom', version: versions.junit)) - testFixturesImplementation (group: 'org.junit.jupiter', name: 'junit-jupiter') - testFixturesImplementation (group: 'org.mockito', name: 'mockito-core', version: versions.mockito) + testFixturesImplementation (platform libs.junitBom) + testFixturesImplementation libs.junitJupiter + testFixturesImplementation libs.mockito } /* Last line of script. */ Modified: trunk/foray/gradle/libs.versions.toml =================================================================== --- trunk/foray/gradle/libs.versions.toml 2025-06-25 15:12:30 UTC (rev 13867) +++ trunk/foray/gradle/libs.versions.toml 2025-06-25 17:59:13 UTC (rev 13868) @@ -123,9 +123,9 @@ checker-framework = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerFramework" } # checkerFramework (group = "org.checkerframework", name = "checker", version = versions.checkerFramework) -junit-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } -junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter", version.ref = "junit" } -junit-platform-launcher = { group = "org.junit.platform", name = "junit-platform-launcher", version.ref = "junit" } +junitBom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } +junitJupiter = { group = "org.junit.jupiter", name = "junit-jupiter" } +junitPlatformLauncher = { group = "org.junit.platform", name = "junit-platform-launcher" } mockito = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 15:12:33
|
Revision: 13867 http://sourceforge.net/p/foray/code/13867 Author: victormote Date: 2025-06-25 15:12:30 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Replace some dependencies on ext.versions with dependencies on libs.versions.toml. Modified Paths: -------------- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle trunk/foray/foray-app/build.gradle trunk/foray/foray-common/build.gradle trunk/foray/foray-core/build.gradle trunk/foray/foray-fotree/build.gradle trunk/foray/foray-graphic/build.gradle trunk/foray/foray-orthography/build.gradle trunk/foray/foray-pdf/build.gradle trunk/foray/foray-render/build.gradle trunk/foray/foray-xml/build.gradle trunk/foray/foray-zz-attic/build.gradle trunk/foray/gradle/libs.versions.toml Modified: trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -34,54 +34,11 @@ ext.buildDate = new Date().format("yyyy-MM-dd 'at' HH:mm 'GMT'", TimeZone.getTimeZone("GMT")) -/******************** See Note 1 below for information about dependency releases. ********************/ ext.versions = [ - xmlResolver: '1.2', // Latest is 1.2 as of 2022-11-26. See Note 3. - xmlSchemaCore: '2.3.0', // Latest is 2.3.0 as of 2023-08-05. - xerces2_J: '2.12.2', // Latest is 2.12.2 as of 2023-08-05. - ant: '1.10.12', // Latest is 1.10.12 as of 2022-11-26. - servletApi: '4.0.1', // Latest is 4.0.1 as of 2022-11-26. - xmlgraphicsCommons: '2.6', // Latest is 2.6 as of 2022-01-17. - batik: '1.14', // Latest is 1.14 as of 2022-01-17. - jeuclid: '3.1.14', // Latest is 3.1.14 as of 2022-11-26. See Note 4. - icu4j: '72.1', // Latest is 72.1 as of 2022-11-26. - checkerFramework: '3.49.2', // Latest is 3.49.2 as of 2025-04-20. junit: '5.13.1', // Latest is 5.13.1 as of 2025-06-15. mockito: '4.9.0', // Latest is 4.9.0 as of 2022-11-26. See Note 5. - - - /* See foray-00-master/resources/logger-impl/00-readme.txt for information about logging implementations. - Bottom line is that logging implementations are not and should not be part of any FOray dependencies. - This entry can be uncommented temporarily for short-term testing, but should never be checked in. */ -// logbackClassic: '1.3.5', // Latest is 1.3.5 as of 2022-11-26. - - /* Build-time-only dependencies that should never be permanently used in build.gradle files. */ - checkstyle: '10.23', // Latest is 10.25 as of 2025-06-11. See Note 6. ] -/* - * Notes on Dependency Releases (See above for references) - * ======================================================== - * 1. Latest release information above is per www.mvnrepository.com, and ignores non-released artifacts (no alpha or - * beta releases, except for aXSL). - * - * 2. At the moment, and for the foreseeable future, aXSL is controlled by FOray, as we attempt to get the module APIs - * cleaned up and robust. - * - * 3. TODO: Remove this dependency when we upgrade to Java 1.9, as it looks like the catalog resolver code is part of - * that release. - * - * 4. JEuclid has moved from group net.sourceforge.jeuclid to de.rototor.jeuclid, but continues to use the name - * "jeuclid-core" and the same general release numbering sequence. - * The latest version for group net.sourceforge.jeuclid as of 2021-01-12 is 3.1.9 per www.mvnrepository.com. - * - * 5. Mockito versions from 4.6.0 to 4.9.0 cause breakage at build time for reasons that seem to be related to the - * Java version used to start Gradle. For now, using a JDK that matches the javaTargetCompatibility value above - * seems to solve the problem. - * - * 6. The current (as of 2025-06-11) Eclipse plugin for checkstyle uses Checkstyle 10.23. - * We will use that for now to avoid configuration conflicts between the two versions. - */ java { @@ -191,7 +148,7 @@ checkstyle { configFile = new File(rootProject.projectDir.absolutePath + '/foray-00-dev/config/checkstyle/checkstyle-config.xml') configProperties.put('foray.root', rootProject.projectDir) - toolVersion = versions.checkstyle + toolVersion = "10.23" } tasks.withType(JavaCompile) { Modified: trunk/foray/foray-app/build.gradle =================================================================== --- trunk/foray/foray-app/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/foray-app/build.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -8,11 +8,11 @@ description = 'foray-app' dependencies { - implementation (group: 'javax.servlet', name: 'javax.servlet-api', version: versions.servletApi) - implementation (group: 'xml-resolver', name: 'xml-resolver', version: versions.xmlResolver) - implementation (group: 'org.apache.ant', name: 'ant', version: versions.ant) - implementation (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) - implementation (group: 'commons-cli', name: 'commons-cli', version: versions.commonsCli) + implementation libs.servletApi + implementation libs.xmlResolver + implementation libs.ant + implementation libs.commonsIo + implementation libs.commonsCli implementation libs.axsl.font implementation libs.axsl.linebreak @@ -51,7 +51,7 @@ testFixturesImplementation (project(':foray-fotree')) testFixturesImplementation (project(':foray-pioneer')) - testImplementation(testFixtures(group: 'org.axsl', name: 'axsl-fotree', version: versions.axsl)) + testImplementation(testFixtures(libs.axsl.fotree)) } javadoc { Modified: trunk/foray/foray-common/build.gradle =================================================================== --- trunk/foray/foray-common/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/foray-common/build.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -9,7 +9,7 @@ dependencies { implementation libs.commonsIo - implementation (group: 'com.ibm.icu', name: 'icu4j', version: versions.icu4j) + implementation libs.icu4j implementation libs.axsl.primitive implementation libs.axsl.i18n Modified: trunk/foray/foray-core/build.gradle =================================================================== --- trunk/foray/foray-core/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/foray-core/build.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -6,7 +6,7 @@ description = 'foray-core' dependencies { - implementation (group: 'xml-resolver', name: 'xml-resolver', version: versions.xmlResolver) + implementation libs.xmlResolver api libs.axsl.areatree api libs.axsl.fotree Modified: trunk/foray/foray-fotree/build.gradle =================================================================== --- trunk/foray/foray-fotree/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/foray-fotree/build.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -23,7 +23,7 @@ api libs.svg.lib api libs.mathml.lib /* TODO: Replace this dependency on batik-anim, used for parsing SVGDocument, with something more lightweight. */ - implementation (group: "org.apache.xmlgraphics", name: "batik-anim", version: versions.batik) + implementation libs.batikAnim api libs.axsl.constants api libs.axsl.fotree Modified: trunk/foray/foray-graphic/build.gradle =================================================================== --- trunk/foray/foray-graphic/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/foray-graphic/build.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -7,18 +7,17 @@ description = 'foray-graphic' dependencies { - api (group: 'org.apache.xmlgraphics', name: 'xmlgraphics-commons', version: versions.xmlgraphicsCommons) - api (group: 'org.apache.xmlgraphics', name: 'batik-bridge', version: versions.batik) - api (group: 'org.apache.xmlgraphics', name: 'batik-gvt', version: versions.batik) - implementation (group: 'org.apache.xmlgraphics', name: 'batik-parser', version: versions.batik) - implementation (group: 'org.apache.xmlgraphics', name: 'batik-transcoder', version: versions.batik) - implementation (group: "org.apache.xmlgraphics", name: "batik-anim", version: versions.batik) - api (group: "org.apache.xmlgraphics", name: "batik-dom", version: versions.batik) - implementation (group: "org.apache.xmlgraphics", name: "batik-util", version: versions.batik) + api libs.xmlgraphicsCommons + api libs.batikBridge + api libs.batikGvt + implementation libs.batikParser + implementation libs.batikTranscoder + implementation libs.batikAnim + api libs.batikDom + implementation libs.batikUtil api (group: "xml-apis", name: "xml-apis", version: "1.4.01") api (group: "xml-apis", name: "xml-apis-ext", version: "1.3.04") -// api (group: 'net.sourceforge.jeuclid', name: 'jeuclid-core', version: versions.jeuclid) - api (group: 'de.rototor.jeuclid', name: 'jeuclid-core', version: versions.jeuclid) + api libs.jeuclid api libs.svg.lib api libs.mathml.lib Modified: trunk/foray/foray-orthography/build.gradle =================================================================== --- trunk/foray/foray-orthography/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/foray-orthography/build.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -9,7 +9,7 @@ dependencies { api libs.commonsCli api libs.commonsIo - implementation (group: 'com.ibm.icu', name: 'icu4j', version: versions.icu4j) + implementation libs.icu4j implementation libs.axsl.constants api libs.axsl.fotree Modified: trunk/foray/foray-pdf/build.gradle =================================================================== --- trunk/foray/foray-pdf/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/foray-pdf/build.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -7,7 +7,7 @@ description = 'foray-pdf' dependencies { - api (group: 'org.apache.xmlgraphics', name: 'batik-awt-util', version: versions.batik) + api libs.batikAwtUtil api libs.axsl.constants api libs.axsl.pdf Modified: trunk/foray/foray-render/build.gradle =================================================================== --- trunk/foray/foray-render/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/foray-render/build.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -19,7 +19,7 @@ implementation libs.axsl.orthography api libs.axsl.ps /* TODO: Replace this dependency on batik-anim, used for parsing SVGDocument, with something more lightweight. */ - implementation (group: "org.apache.xmlgraphics", name: "batik-anim", version: versions.batik) + implementation libs.batikAnim implementation (project(':foray-common')) implementation (project(':foray-primitive')) Modified: trunk/foray/foray-xml/build.gradle =================================================================== --- trunk/foray/foray-xml/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/foray-xml/build.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -8,12 +8,12 @@ dependencies { implementation libs.commonsCli - implementation (group: 'xml-resolver', name: 'xml-resolver', version: versions.xmlResolver) - implementation (group: 'org.apache.ws.xmlschema', name: 'xmlschema-core', version: versions.xmlSchemaCore) + implementation libs.xmlResolver + implementation libs.xmlSchemaCore /* The Xerces parser is used because it handles numeric character references correctly, while the standard Java parser currently does not. */ - implementation (group: 'xerces', name: 'xercesImpl', version: versions.xerces2_J) - api (group: "org.apache.xmlgraphics", name: "batik-dom", version: versions.batik) + implementation libs.xerces2JImpl + api libs.batikDom api libs.mathml.lib implementation (project(':foray-common')) Modified: trunk/foray/foray-zz-attic/build.gradle =================================================================== --- trunk/foray/foray-zz-attic/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/foray-zz-attic/build.gradle 2025-06-25 15:12:30 UTC (rev 13867) @@ -7,9 +7,9 @@ description = 'foray-zz-attic' dependencies { - implementation (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) + implementation libs.commonsIo api (group: 'jakarta.activation', name: 'jakarta.activation-api', version: '1.2.2') - implementation (group: 'com.ibm.icu', name: 'icu4j', version: versions.icu4j) + implementation libs.icu4j api libs.axsl.constants implementation libs.axsl.primitive Modified: trunk/foray/gradle/libs.versions.toml =================================================================== --- trunk/foray/gradle/libs.versions.toml 2025-06-25 13:43:07 UTC (rev 13866) +++ trunk/foray/gradle/libs.versions.toml 2025-06-25 15:12:30 UTC (rev 13867) @@ -4,10 +4,10 @@ # ******************** See Note 1 below for information about dependency releases. ******************** -# Dependencies related to aXSL. These should be maintained at the same versions used by aXSL. */ +# Dependencies related to aXSL. These should be maintained at the same versions used by aXSL. */ svgDom = "1.1" # See aXSL master/build.gradle mathMlDom = "2.0" # See aXSL master/build.gradle -# End of aXSL-related dependencies. */ +# End of aXSL-related dependencies. */ axsl = "0.3-SNAPSHOT" # Latest is 0.3-SNAPSHOT as of 2022-11-26. See Note 2. slf4j = "2.0.5" # Latest is 2.0.5 as of 2022-11-26. @@ -16,7 +16,7 @@ commonsCli = "1.5.0" # Latest is 1.5.0 as of 2022-11-26. xmlResolver = "1.2" # Latest is 1.2 as of 2022-11-26. See Note 3. xmlSchemaCore = "2.3.0" # Latest is 2.3.0 as of 2023-08-05. -xerces2_J = "2.12.2" # Latest is 2.12.2 as of 2023-08-05. +xerces2J = "2.12.2" # Latest is 2.12.2 as of 2023-08-05. ant = "1.10.12" # Latest is 1.10.12 as of 2022-11-26. servletApi = "4.0.1" # Latest is 4.0.1 as of 2022-11-26. xmlgraphicsCommons = "2.6" # Latest is 2.6 as of 2022-01-17. @@ -101,10 +101,27 @@ commonsIo = { group = "commons-io", name = "commons-io", version.ref = "commonsIo" } commonsCli = { group = "commons-cli", name = "commons-cli", version.ref = "commonsCli" } commonsDiscovery = { group = "commons-discovery", name = "commons-discovery", version.ref = "commonsDiscovery" } +xmlResolver = { group = "xml-resolver", name = "xml-resolver", version.ref = "xmlResolver" } +xmlSchemaCore = { group = "org.apache.ws.xmlschema", name = "xmlschema-core", version.ref = "xmlSchemaCore" } +xerces2JImpl = { group = "xerces", name = "xercesImpl", version.ref = "xerces2J" } +servletApi = { group = "javax.servlet", name = "javax.servlet-api", version.ref = "servletApi" } +ant = { group = "org.apache.ant", name = "ant", version.ref = "ant" } +icu4j = { group = "com.ibm.icu", name = "icu4j", version.ref = "icu4j" } +xmlgraphicsCommons = { group = "org.apache.xmlgraphics", name = "xmlgraphics-commons", version.ref = "xmlgraphicsCommons" } +batikBridge = { group = "org.apache.xmlgraphics", name = "batik-bridge", version.ref = "batik" } +batikGvt = { group = "org.apache.xmlgraphics", name = "batik-gvt", version.ref = "batik" } +batikParser = { group = "org.apache.xmlgraphics", name = "batik-parser", version.ref = "batik" } +batikTranscoder = { group = "org.apache.xmlgraphics", name = "batik-transcoder", version.ref = "batik" } +batikAnim = { group = "org.apache.xmlgraphics", name = "batik-anim", version.ref = "batik" } +batikDom = { group = "org.apache.xmlgraphics", name = "batik-dom", version.ref = "batik" } +batikUtil = { group = "org.apache.xmlgraphics", name = "batik-util", version.ref = "batik" } +batikAwtUtil = { group = "org.apache.xmlgraphics", name = "batik-awt-util", version.ref = "batik" } +#jeuclid = { group = "net.sourceforge.jeuclid", name = "jeuclid-core", version.ref = "jeuclid" } +jeuclid = { group = "de.rototor.jeuclid", name = "jeuclid-core", version.ref = "jeuclid" } checker-framework = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerFramework" } -# checkerFramework (group = 'org.checkerframework', name = 'checker', version = versions.checkerFramework) +# checkerFramework (group = "org.checkerframework", name = "checker", version = versions.checkerFramework) junit-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter", version.ref = "junit" } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 13:43:14
|
Revision: 13866 http://sourceforge.net/p/foray/code/13866 Author: victormote Date: 2025-06-25 13:43:07 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Replace some dependencies on ext.versions with dependencies on libs.versions.toml. Modified Paths: -------------- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle trunk/foray/buildSrc/src/main/groovy/foray.logging-conventions.gradle trunk/foray/foray-common/build.gradle trunk/foray/foray-font/build.gradle trunk/foray/foray-orthography/build.gradle trunk/foray/foray-primitive/build.gradle trunk/foray/foray-ps/build.gradle trunk/foray/foray-ps-data/build.gradle trunk/foray/foray-xml/build.gradle trunk/foray/gradle/libs.versions.toml Modified: trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 13:11:01 UTC (rev 13865) +++ trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 13:43:07 UTC (rev 13866) @@ -36,10 +36,6 @@ /******************** See Note 1 below for information about dependency releases. ********************/ ext.versions = [ - slf4j: '2.0.5', // Latest is 2.0.5 as of 2022-11-26. - commonsIo: '2.11.0', // Latest is 2.11.0 as of 2022-11-26. - commonsDiscovery: '0.5', // Latest is 0.5 as of 2022-11-26. - commonsCli: '1.5.0', // Latest is 1.5.0 as of 2022-11-26. xmlResolver: '1.2', // Latest is 1.2 as of 2022-11-26. See Note 3. xmlSchemaCore: '2.3.0', // Latest is 2.3.0 as of 2023-08-05. xerces2_J: '2.12.2', // Latest is 2.12.2 as of 2023-08-05. Modified: trunk/foray/buildSrc/src/main/groovy/foray.logging-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.logging-conventions.gradle 2025-06-25 13:11:01 UTC (rev 13865) +++ trunk/foray/buildSrc/src/main/groovy/foray.logging-conventions.gradle 2025-06-25 13:43:07 UTC (rev 13866) @@ -5,7 +5,7 @@ } dependencies { - implementation (group: 'org.slf4j', name: 'slf4j-api', version: versions.slf4j) + implementation libs.slf4j } /* Last line of script. */ Modified: trunk/foray/foray-common/build.gradle =================================================================== --- trunk/foray/foray-common/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) +++ trunk/foray/foray-common/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) @@ -8,7 +8,7 @@ description = 'foray-common' dependencies { - implementation (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) + implementation libs.commonsIo implementation (group: 'com.ibm.icu', name: 'icu4j', version: versions.icu4j) implementation libs.axsl.primitive Modified: trunk/foray/foray-font/build.gradle =================================================================== --- trunk/foray/foray-font/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) +++ trunk/foray/foray-font/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) @@ -8,9 +8,9 @@ dependencies { - api (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) - implementation (group: 'commons-discovery', name: 'commons-discovery', version: versions.commonsDiscovery) - api (group: 'commons-cli', name: 'commons-cli', version: versions.commonsCli) + api libs.commonsIo + implementation libs.commonsDiscovery + api libs.commonsCli api libs.axsl.primitive api libs.axsl.font Modified: trunk/foray/foray-orthography/build.gradle =================================================================== --- trunk/foray/foray-orthography/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) +++ trunk/foray/foray-orthography/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) @@ -7,8 +7,8 @@ description = 'foray-orthography' dependencies { - api (group: 'commons-cli', name: 'commons-cli', version: versions.commonsCli) - api (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) + api libs.commonsCli + api libs.commonsIo implementation (group: 'com.ibm.icu', name: 'icu4j', version: versions.icu4j) implementation libs.axsl.constants Modified: trunk/foray/foray-primitive/build.gradle =================================================================== --- trunk/foray/foray-primitive/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) +++ trunk/foray/foray-primitive/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) @@ -6,7 +6,7 @@ description = 'foray-primitive' dependencies { - implementation (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) + implementation libs.commonsIo api libs.axsl.constants api libs.axsl.primitive } Modified: trunk/foray/foray-ps/build.gradle =================================================================== --- trunk/foray/foray-ps/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) +++ trunk/foray/foray-ps/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) @@ -7,7 +7,7 @@ description = 'foray-ps' dependencies { - implementation (group: 'commons-cli', name: 'commons-cli', version: versions.commonsCli) + implementation libs.commonsCli api libs.axsl.constants api libs.axsl.primitive Modified: trunk/foray/foray-ps-data/build.gradle =================================================================== --- trunk/foray/foray-ps-data/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) +++ trunk/foray/foray-ps-data/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) @@ -7,7 +7,7 @@ description = 'foray-ps-data' dependencies { - implementation (group: 'commons-cli', name: 'commons-cli', version: versions.commonsCli) + implementation libs.commonsCli api libs.axsl.ps @@ -14,7 +14,7 @@ implementation (project(':foray-common')) implementation (project(':foray-primitive')) - testImplementation (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) + testImplementation libs.commonsIo } javadoc { Modified: trunk/foray/foray-xml/build.gradle =================================================================== --- trunk/foray/foray-xml/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) +++ trunk/foray/foray-xml/build.gradle 2025-06-25 13:43:07 UTC (rev 13866) @@ -7,7 +7,7 @@ description = 'foray-xml' dependencies { - implementation (group: 'commons-cli', name: 'commons-cli', version: versions.commonsCli) + implementation libs.commonsCli implementation (group: 'xml-resolver', name: 'xml-resolver', version: versions.xmlResolver) implementation (group: 'org.apache.ws.xmlschema', name: 'xmlschema-core', version: versions.xmlSchemaCore) /* The Xerces parser is used because it handles numeric character references correctly, while the standard Java Modified: trunk/foray/gradle/libs.versions.toml =================================================================== --- trunk/foray/gradle/libs.versions.toml 2025-06-25 13:11:01 UTC (rev 13865) +++ trunk/foray/gradle/libs.versions.toml 2025-06-25 13:43:07 UTC (rev 13866) @@ -97,9 +97,12 @@ axsl-speech = { group = "org.axsl", name = "axsl-speech", version.ref = "axsl" } axsl-value = { group = "org.axsl", name = "axsl-value", version.ref = "axsl" } +slf4j = { group = "org.slf4j", name = "slf4j-api", version.ref = "slf4j" } +commonsIo = { group = "commons-io", name = "commons-io", version.ref = "commonsIo" } +commonsCli = { group = "commons-cli", name = "commons-cli", version.ref = "commonsCli" } +commonsDiscovery = { group = "commons-discovery", name = "commons-discovery", version.ref = "commonsDiscovery" } - checker-framework = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerFramework" } # checkerFramework (group = 'org.checkerframework', name = 'checker', version = versions.checkerFramework) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 13:11:09
|
Revision: 13865 http://sourceforge.net/p/foray/code/13865 Author: victormote Date: 2025-06-25 13:11:01 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Replace some dependencies on ext.versions with dependencies on libs.versions.toml. Modified Paths: -------------- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle trunk/foray/foray-app/build.gradle trunk/foray/foray-areatree/build.gradle trunk/foray/foray-common/build.gradle trunk/foray/foray-content/build.gradle trunk/foray/foray-core/build.gradle trunk/foray/foray-font/build.gradle trunk/foray/foray-font-parse/build.gradle trunk/foray/foray-font-tf/build.gradle trunk/foray/foray-fotree/build.gradle trunk/foray/foray-graphic/build.gradle trunk/foray/foray-layout/build.gradle trunk/foray/foray-linebreak/build.gradle trunk/foray/foray-mif/build.gradle trunk/foray/foray-orthography/build.gradle trunk/foray/foray-output/build.gradle trunk/foray/foray-pdf/build.gradle trunk/foray/foray-pdf-core/build.gradle trunk/foray/foray-pdf-parse/build.gradle trunk/foray/foray-pioneer/build.gradle trunk/foray/foray-primitive/build.gradle trunk/foray/foray-ps/build.gradle trunk/foray/foray-ps-data/build.gradle trunk/foray/foray-render/build.gradle trunk/foray/foray-speech/build.gradle trunk/foray/foray-unicode/build.gradle trunk/foray/foray-zz-attic/build.gradle trunk/foray/gradle/libs.versions.toml Modified: trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -36,10 +36,6 @@ /******************** See Note 1 below for information about dependency releases. ********************/ ext.versions = [ - /* Dependencies related to aXSL. These should be maintained at the same versions used by aXSL. */ - axsl: '0.3-SNAPSHOT', // Latest is 0.3-SNAPSHOT as of 2022-11-26. See Note 2. - /* End of aXSL-related dependencies. */ - slf4j: '2.0.5', // Latest is 2.0.5 as of 2022-11-26. commonsIo: '2.11.0', // Latest is 2.11.0 as of 2022-11-26. commonsDiscovery: '0.5', // Latest is 0.5 as of 2022-11-26. Modified: trunk/foray/foray-app/build.gradle =================================================================== --- trunk/foray/foray-app/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-app/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -14,19 +14,19 @@ implementation (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) implementation (group: 'commons-cli', name: 'commons-cli', version: versions.commonsCli) - implementation (group: 'org.axsl', name: 'axsl-font', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-linebreak', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-ps', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-areatree', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-output', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-fotree', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-galley', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-graphic', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-layout', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-speech', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-mif', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-pdf', version: versions.axsl) + implementation libs.axsl.font + implementation libs.axsl.linebreak + implementation libs.axsl.ps + implementation libs.axsl.areatree + implementation libs.axsl.output + implementation libs.axsl.fotree + implementation libs.axsl.galley + implementation libs.axsl.orthography + implementation libs.axsl.graphic + implementation libs.axsl.layout + implementation libs.axsl.speech + implementation libs.axsl.mif + implementation libs.axsl.pdf implementation (project(':foray-areatree')) Modified: trunk/foray/foray-areatree/build.gradle =================================================================== --- trunk/foray/foray-areatree/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-areatree/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -10,9 +10,9 @@ api libs.svg.lib api libs.mathml.lib - api (group: 'org.axsl', name: 'axsl-areatree', version: versions.axsl) - api (group: "org.axsl", name: "axsl-font", version: versions.axsl) - api (group: "org.axsl", name: "axsl-fotree", version: versions.axsl) + api libs.axsl.areatree + api libs.axsl.font + api libs.axsl.fotree /* We dislike declaring a direct dependency on axsl-galley here as axsl-areatree is intended to be a direct superset * of it, and a dependency on axsl-areatree should be sufficient. Indeed, from a gradle standpoint it is, as gradle * handles the transitive dependency properly. However, there is no build pattern (known to us) that allows a module @@ -19,13 +19,13 @@ * to declare that its API is a direct (non-transitive) superset of another module's API. Since we are using the * autonomousapps dependency-analysis tool, which (for good reason) dislikes having transitive dependencies * accidentally leak into the API of client code, we declare a direct dependency on axsl-galley here. */ - api (group: "org.axsl", name: "axsl-galley", version: versions.axsl) - api (group: "org.axsl", name: "axsl-graphic", version: versions.axsl) - api (group: "org.axsl", name: "axsl-i18n", version: versions.axsl) - api (group: "org.axsl", name: "axsl-orthography", version: versions.axsl) - api (group: "org.axsl", name: "axsl-value", version: versions.axsl) - implementation (group: "org.axsl", name: "axsl-constants", version: versions.axsl) - implementation (group: "org.axsl", name: "axsl-kp-model", version: versions.axsl) + api libs.axsl.galley + api libs.axsl.graphic + api libs.axsl.i18n + api libs.axsl.orthography + api libs.axsl.value + implementation libs.axsl.constants + implementation libs.axsl.kp.model api (project(':foray-common')) implementation (project(':foray-primitive')) Modified: trunk/foray/foray-common/build.gradle =================================================================== --- trunk/foray/foray-common/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-common/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -11,12 +11,12 @@ implementation (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) implementation (group: 'com.ibm.icu', name: 'icu4j', version: versions.icu4j) - implementation (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-i18n', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-kp-model', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-ps', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) + implementation libs.axsl.primitive + implementation libs.axsl.i18n + implementation libs.axsl.kp.model + implementation libs.axsl.ps + implementation libs.axsl.constants + implementation libs.axsl.value implementation project(':foray-primitive') } Modified: trunk/foray/foray-content/build.gradle =================================================================== --- trunk/foray/foray-content/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-content/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -5,15 +5,15 @@ description = 'foray-content' dependencies { - api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-content', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-fotree', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-font', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-kp-model', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-areatree', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-galley', version: versions.axsl) + api libs.axsl.constants + api libs.axsl.content + api libs.axsl.fotree + api libs.axsl.font + api libs.axsl.value + api libs.axsl.orthography + api libs.axsl.kp.model + api libs.axsl.areatree + implementation libs.axsl.galley api (project(':foray-common')) } Modified: trunk/foray/foray-core/build.gradle =================================================================== --- trunk/foray/foray-core/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-core/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -8,17 +8,17 @@ dependencies { implementation (group: 'xml-resolver', name: 'xml-resolver', version: versions.xmlResolver) - api (group: 'org.axsl', name: 'axsl-areatree', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-fotree', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-font', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-galley', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-graphic', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-layout', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-output', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-speech', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-linebreak', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) + api libs.axsl.areatree + api libs.axsl.fotree + api libs.axsl.font + implementation libs.axsl.galley + api libs.axsl.graphic + api libs.axsl.layout + api libs.axsl.orthography + api libs.axsl.output + api libs.axsl.speech + api libs.axsl.linebreak + implementation libs.axsl.constants api (project(':foray-common')) api (project(':foray-xml')) Modified: trunk/foray/foray-font/build.gradle =================================================================== --- trunk/foray/foray-font/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-font/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -12,12 +12,12 @@ implementation (group: 'commons-discovery', name: 'commons-discovery', version: versions.commonsDiscovery) api (group: 'commons-cli', name: 'commons-cli', version: versions.commonsCli) - api (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-font', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-ps', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) + api libs.axsl.primitive + api libs.axsl.font + api libs.axsl.ps + api libs.axsl.orthography + implementation libs.axsl.constants + api libs.axsl.value api (project(':foray-common')) implementation (project(':foray-primitive')) Modified: trunk/foray/foray-font-parse/build.gradle =================================================================== --- trunk/foray/foray-font-parse/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-font-parse/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -7,9 +7,9 @@ description = 'foray-font-parse' dependencies { + api libs.axsl.constants + api libs.axsl.primitive - api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) api (project(':foray-common')) } Modified: trunk/foray/foray-font-tf/build.gradle =================================================================== --- trunk/foray/foray-font-tf/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-font-tf/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -6,11 +6,11 @@ dependencies { - api (group: 'org.axsl', name: 'axsl-font', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) + api libs.axsl.font + api libs.axsl.orthography + implementation libs.axsl.constants + api libs.axsl.primitive + api libs.axsl.value api (project(':foray-ps-data')) } Modified: trunk/foray/foray-fotree/build.gradle =================================================================== --- trunk/foray/foray-fotree/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-fotree/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -25,14 +25,14 @@ /* TODO: Replace this dependency on batik-anim, used for parsing SVGDocument, with something more lightweight. */ implementation (group: "org.apache.xmlgraphics", name: "batik-anim", version: versions.batik) - api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-fotree', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-i18n', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-kp-model', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) + api libs.axsl.constants + api libs.axsl.fotree + implementation libs.axsl.primitive + api libs.axsl.i18n + api libs.axsl.orthography + api libs.axsl.kp.model + implementation libs.axsl.constants + api libs.axsl.value api (project(':foray-common')) implementation (project(':foray-primitive')) Modified: trunk/foray/foray-graphic/build.gradle =================================================================== --- trunk/foray/foray-graphic/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-graphic/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -22,13 +22,13 @@ api libs.svg.lib api libs.mathml.lib - api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-font', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-graphic', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-ps', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) + api libs.axsl.constants + api libs.axsl.primitive + api libs.axsl.font + api libs.axsl.graphic + api libs.axsl.orthography + api libs.axsl.ps + api libs.axsl.value api (project(':foray-common')) implementation (project(':foray-primitive')) Modified: trunk/foray/foray-layout/build.gradle =================================================================== --- trunk/foray/foray-layout/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-layout/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -5,9 +5,9 @@ description = 'foray-layout' dependencies { - api (group: 'org.axsl', name: 'axsl-layout', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-areatree', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-fotree', version: versions.axsl) + api libs.axsl.layout + api libs.axsl.areatree + api libs.axsl.fotree } javadoc { Modified: trunk/foray/foray-linebreak/build.gradle =================================================================== --- trunk/foray/foray-linebreak/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-linebreak/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -6,9 +6,9 @@ description = 'foray-linebreak' dependencies { - api (group: 'org.axsl', name: 'axsl-linebreak', version: versions.axsl) - api (group: "org.axsl", name: "axsl-context", version: versions.axsl) - api (group: "org.axsl", name: "axsl-kp-model", version: versions.axsl) + api libs.axsl.linebreak + api libs.axsl.context + api libs.axsl.kp.model api (project(':foray-common')) implementation (project(':foray-primitive')) Modified: trunk/foray/foray-mif/build.gradle =================================================================== --- trunk/foray/foray-mif/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-mif/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -6,9 +6,9 @@ description = 'foray-mif' dependencies { - implementation (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-mif', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-output', version: versions.axsl) + implementation libs.axsl.constants + api libs.axsl.mif + api libs.axsl.output implementation (project(':foray-common')) Modified: trunk/foray/foray-orthography/build.gradle =================================================================== --- trunk/foray/foray-orthography/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-orthography/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -11,13 +11,13 @@ api (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) implementation (group: 'com.ibm.icu', name: 'icu4j', version: versions.icu4j) - implementation (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-fotree', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-i18n', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-kp-model', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) + implementation libs.axsl.constants + api libs.axsl.fotree + api libs.axsl.i18n + api libs.axsl.kp.model + api libs.axsl.orthography + api libs.axsl.primitive + api libs.axsl.value api (project(':foray-common')) api (project(':foray-primitive')) Modified: trunk/foray/foray-output/build.gradle =================================================================== --- trunk/foray/foray-output/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-output/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -6,11 +6,11 @@ description = 'foray-output' dependencies { - implementation (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-font', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-output', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-mif', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-fotree', version: versions.axsl) + implementation libs.axsl.value + api libs.axsl.font + api libs.axsl.output + api libs.axsl.mif + api libs.axsl.fotree implementation (project(':foray-common')) } Modified: trunk/foray/foray-pdf/build.gradle =================================================================== --- trunk/foray/foray-pdf/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-pdf/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -9,15 +9,15 @@ dependencies { api (group: 'org.apache.xmlgraphics', name: 'batik-awt-util', version: versions.batik) - api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-pdf', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-font', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-graphic', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-ps', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) + api libs.axsl.constants + api libs.axsl.pdf + api libs.axsl.primitive + api libs.axsl.font + api libs.axsl.graphic + api libs.axsl.orthography + api libs.axsl.ps + implementation libs.axsl.constants + api libs.axsl.value api (project(':foray-common')) implementation (project(':foray-primitive')) Modified: trunk/foray/foray-pdf-core/build.gradle =================================================================== --- trunk/foray/foray-pdf-core/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-pdf-core/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -8,7 +8,7 @@ dependencies { - api (group: 'org.axsl', name: 'axsl-pdf', version: versions.axsl) + api libs.axsl.pdf implementation (project(':foray-primitive')) implementation (project(':foray-common')) Modified: trunk/foray/foray-pdf-parse/build.gradle =================================================================== --- trunk/foray/foray-pdf-parse/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-pdf-parse/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -7,8 +7,8 @@ description = 'foray-pdf-parse' dependencies { - api (group: 'org.axsl', name: 'axsl-pdf', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) + api libs.axsl.pdf + api libs.axsl.primitive implementation (project(':foray-common')) implementation (project(':foray-pdf-core')) Modified: trunk/foray/foray-pioneer/build.gradle =================================================================== --- trunk/foray/foray-pioneer/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-pioneer/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -6,19 +6,19 @@ description = 'foray-pioneer' dependencies { - implementation (group: 'org.axsl', name: 'axsl-content', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-i18n', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-layout', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-fotree', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-areatree', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-galley', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-linebreak', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-kp-model', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-graphic', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-font', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) + implementation libs.axsl.content + implementation libs.axsl.i18n + api libs.axsl.layout + api libs.axsl.fotree + api libs.axsl.areatree + implementation libs.axsl.galley + api libs.axsl.linebreak + api libs.axsl.kp.model + implementation libs.axsl.graphic + api libs.axsl.font + implementation libs.axsl.orthography + implementation libs.axsl.constants + api libs.axsl.value implementation (project(':foray-common')) api (project(':foray-layout')) Modified: trunk/foray/foray-primitive/build.gradle =================================================================== --- trunk/foray/foray-primitive/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-primitive/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -7,8 +7,8 @@ dependencies { implementation (group: 'commons-io', name: 'commons-io', version: versions.commonsIo) - api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) + api libs.axsl.constants + api libs.axsl.primitive } javadoc { Modified: trunk/foray/foray-ps/build.gradle =================================================================== --- trunk/foray/foray-ps/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-ps/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -9,9 +9,9 @@ dependencies { implementation (group: 'commons-cli', name: 'commons-cli', version: versions.commonsCli) - api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-ps', version: versions.axsl) + api libs.axsl.constants + api libs.axsl.primitive + api libs.axsl.ps implementation (project(':foray-common')) implementation (project(':foray-primitive')) Modified: trunk/foray/foray-ps-data/build.gradle =================================================================== --- trunk/foray/foray-ps-data/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-ps-data/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -9,7 +9,7 @@ dependencies { implementation (group: 'commons-cli', name: 'commons-cli', version: versions.commonsCli) - api (group: 'org.axsl', name: 'axsl-ps', version: versions.axsl) + api libs.axsl.ps implementation (project(':foray-common')) implementation (project(':foray-primitive')) Modified: trunk/foray/foray-render/build.gradle =================================================================== --- trunk/foray/foray-render/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-render/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -8,16 +8,16 @@ dependencies { implementation libs.svg.lib - api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-output', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-font', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-pdf', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-galley', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-value', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-graphic', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-orthography', version: versions.axsl) - api (group: 'org.axsl', name: 'axsl-ps', version: versions.axsl) + api libs.axsl.constants + implementation libs.axsl.primitive + api libs.axsl.output + api libs.axsl.font + api libs.axsl.pdf + api libs.axsl.galley + api libs.axsl.value + api libs.axsl.graphic + implementation libs.axsl.orthography + api libs.axsl.ps /* TODO: Replace this dependency on batik-anim, used for parsing SVGDocument, with something more lightweight. */ implementation (group: "org.apache.xmlgraphics", name: "batik-anim", version: versions.batik) Modified: trunk/foray/foray-speech/build.gradle =================================================================== --- trunk/foray/foray-speech/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-speech/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -5,7 +5,7 @@ description = 'foray-speech' dependencies { - api (group: 'org.axsl', name: 'axsl-speech', version: versions.axsl) + api libs.axsl.speech } javadoc { Modified: trunk/foray/foray-unicode/build.gradle =================================================================== --- trunk/foray/foray-unicode/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-unicode/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -7,7 +7,7 @@ dependencies { - api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) + api libs.axsl.constants } Modified: trunk/foray/foray-zz-attic/build.gradle =================================================================== --- trunk/foray/foray-zz-attic/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/foray-zz-attic/build.gradle 2025-06-25 13:11:01 UTC (rev 13865) @@ -11,8 +11,8 @@ api (group: 'jakarta.activation', name: 'jakarta.activation-api', version: '1.2.2') implementation (group: 'com.ibm.icu', name: 'icu4j', version: versions.icu4j) - api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) - implementation (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) + api libs.axsl.constants + implementation libs.axsl.primitive api (project(':foray-common')) implementation (project(':foray-primitive')) Modified: trunk/foray/gradle/libs.versions.toml =================================================================== --- trunk/foray/gradle/libs.versions.toml 2025-06-25 12:19:36 UTC (rev 13864) +++ trunk/foray/gradle/libs.versions.toml 2025-06-25 13:11:01 UTC (rev 13865) @@ -5,11 +5,11 @@ # ******************** See Note 1 below for information about dependency releases. ******************** # Dependencies related to aXSL. These should be maintained at the same versions used by aXSL. */ -axsl = "0.3-SNAPSHOT" # Latest is 0.3-SNAPSHOT as of 2022-11-26. See Note 2. svgDom = "1.1" # See aXSL master/build.gradle mathMlDom = "2.0" # See aXSL master/build.gradle # End of aXSL-related dependencies. */ +axsl = "0.3-SNAPSHOT" # Latest is 0.3-SNAPSHOT as of 2022-11-26. See Note 2. slf4j = "2.0.5" # Latest is 2.0.5 as of 2022-11-26. commonsIo = "2.11.0" # Latest is 2.11.0 as of 2022-11-26. commonsDiscovery = "0.5" # Latest is 0.5 as of 2022-11-26. @@ -76,8 +76,32 @@ svg-lib = { group = "org.axsl.org.w3c.dom.svg", name = "svg-dom-java", version.ref = "svgDom" } mathml-lib = { group = "org.axsl.org.w3c.dom.mathml", name = "mathml-dom-java", version.ref = "mathMlDom" } +axsl-areatree = { group = "org.axsl", name = "axsl-areatree", version.ref = "axsl" } +axsl-constants = { group = "org.axsl", name = "axsl-constants", version.ref = "axsl" } +axsl-content = { group = "org.axsl", name = "axsl-content", version.ref = "axsl" } +axsl-context = { group = "org.axsl", name = "axsl-context", version.ref = "axsl" } +axsl-font = { group = "org.axsl", name = "axsl-font", version.ref = "axsl" } +axsl-fotree = { group = "org.axsl", name = "axsl-fotree", version.ref = "axsl" } +axsl-galley = { group = "org.axsl", name = "axsl-galley", version.ref = "axsl" } +axsl-graphic = { group = "org.axsl", name = "axsl-graphic", version.ref = "axsl" } +axsl-i18n = { group = "org.axsl", name = "axsl-i18n", version.ref = "axsl" } +axsl-kp-model = { group = "org.axsl", name = "axsl-kp-model", version.ref = "axsl" } +axsl-layout = { group = "org.axsl", name = "axsl-layout", version.ref = "axsl" } +axsl-linebreak = { group = "org.axsl", name = "axsl-linebreak", version.ref = "axsl" } +axsl-mif = { group = "org.axsl", name = "axsl-mif", version.ref = "axsl" } +axsl-orthography = { group = "org.axsl", name = "axsl-orthography", version.ref = "axsl" } +axsl-output = { group = "org.axsl", name = "axsl-output", version.ref = "axsl" } +axsl-pdf = { group = "org.axsl", name = "axsl-pdf", version.ref = "axsl" } +axsl-primitive = { group = "org.axsl", name = "axsl-primitive", version.ref = "axsl" } +axsl-ps = { group = "org.axsl", name = "axsl-ps", version.ref = "axsl" } +axsl-speech = { group = "org.axsl", name = "axsl-speech", version.ref = "axsl" } +axsl-value = { group = "org.axsl", name = "axsl-value", version.ref = "axsl" } + + + + checker-framework = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerFramework" } -# checkerFramework (group: 'org.checkerframework', name: 'checker', version: versions.checkerFramework) +# checkerFramework (group = 'org.checkerframework', name = 'checker', version = versions.checkerFramework) junit-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter", version.ref = "junit" } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 12:19:39
|
Revision: 13864 http://sourceforge.net/p/foray/code/13864 Author: victormote Date: 2025-06-25 12:19:36 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Replace some dependencies on ext.versions with dependencies on libs.versions.toml. Modified Paths: -------------- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle trunk/foray/foray-areatree/build.gradle trunk/foray/foray-fotree/build.gradle trunk/foray/foray-graphic/build.gradle trunk/foray/foray-render/build.gradle trunk/foray/foray-xml/build.gradle Modified: trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 11:58:19 UTC (rev 13863) +++ trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 12:19:36 UTC (rev 13864) @@ -38,8 +38,6 @@ ext.versions = [ /* Dependencies related to aXSL. These should be maintained at the same versions used by aXSL. */ axsl: '0.3-SNAPSHOT', // Latest is 0.3-SNAPSHOT as of 2022-11-26. See Note 2. - svgDom: '1.1', // See aXSL master/build.gradle - mathMlDom: '2.0', // See aXSL master/build.gradle /* End of aXSL-related dependencies. */ slf4j: '2.0.5', // Latest is 2.0.5 as of 2022-11-26. Modified: trunk/foray/foray-areatree/build.gradle =================================================================== --- trunk/foray/foray-areatree/build.gradle 2025-06-25 11:58:19 UTC (rev 13863) +++ trunk/foray/foray-areatree/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) @@ -7,8 +7,8 @@ description = 'foray-areatree' dependencies { - api (group: "org.axsl.org.w3c.dom.svg", name:"svg-dom-java", version: versions.svgDom) - api (group: "org.axsl.org.w3c.dom.mathml", name:"mathml-dom-java", version: versions.mathMlDom) + api libs.svg.lib + api libs.mathml.lib api (group: 'org.axsl', name: 'axsl-areatree', version: versions.axsl) api (group: "org.axsl", name: "axsl-font", version: versions.axsl) Modified: trunk/foray/foray-fotree/build.gradle =================================================================== --- trunk/foray/foray-fotree/build.gradle 2025-06-25 11:58:19 UTC (rev 13863) +++ trunk/foray/foray-fotree/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) @@ -20,8 +20,8 @@ */ - api (group: 'org.axsl.org.w3c.dom.svg', name: 'svg-dom-java', version: versions.svgDom) - api (group: 'org.axsl.org.w3c.dom.mathml', name: 'mathml-dom-java', version: versions.mathMlDom) + api libs.svg.lib + api libs.mathml.lib /* TODO: Replace this dependency on batik-anim, used for parsing SVGDocument, with something more lightweight. */ implementation (group: "org.apache.xmlgraphics", name: "batik-anim", version: versions.batik) Modified: trunk/foray/foray-graphic/build.gradle =================================================================== --- trunk/foray/foray-graphic/build.gradle 2025-06-25 11:58:19 UTC (rev 13863) +++ trunk/foray/foray-graphic/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) @@ -19,8 +19,8 @@ api (group: "xml-apis", name: "xml-apis-ext", version: "1.3.04") // api (group: 'net.sourceforge.jeuclid', name: 'jeuclid-core', version: versions.jeuclid) api (group: 'de.rototor.jeuclid', name: 'jeuclid-core', version: versions.jeuclid) - api (group: "org.axsl.org.w3c.dom.svg", name:"svg-dom-java", version: versions.svgDom) - api (group: "org.axsl.org.w3c.dom.mathml", name:"mathml-dom-java", version: versions.mathMlDom) + api libs.svg.lib + api libs.mathml.lib api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) api (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) Modified: trunk/foray/foray-render/build.gradle =================================================================== --- trunk/foray/foray-render/build.gradle 2025-06-25 11:58:19 UTC (rev 13863) +++ trunk/foray/foray-render/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) @@ -6,7 +6,7 @@ description = 'foray-render' dependencies { - implementation group: 'org.axsl.org.w3c.dom.svg', name: 'svg-dom-java', version: versions.svgDom + implementation libs.svg.lib api (group: 'org.axsl', name: 'axsl-constants', version: versions.axsl) implementation (group: 'org.axsl', name: 'axsl-primitive', version: versions.axsl) Modified: trunk/foray/foray-xml/build.gradle =================================================================== --- trunk/foray/foray-xml/build.gradle 2025-06-25 11:58:19 UTC (rev 13863) +++ trunk/foray/foray-xml/build.gradle 2025-06-25 12:19:36 UTC (rev 13864) @@ -14,7 +14,7 @@ parser currently does not. */ implementation (group: 'xerces', name: 'xercesImpl', version: versions.xerces2_J) api (group: "org.apache.xmlgraphics", name: "batik-dom", version: versions.batik) - api (group: "org.axsl.org.w3c.dom.mathml", name:"mathml-dom-java", version: versions.mathMlDom) + api libs.mathml.lib implementation (project(':foray-common')) implementation (project(':foray-primitive')) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 11:58:20
|
Revision: 13863 http://sourceforge.net/p/foray/code/13863 Author: victormote Date: 2025-06-25 11:58:19 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Remove some dependencies on ext.versions. Modified Paths: -------------- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle Modified: trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 11:47:40 UTC (rev 13862) +++ trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-25 11:58:19 UTC (rev 13863) @@ -36,9 +36,6 @@ /******************** See Note 1 below for information about dependency releases. ********************/ ext.versions = [ - javaSourceCompatibility: JavaVersion.VERSION_1_8, - javaTargetCompatibility: JavaVersion.VERSION_1_8, - /* Dependencies related to aXSL. These should be maintained at the same versions used by aXSL. */ axsl: '0.3-SNAPSHOT', // Latest is 0.3-SNAPSHOT as of 2022-11-26. See Note 2. svgDom: '1.1', // See aXSL master/build.gradle @@ -98,8 +95,8 @@ java { - sourceCompatibility = versions.javaSourceCompatibility - targetCompatibility = versions.javaTargetCompatibility + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 toolchain { languageVersion.set(JavaLanguageVersion.of(17)) } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-25 11:47:41
|
Revision: 13862 http://sourceforge.net/p/foray/code/13862 Author: victormote Date: 2025-06-25 11:47:40 +0000 (Wed, 25 Jun 2025) Log Message: ----------- Rough-in libs.versions.toml. Added Paths: ----------- trunk/foray/gradle/libs.versions.toml Added: trunk/foray/gradle/libs.versions.toml =================================================================== --- trunk/foray/gradle/libs.versions.toml (rev 0) +++ trunk/foray/gradle/libs.versions.toml 2025-06-25 11:47:40 UTC (rev 13862) @@ -0,0 +1,95 @@ + + +[versions] + +# ******************** See Note 1 below for information about dependency releases. ******************** + +# Dependencies related to aXSL. These should be maintained at the same versions used by aXSL. */ +axsl = "0.3-SNAPSHOT" # Latest is 0.3-SNAPSHOT as of 2022-11-26. See Note 2. +svgDom = "1.1" # See aXSL master/build.gradle +mathMlDom = "2.0" # See aXSL master/build.gradle +# End of aXSL-related dependencies. */ + +slf4j = "2.0.5" # Latest is 2.0.5 as of 2022-11-26. +commonsIo = "2.11.0" # Latest is 2.11.0 as of 2022-11-26. +commonsDiscovery = "0.5" # Latest is 0.5 as of 2022-11-26. +commonsCli = "1.5.0" # Latest is 1.5.0 as of 2022-11-26. +xmlResolver = "1.2" # Latest is 1.2 as of 2022-11-26. See Note 3. +xmlSchemaCore = "2.3.0" # Latest is 2.3.0 as of 2023-08-05. +xerces2_J = "2.12.2" # Latest is 2.12.2 as of 2023-08-05. +ant = "1.10.12" # Latest is 1.10.12 as of 2022-11-26. +servletApi = "4.0.1" # Latest is 4.0.1 as of 2022-11-26. +xmlgraphicsCommons = "2.6" # Latest is 2.6 as of 2022-01-17. +batik = "1.14" # Latest is 1.14 as of 2022-01-17. +jeuclid = "3.1.14" # Latest is 3.1.14 as of 2022-11-26. See Note 4. +icu4j = "72.1" # Latest is 72.1 as of 2022-11-26. + + +checkerFramework = "3.49.2" # Latest is 3.49.2 as of 2025-04-20. See Note 7. +checkerFrameworkGradlePlugin = "0.6.55" # Latest is 0.6.55 as of 2025-06-24. See Note 7. +junit = "5.13.1" # Latest is 5.13.1 as of 2025-06-15. +mockito = "4.9.0" # Latest is 4.9.0 as of 2022-11-26. See Note 5. + + +# See foray-00-master/resources/logger-impl/00-readme.txt for information about logging implementations. +# Bottom line is that logging implementations are not and should not be part of any FOray dependencies. +# This entry can be uncommented temporarily for short-term testing, but should never be checked in. */ +#logbackClassic = "1.3.5" # Latest is 1.3.5 as of 2022-11-26. + +# Build-time-only dependencies that should never be permanently used in build.gradle files. */ +checkstyle = "10.23" # Latest is 10.25 as of 2025-06-11. See Note 6. + +# Notes on Dependency Releases (See above for references) +# ======================================================== +# 1. Latest release information above is per www.mvnrepository.com, and ignores non-released artifacts (no alpha or +# beta releases, except for aXSL). +# +# 2. At the moment, and for the foreseeable future, aXSL is controlled by FOray, as we attempt to get the module APIs +# cleaned up and robust. +# +# 3. TODO: Remove this dependency when we upgrade to Java 1.9, as it looks like the catalog resolver code is part of +# that release. +# +# 4. JEuclid has moved from group net.sourceforge.jeuclid to de.rototor.jeuclid, but continues to use the name +# "jeuclid-core" and the same general release numbering sequence. +# The latest version for group net.sourceforge.jeuclid as of 2021-01-12 is 3.1.9 per www.mvnrepository.com. +# +# 5. Mockito versions from 4.6.0 to 4.9.0 cause breakage at build time for reasons that seem to be related to the +# Java version used to start Gradle. For now, using a JDK that matches the javaTargetCompatibility value above +# seems to solve the problem. +# +# 6. The current (as of 2025-06-11) Eclipse plugin for checkstyle uses Checkstyle 10.23. +# We will use that for now to avoid configuration conflicts between the two versions. +# +# 7. The version of the Checker Framework is irrelevant to us. +# Instead, we use the Gradle Checker Framework Plugin which is a wrapper of, but a separate product from, the +# Checker Framework, having its own release cycle, and its own release numbering system. +# https://github.com/kelloggm/checkerframework-gradle-plugin +# Documentation of the Checker Framework itself can be found at +# https://checkerframework.org/manual/#gradle + + + + + +[libraries] +svg-lib = { group = "org.axsl.org.w3c.dom.svg", name = "svg-dom-java", version.ref = "svgDom" } +mathml-lib = { group = "org.axsl.org.w3c.dom.mathml", name = "mathml-dom-java", version.ref = "mathMlDom" } + +checker-framework = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerFramework" } +# checkerFramework (group: 'org.checkerframework', name: 'checker', version: versions.checkerFramework) + +junit-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } +junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter", version.ref = "junit" } +junit-platform-launcher = { group = "org.junit.platform", name = "junit-platform-launcher", version.ref = "junit" } + +mockito = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" } + + + + + +[plugins] +checkerFramework = { id = "org.checkerframework", version.ref = "checkerFrameworkGradlePlugin" } + +# Last line of libs.versions.toml File. Property changes on: trunk/foray/gradle/libs.versions.toml ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Author Date Id Rev \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-21 11:20:06
|
Revision: 13861 http://sourceforge.net/p/foray/code/13861 Author: victormote Date: 2025-06-21 11:20:04 +0000 (Sat, 21 Jun 2025) Log Message: ----------- Change "font not found" message from warning to debug. Modified Paths: -------------- trunk/foray/foray-font/src/main/java/org/foray/font/FontConsumer4a.java Modified: trunk/foray/foray-font/src/main/java/org/foray/font/FontConsumer4a.java =================================================================== --- trunk/foray/foray-font/src/main/java/org/foray/font/FontConsumer4a.java 2025-06-16 22:04:15 UTC (rev 13860) +++ trunk/foray/foray-font/src/main/java/org/foray/font/FontConsumer4a.java 2025-06-21 11:20:04 UTC (rev 13861) @@ -230,7 +230,7 @@ builder.append(weight.toString() + " (weight), "); builder.append(variant.toString() + " (variant), "); builder.append(stretch.toString() + " (stretch), "); - LoggerFactory.getLogger(getClass()).warn("Suitable font not found for: " + builder.toString()); + LoggerFactory.getLogger(getClass()).debug("Suitable font not found for: " + builder.toString()); return null; } try { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-16 22:04:17
|
Revision: 13860 http://sourceforge.net/p/foray/code/13860 Author: victormote Date: 2025-06-16 22:04:15 +0000 (Mon, 16 Jun 2025) Log Message: ----------- Turn off schema validation for FO Tree parsing, as there is no schema. Modified Paths: -------------- trunk/foray/foray-fotree/src/main/java/org/foray/fotree/FoTreeParser4a.java trunk/foray/foray-xml/src/main/java/org/foray/xml/SaxParser4a.java Modified: trunk/foray/foray-fotree/src/main/java/org/foray/fotree/FoTreeParser4a.java =================================================================== --- trunk/foray/foray-fotree/src/main/java/org/foray/fotree/FoTreeParser4a.java 2025-06-16 10:28:52 UTC (rev 13859) +++ trunk/foray/foray-fotree/src/main/java/org/foray/fotree/FoTreeParser4a.java 2025-06-16 22:04:15 UTC (rev 13860) @@ -37,6 +37,7 @@ import org.foray.fotree.fo.obj.Root4a; import org.foray.fotree.foreign.ForeignNamespaceHandler; import org.foray.xml.SaxParser4a; +import org.foray.xml.XercesFeatures; import org.axsl.constants.XmlConstants; import org.axsl.fotree.FoTreeEvent; @@ -46,6 +47,7 @@ import org.axsl.fotree.fo.InstreamForeignObject; import org.axsl.orthography.OrthographyException; +import org.slf4j.event.Level; import org.w3c.dom.Document; import org.w3c.dom.mathml.MathMLDocument; import org.w3c.dom.svg.SVGDocument; @@ -163,6 +165,11 @@ XMLReader parser = this.parser; if (parser == null) { parser = createSax2Parser(false, true, true, null, false); + + /* Turn off schema validation. */ + setFeature(parser, XercesFeatures.VALIDATION_SCHEMA, false, Level.WARN); + setFeature(parser, XercesFeatures.VALIDATION_SCHEMA_FULL_CHECKING, false, Level.WARN); + setFeature(parser, XercesFeatures.HONOUR_ALL_SCHEMALOCATIONS, false, Level.WARN); } parser.parse(inputSource); return this.foTree; Modified: trunk/foray/foray-xml/src/main/java/org/foray/xml/SaxParser4a.java =================================================================== --- trunk/foray/foray-xml/src/main/java/org/foray/xml/SaxParser4a.java 2025-06-16 10:28:52 UTC (rev 13859) +++ trunk/foray/foray-xml/src/main/java/org/foray/xml/SaxParser4a.java 2025-06-16 22:04:15 UTC (rev 13860) @@ -306,7 +306,7 @@ * @param loggingLevel The logging level to which any exceptions should be logged. A logging level of null implies * that the exception should be rethrown instead of logged. */ - private void setFeature(final XMLReader xmlReader, final String feature, final boolean value, + protected void setFeature(final XMLReader xmlReader, final String feature, final boolean value, final org.slf4j.event.Level loggingLevel) throws SAXException { try { xmlReader.setFeature(feature, value); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-16 10:28:55
|
Revision: 13859 http://sourceforge.net/p/foray/code/13859 Author: victormote Date: 2025-06-16 10:28:52 +0000 (Mon, 16 Jun 2025) Log Message: ----------- Conform to aXSL change: Remove duplicate method easily computed downstream. Modified Paths: -------------- trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java trunk/foray/foray-render/src/main/java/org/foray/render/ps/PsRenderer.java Modified: trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java =================================================================== --- trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java 2025-06-16 09:59:22 UTC (rev 13858) +++ trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java 2025-06-16 10:28:52 UTC (rev 13859) @@ -229,15 +229,6 @@ return this.encoding.canEncode(codePoint); } - @Override - public String getPostscriptName() { - final String postScriptName = getConsumerFont().getFont().getPostscriptName(); - if (this.encoding == getConsumerFont().getFont().getInternalEncoding()) { - return postScriptName; - } - return postScriptName + "-" + this.encoding.getName(); - } - /** * Returns the font consumer instance. * @return The font consumer instance. Modified: trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java =================================================================== --- trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java 2025-06-16 09:59:22 UTC (rev 13858) +++ trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java 2025-06-16 10:28:52 UTC (rev 13859) @@ -101,21 +101,13 @@ } @Override - public String getPostscriptName() { - // TODO Auto-generated method stub - return null; - } - - @Override public void registerCharUsed(final int codePoint) { // TODO Auto-generated method stub - } @Override public void registerCharsUsed(final CharSequence charSequence) { // TODO Auto-generated method stub - } @Override Modified: trunk/foray/foray-render/src/main/java/org/foray/render/ps/PsRenderer.java =================================================================== --- trunk/foray/foray-render/src/main/java/org/foray/render/ps/PsRenderer.java 2025-06-16 09:59:22 UTC (rev 13858) +++ trunk/foray/foray-render/src/main/java/org/foray/render/ps/PsRenderer.java 2025-06-16 10:28:52 UTC (rev 13859) @@ -382,7 +382,7 @@ continue; } final PsFont psFont = getPSFont(fontUse); - write("/" + psFont.getName() + " /" + fontUse.getPostscriptName() + write("/" + psFont.getName() + " /" + getPostscriptName(fontUse) + " def"); } write("end def"); @@ -442,10 +442,24 @@ write(" /Encoding " + vector.getName() + " def"); write(" currentdict"); write("end"); - write("/" + fontUse.getPostscriptName() + " exch definefont pop"); + write("/" + getPostscriptName(fontUse) + " exch definefont pop"); } } + /** + * Computes the name which should be used for a given {@link FontUse}. + * @param fontUse The font use for which a name is needed. + * @return The Postscript name for {@code fontUse}. + */ + private String getPostscriptName(final FontUse fontUse) { + final String postScriptName = fontUse.getConsumerFont().getFont().getPostscriptName(); + if (fontUse.getEncoding() == fontUse.getConsumerFont().getFont().getInternalEncoding()) { + return postScriptName; + } + return postScriptName + "-" + fontUse.getEncoding().getName(); + + } + @Override protected void drawLine(final int startX, final int startY, final int endX, final int endY, final int thickness, final RuleStyle ruleStyle, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-16 09:59:24
|
Revision: 13858 http://sourceforge.net/p/foray/code/13858 Author: victormote Date: 2025-06-16 09:59:22 +0000 (Mon, 16 Jun 2025) Log Message: ----------- Conform to aXSL change: Move font-related methods from FontUse to Font. Modified Paths: -------------- trunk/foray/foray-areatree/src/main/java/org/foray/area/TextArea.java trunk/foray/foray-content/src/main/java/org/foray/content/TextContent4a.java trunk/foray/foray-font/src/main/java/org/foray/font/Font4a.java trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFont.java trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java Modified: trunk/foray/foray-areatree/src/main/java/org/foray/area/TextArea.java =================================================================== --- trunk/foray/foray-areatree/src/main/java/org/foray/area/TextArea.java 2025-06-16 01:57:50 UTC (rev 13857) +++ trunk/foray/foray-areatree/src/main/java/org/foray/area/TextArea.java 2025-06-16 09:59:22 UTC (rev 13858) @@ -415,7 +415,7 @@ final int nominalFontSize = generatedBy.traitFontSizeActual(this); if (usesFauxSmallCaps()) { final FontUse fontUse = traitNominalFont(); - return fontUse.smallCapsSize(nominalFontSize); + return fontUse.getConsumerFont().getFont().smallCapsSize(nominalFontSize); } return nominalFontSize; } Modified: trunk/foray/foray-content/src/main/java/org/foray/content/TextContent4a.java =================================================================== --- trunk/foray/foray-content/src/main/java/org/foray/content/TextContent4a.java 2025-06-16 01:57:50 UTC (rev 13857) +++ trunk/foray/foray-content/src/main/java/org/foray/content/TextContent4a.java 2025-06-16 09:59:22 UTC (rev 13858) @@ -134,7 +134,7 @@ * Right now we rely on the user to configure the font correctly to avoid this. */ /* Has the font been configured to simulate small-caps? */ - if (getFontUse().simulateSmallCaps() == null) { + if (getFontUse().getConsumerFont().getFont().simulateSmallCaps() == null) { return false; } return true; Modified: trunk/foray/foray-font/src/main/java/org/foray/font/Font4a.java =================================================================== --- trunk/foray/foray-font/src/main/java/org/foray/font/Font4a.java 2025-06-16 01:57:50 UTC (rev 13857) +++ trunk/foray/foray-font/src/main/java/org/foray/font/Font4a.java 2025-06-16 09:59:22 UTC (rev 13858) @@ -33,7 +33,10 @@ import org.foray.font.format.Panose4a; import org.foray.ps.encode.CharSet; +import org.axsl.constants.NumericConstants; +import org.axsl.constants.TypographicConstants; import org.axsl.font.Font; +import org.axsl.font.FontFeatureSimulation; import org.axsl.font.FontFormat; import org.axsl.i18n.Script; import org.axsl.unicode.block.U0000_Basic_Latin; @@ -41,7 +44,10 @@ import org.axsl.unicode.block.U2000_General_Punctuation; import org.axsl.unicode.block.U3000_CJK_Symbols_and_Punctuation; import org.axsl.value.BaselineIdentifier; +import org.axsl.value.FontStretch; +import java.math.BigDecimal; + /** * An implementation of the aXSL {@link Font4a} interface. */ @@ -486,4 +492,39 @@ return rf == null ? null : rf.getBestFont(); } + @Override + public BigDecimal simulateSmallCaps() { + return this.registeredFont.getFontFeatureSimulation().getSimulatedSmallCaps(); + } + + @Override + public int smallCapsSize(final int fontSize) { + final BigDecimal percent = this.registeredFont.getFontFeatureSimulation().getSimulatedSmallCaps(); + if (percent == null) { + return fontSize; + } + if (percent.equals(FontFeatureSimulation.SMALL_CAP_SIMULATION_NATIVE)) { + int smallCapsSize = getXheight(TypographicConstants.MILLIPOINTS_PER_POINT); + smallCapsSize /= getAscender(TypographicConstants.MILLIPOINTS_PER_POINT); + smallCapsSize *= NumericConstants.PERCENT_CONVERSION; + return smallCapsSize; + } + return Math.round(fontSize * percent.floatValue() / NumericConstants.PERCENT_CONVERSION); + } + + @Override + public BigDecimal simulateOblique() { + return this.registeredFont.getFontFeatureSimulation().getSimulatedOblique(); + } + + @Override + public BigDecimal simulateBackslant() { + return this.registeredFont.getFontFeatureSimulation().getSimulatedBackslant(); + } + + @Override + public BigDecimal simulateStretch(final FontStretch stretch) { + return this.registeredFont.getFontFeatureSimulation().getSimulatedStretch(stretch); + } + } Modified: trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java =================================================================== --- trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java 2025-06-16 01:57:50 UTC (rev 13857) +++ trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java 2025-06-16 09:59:22 UTC (rev 13858) @@ -37,13 +37,10 @@ import org.foray.primitive.sequence.ShortArrayBuilder; import org.foray.ps.encode.CharSet; -import org.axsl.constants.NumericConstants; import org.axsl.constants.PrimitiveConstants; -import org.axsl.constants.TypographicConstants; import org.axsl.font.ConsumerFont; import org.axsl.font.Font; import org.axsl.font.FontContext; -import org.axsl.font.FontFeatureSimulation; import org.axsl.font.FontUse; import org.axsl.orthography.Orthography; import org.axsl.primitive.sequence.IntSequence; @@ -50,10 +47,8 @@ import org.axsl.primitive.sequence.ShortSequence; import org.axsl.ps.Encoding; import org.axsl.unicode.block.U0000_Basic_Latin; -import org.axsl.value.FontStretch; import java.io.UnsupportedEncodingException; -import java.math.BigDecimal; /** * <p>An implementation of the aXSL {@link FontUse4a} interface.</p> @@ -235,42 +230,6 @@ } @Override - public BigDecimal simulateSmallCaps() { - return this.registeredFontDesc.getFontFeatureSimulation().getSimulatedSmallCaps(); - } - - @Override - public int smallCapsSize(final int fontSize) { - final BigDecimal percent = this.registeredFontDesc.getFontFeatureSimulation().getSimulatedSmallCaps(); - if (percent == null) { - return fontSize; - } - if (percent.equals(FontFeatureSimulation.SMALL_CAP_SIMULATION_NATIVE)) { - final Font4a font = this.consumerFont.getFont(); - int smallCapsSize = font.getXheight(TypographicConstants.MILLIPOINTS_PER_POINT); - smallCapsSize /= font.getAscender(TypographicConstants.MILLIPOINTS_PER_POINT); - smallCapsSize *= NumericConstants.PERCENT_CONVERSION; - return smallCapsSize; - } - return Math.round(fontSize * percent.floatValue() / NumericConstants.PERCENT_CONVERSION); - } - - @Override - public BigDecimal simulateOblique() { - return this.registeredFontDesc.getFontFeatureSimulation().getSimulatedOblique(); - } - - @Override - public BigDecimal simulateBackslant() { - return this.registeredFontDesc.getFontFeatureSimulation().getSimulatedBackslant(); - } - - @Override - public BigDecimal simulateStretch(final FontStretch stretch) { - return this.registeredFontDesc.getFontFeatureSimulation().getSimulatedStretch(stretch); - } - - @Override public String getPostscriptName() { final String postScriptName = getConsumerFont().getFont().getPostscriptName(); if (this.encoding == getConsumerFont().getFont().getInternalEncoding()) { Modified: trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFont.java =================================================================== --- trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFont.java 2025-06-16 01:57:50 UTC (rev 13857) +++ trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFont.java 2025-06-16 09:59:22 UTC (rev 13858) @@ -36,7 +36,10 @@ import org.axsl.ps.BoundingBox; import org.axsl.ps.Encoding; import org.axsl.value.BaselineIdentifier; +import org.axsl.value.FontStretch; +import java.math.BigDecimal; + /** * A mock implementation of {@link Font}, useful for tests. */ @@ -325,4 +328,29 @@ return null; } + @Override + public BigDecimal simulateSmallCaps() { + return null; + } + + @Override + public int smallCapsSize(final int fontSize) { + return fontSize; + } + + @Override + public BigDecimal simulateOblique() { + return null; + } + + @Override + public BigDecimal simulateBackslant() { + return null; + } + + @Override + public BigDecimal simulateStretch(final FontStretch stretch) { + return null; + } + } Modified: trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java =================================================================== --- trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java 2025-06-16 01:57:50 UTC (rev 13857) +++ trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java 2025-06-16 09:59:22 UTC (rev 13858) @@ -35,10 +35,7 @@ import org.axsl.primitive.sequence.IntSequence; import org.axsl.primitive.sequence.ShortSequence; import org.axsl.ps.Encoding; -import org.axsl.value.FontStretch; -import java.math.BigDecimal; - /** * A mock implementation of {@link FontUse}, useful for tests. */ @@ -104,31 +101,6 @@ } @Override - public BigDecimal simulateSmallCaps() { - return null; - } - - @Override - public int smallCapsSize(final int fontSize) { - return fontSize; - } - - @Override - public BigDecimal simulateOblique() { - return null; - } - - @Override - public BigDecimal simulateBackslant() { - return null; - } - - @Override - public BigDecimal simulateStretch(final FontStretch stretch) { - return null; - } - - @Override public String getPostscriptName() { // TODO Auto-generated method stub return null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-16 01:57:53
|
Revision: 13857 http://sourceforge.net/p/foray/code/13857 Author: victormote Date: 2025-06-16 01:57:50 +0000 (Mon, 16 Jun 2025) Log Message: ----------- Conform to aXSL change: Move nextBolder and nextLighter methods from FontUse to Font. Add method to FontConsumer to use that Font to get a FontUse. Modified Paths: -------------- trunk/foray/foray-font/src/main/java/org/foray/font/ConsumerFont4a.java trunk/foray/foray-font/src/main/java/org/foray/font/Font4a.java trunk/foray/foray-font/src/main/java/org/foray/font/FontConsumer4a.java trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFont.java trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java Modified: trunk/foray/foray-font/src/main/java/org/foray/font/ConsumerFont4a.java =================================================================== --- trunk/foray/foray-font/src/main/java/org/foray/font/ConsumerFont4a.java 2025-06-15 21:36:15 UTC (rev 13856) +++ trunk/foray/foray-font/src/main/java/org/foray/font/ConsumerFont4a.java 2025-06-16 01:57:50 UTC (rev 13857) @@ -76,8 +76,7 @@ * @param font The parent font. * @param consumer The parent font consumer. */ - public ConsumerFont4a(final Font4a font, - final FontConsumer4a consumer) { + public ConsumerFont4a(final Font4a font, final FontConsumer4a consumer) { this.font = font; this.consumer = consumer; if (this.font.isSubsettable()) { @@ -235,8 +234,7 @@ * or created. * @return The selected or created font use. */ - public FontUse4a getFontUse(final RegisteredFont rfd, - final Encoding encoding) { + public FontUse4a getFontUse(final RegisteredFont rfd, final Encoding encoding) { for (int i = 0; i < this.fontUses.size(); i++) { final FontUse4a fontUse = this.fontUses.get(i); if (fontUse.getRegisteredFontDesc() != rfd) { @@ -455,4 +453,12 @@ return Collections.unmodifiableList(this.fontUses); } + /** + * Adds a FontUse instance to this fonts list. + * @param fontUse The instance to be added. + */ + public void registerFontUse(final FontUse4a fontUse) { + this.fontUses.add(fontUse); + } + } Modified: trunk/foray/foray-font/src/main/java/org/foray/font/Font4a.java =================================================================== --- trunk/foray/foray-font/src/main/java/org/foray/font/Font4a.java 2025-06-15 21:36:15 UTC (rev 13856) +++ trunk/foray/foray-font/src/main/java/org/foray/font/Font4a.java 2025-06-16 01:57:50 UTC (rev 13857) @@ -474,4 +474,16 @@ */ public abstract Panose4a getPanose(); + @Override + public Font4a nextBolderFont() { + final RegisteredFont rf = this.registeredFont.nextBolderFont(); + return rf == null ? null : rf.getBestFont(); + } + + @Override + public Font4a nextLighterFont() { + final RegisteredFont rf = this.registeredFont.nextLighterFont(); + return rf == null ? null : rf.getBestFont(); + } + } Modified: trunk/foray/foray-font/src/main/java/org/foray/font/FontConsumer4a.java =================================================================== --- trunk/foray/foray-font/src/main/java/org/foray/font/FontConsumer4a.java 2025-06-15 21:36:15 UTC (rev 13856) +++ trunk/foray/foray-font/src/main/java/org/foray/font/FontConsumer4a.java 2025-06-16 01:57:50 UTC (rev 13857) @@ -33,6 +33,7 @@ import org.foray.font.format.Panose; import org.foray.font.format.Panose4a; +import org.axsl.font.Font; import org.axsl.font.FontConsumer; import org.axsl.font.FontException; import org.axsl.font.FontSelectionConstraints; @@ -40,6 +41,7 @@ import org.axsl.font.zzz.FontSelectionConstraintsMdo; import org.axsl.i18n.Script; import org.axsl.i18n.WritingSystem; +import org.axsl.ps.Encoding; import org.axsl.value.FontSelectionStrategy; import org.axsl.value.FontStretch; import org.axsl.value.FontStyle; @@ -500,4 +502,33 @@ } } + @Override + public FontUse4a getFontUse(final Font font, final Encoding encoding) { + if (font instanceof Font4a) { + final Font4a font4a = (Font4a) font; + ConsumerFont4a consumerFont = this.usedFonts.get(font4a); + final RegisteredFont registeredFont = font4a.getRegisteredFont(); + final Encoding resolvedEncoding = encoding == null ? font.getInternalEncoding() : encoding; + if (consumerFont == null) { + consumerFont = new ConsumerFont4a(font4a, this); + final FontUse4a fontUse = new FontUse4a(consumerFont, registeredFont, resolvedEncoding); + consumerFont.registerFontUse(fontUse); + return fontUse; + } else { + FontUse4a fontUse = consumerFont.getFontUse(registeredFont, resolvedEncoding); + if (fontUse == null) { + fontUse = new FontUse4a(consumerFont, registeredFont, resolvedEncoding); + consumerFont.registerFontUse(fontUse); + return fontUse; + } else { + return fontUse; + } + } + + } else { + /* TODO: Implement this. */ + return null; + } + } + } Modified: trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java =================================================================== --- trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java 2025-06-15 21:36:15 UTC (rev 13856) +++ trunk/foray/foray-font/src/main/java/org/foray/font/FontUse4a.java 2025-06-16 01:57:50 UTC (rev 13857) @@ -189,38 +189,6 @@ } @Override - public org.axsl.font.FontUse nextBolderFont() { - final RegisteredFont desc = - this.registeredFontDesc.nextBolderFont(); - return fontUseForDesc(desc); - } - - @Override - public org.axsl.font.FontUse nextLighterFont() { - final RegisteredFont desc = - this.registeredFontDesc.nextLighterFont(); - return fontUseForDesc(desc); - } - - /** - * Finds the FontUse instance that should be used for a given - * {@link RegisteredFont} instance. - * @param desc The registered font description for which a FontUse is - * needed. - * @return The appropriate FontUse instance. - */ - private org.axsl.font.FontUse fontUseForDesc( - final RegisteredFont desc) { - if (desc == null) { - return null; - } - final FontConsumer4a consumer = this.getFOrayFontConsumer(); - final Font4a font = consumer.whichUse(desc); - final ConsumerFont4a consumerFont = consumer.registerFontUse(font); - return consumerFont.selectFontUse(desc); - } - - @Override public int unavailableChar(final CharSequence charSequence, final int beginIndex) { for (int i = 0; i < charSequence.length(); i++) { Modified: trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFont.java =================================================================== --- trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFont.java 2025-06-15 21:36:15 UTC (rev 13856) +++ trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFont.java 2025-06-16 01:57:50 UTC (rev 13857) @@ -313,4 +313,16 @@ return null; } + @Override + public Font nextBolderFont() { + // TODO Auto-generated method stub + return null; + } + + @Override + public Font nextLighterFont() { + // TODO Auto-generated method stub + return null; + } + } Modified: trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java =================================================================== --- trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java 2025-06-15 21:36:15 UTC (rev 13856) +++ trunk/foray/foray-font-tf/src/main/java/org/foray/font/fixture/MockFontUse.java 2025-06-16 01:57:50 UTC (rev 13857) @@ -104,18 +104,6 @@ } @Override - public FontUse nextBolderFont() { - // TODO Auto-generated method stub - return null; - } - - @Override - public FontUse nextLighterFont() { - // TODO Auto-generated method stub - return null; - } - - @Override public BigDecimal simulateSmallCaps() { return null; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-15 21:36:17
|
Revision: 13856 http://sourceforge.net/p/foray/code/13856 Author: victormote Date: 2025-06-15 21:36:15 +0000 (Sun, 15 Jun 2025) Log Message: ----------- Fix problem getting the Font and Ps Servers. Modified Paths: -------------- trunk/foray/foray-font/src/main/java/org/foray/font/config/RegisteredFont.java Modified: trunk/foray/foray-font/src/main/java/org/foray/font/config/RegisteredFont.java =================================================================== --- trunk/foray/foray-font/src/main/java/org/foray/font/config/RegisteredFont.java 2025-06-15 21:08:05 UTC (rev 13855) +++ trunk/foray/foray-font/src/main/java/org/foray/font/config/RegisteredFont.java 2025-06-15 21:36:15 UTC (rev 13856) @@ -157,9 +157,6 @@ /** Indicates whether the creation of the SystemFont has already been attempted. */ private boolean systemFontCreationCompleted = false; - /** The parent FontServer. */ - private FontServer4a fontServer = null; - /** The source of the font file, if any. */ private URL fontFileSource; @@ -573,7 +570,8 @@ public Type1MetricsParser createMetricsFileReader() throws FontException { if (this.metricsFileSource != null) { try { - return new Type1MetricsParser(this.fontServer, this.metricsFileSource.openStream()); + return new Type1MetricsParser(this.registeredFontFamily.getServer(), + this.metricsFileSource.openStream()); } catch (final IOException e) { throw new FontException(e); } @@ -583,7 +581,7 @@ try { final ByteArray byteArray = new ByteArray(this.metricsFileContents); final ByteSequenceParser bsp = new ByteSequenceParser(byteArray); - return new Type1MetricsParser(this.fontServer, bsp); + return new Type1MetricsParser(this.registeredFontFamily.getServer(), bsp); } catch (final IOException e) { throw new FontException(e); } @@ -669,7 +667,7 @@ * @return The parent font server. */ public FontServer4a getFontServer() { - return this.fontServer; + return this.registeredFontFamily.getServer(); } /** @@ -794,7 +792,7 @@ @Override public PsServer getPsServer() { - return this.fontServer.getPsServer(); + return this.registeredFontFamily.getServer().getPsServer(); } @Override This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-15 21:08:06
|
Revision: 13855 http://sourceforge.net/p/foray/code/13855 Author: victormote Date: 2025-06-15 21:08:05 +0000 (Sun, 15 Jun 2025) Log Message: ----------- Get the URL for the Base-14 serialized metrics to the right place. Modified Paths: -------------- trunk/foray/foray-font/src/main/java/org/foray/font/FontServer4a.java Modified: trunk/foray/foray-font/src/main/java/org/foray/font/FontServer4a.java =================================================================== --- trunk/foray/foray-font/src/main/java/org/foray/font/FontServer4a.java 2025-06-15 20:44:47 UTC (rev 13854) +++ trunk/foray/foray-font/src/main/java/org/foray/font/FontServer4a.java 2025-06-15 21:08:05 UTC (rev 13855) @@ -448,8 +448,9 @@ simulation.setSimulateSmallCaps(FontServer4a.DEFAULT_SMALL_CAPS_SIZE); final RegisteredFont registeredFont = new RegisteredFont(registeredFontFamily, encoding, style, weight, - FontVariant.NORMAL, FontStretch.NORMAL, simulation, fontName, null, metricURL, null, + FontVariant.NORMAL, FontStretch.NORMAL, simulation, fontName, null, null, null, org.axsl.font.Font.Embedding.NONE, null); + registeredFont.setSerializedMetricsFile(metricURL); registeredFontFamily.registerFont(registeredFont); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <vic...@us...> - 2025-06-15 20:44:49
|
Revision: 13854 http://sourceforge.net/p/foray/code/13854 Author: victormote Date: 2025-06-15 20:44:47 +0000 (Sun, 15 Jun 2025) Log Message: ----------- Upgrade JUnit to latest version. Fix missing JUnit dependency. Modified Paths: -------------- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle Modified: trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-15 03:15:09 UTC (rev 13853) +++ trunk/foray/buildSrc/src/main/groovy/foray.common-conventions.gradle 2025-06-15 20:44:47 UTC (rev 13854) @@ -2,6 +2,7 @@ plugins { id 'java' + id 'eclipse' id 'checkstyle' id 'maven-publish' id "org.checkerframework" @@ -59,7 +60,7 @@ icu4j: '72.1', // Latest is 72.1 as of 2022-11-26. checkerFramework: '3.49.2', // Latest is 3.49.2 as of 2025-04-20. - junit: '5.10.2', // Latest is 5.10.2 as of 2024-05-08. + junit: '5.13.1', // Latest is 5.13.1 as of 2025-06-15. mockito: '4.9.0', // Latest is 4.9.0 as of 2022-11-26. See Note 5. Modified: trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle =================================================================== --- trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle 2025-06-15 03:15:09 UTC (rev 13853) +++ trunk/foray/buildSrc/src/main/groovy/foray.test-conventions.gradle 2025-06-15 20:44:47 UTC (rev 13854) @@ -8,6 +8,7 @@ testImplementation (platform (group: 'org.junit', name: 'junit-bom', version: versions.junit)) testImplementation (group: 'org.junit.jupiter', name: 'junit-jupiter') + testRuntimeOnly (group: 'org.junit.platform', name: 'junit-platform-launcher') testImplementation (group: 'org.mockito', name: 'mockito-core', version: versions.mockito) } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |