Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,59 @@ See the bottom of this file for a list of things still to do.
The work for releases 1.0, 1.2 and 1.2.1 was sponsored by the National
Library of Australia, whose help we gratefully acknowledge.

1.14.0 Mon 23 Nov 2026 14:08:10 CET
- Add getStart() and getEnd() to CQLNode, Modifier, ModifierSet and
CQLLexer, exposing source ranges for parsed nodes, modifiers, sort
keys and tokens. Ranges preserve quotes, escapes, internal whitespace,
subtrees and enclosing parentheses, using zero-based UTF-16 offsets
with an inclusive start and exclusive end. Objects without a source
location return -1; ranges are not updated after tree modifications.
Existing public signatures and CQLTokenizer remain unchanged.
Based on the proposal in PR #19.

- Fix case-sensitive relation checks in the parser. Built-in relations
and registered custom relations are now recognized regardless of
letter case. Fixes #17.

- Preserve backslash escape sequences in the lexer instead of removing
them prematurely. Later translation stages can now distinguish
escaped characters and apply the appropriate masking rules. Fixes #5.

- Fix quoting when generating CQL, including double quotes following
escaped backslashes and terms ending in an unmatched backslash.
Handle whitespace and operator characters consistently when deciding
whether an index or term needs quoting, with regression tests for
these cases.

- Target Java 8 and enforce Java 8 API compatibility when compiling
with newer JDKs by using the compiler's release option. Retain source
and target settings for builds running on JDK 8. Fixes #20.

- Upgrade and pin Maven lifecycle, compiler, release, Javadoc and site
plugins, and update the SSH Wagon extensions. Replace obsolete
Javadoc options and move report configuration into the reporting
section to avoid Maven configuration warnings.

- Modernize API documentation generation and site navigation. Pin the
project-info reports plugin, use the Fluido skin, and add a direct
Java API link. Update Javadoc markup for HTML 5 and refresh project,
repository and issue-tracker links.

- Update publishing to use external SSH for Maven artifacts and the
idsoft account on software.indexdata.com for documentation. Preserve
the existing cql-java documentation and apidocs paths, disable chmod
on the root-owned site directory, and document publishing in the POM.

- Add GitHub Actions verification and run the build on Java 11 and 21.
Upgrade JUnit to 4.13.1, add source-position and escaping regression
tests, and replace noisy test output with contextual failure messages.
Standardize Java source indentation with EditorConfig.

- Correct the Maven license metadata to LGPL-2.1-only and link to the
corresponding license text. This aligns the machine-readable metadata
with the existing license stated in the README; it is not a license
change.

1.13 Wed 10 May 2017 14:44:44 CET
- add classes for visitor traversal
- truncation attribute right/left/both/none (thanks to Rustam Usmanov)
Expand Down
31 changes: 28 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>org.z3950.zing</groupId>
<artifactId>cql-java</artifactId>
<packaging>jar</packaging>
<version>1.14-SNAPSHOT</version>
<version>1.15.0-SNAPSHOT</version>
<name>cql-java</name>
<url>https://www.indexdata.com/cql-java</url>
<licenses>
Expand Down Expand Up @@ -49,6 +49,11 @@
</issueManagement>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.9.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand All @@ -57,6 +62,13 @@
<charset>UTF-8</charset>
<doclint>none</doclint>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
Expand Down Expand Up @@ -153,16 +165,27 @@
<scope>test</scope>
</dependency>
</dependencies>
<!--
Publishing requires SSH access to the destinations below.
Prepare a release with mvn release:clean release:prepare, then publish with
mvn release:perform. Keep release.properties until publishing is complete.
Unlike yaz4j, cql-java is pure Java and needs no native-library bundle profile.

To publish documentation only, run mvn site site:deploy. The site is labelled
with the current POM version; use release sources when publishing release docs.
To retry an existing site's upload, run mvn site:deploy from its build directory.
Deployment chmod is disabled below because the server directory is owned by root.
-->
<distributionManagement>
<repository>
<uniqueVersion>false</uniqueVersion>
<id>id-maven-repo</id>
<name>Index Data Maven Repository</name>
<url>scp://maven.indexdata.com/var/www/maven/repository</url>
<url>scpexe://maven.indexdata.com/var/www/maven/repository</url>
</repository>
<site>
<id>id-website</id>
<url>scpexe://www.indexdata.com/var/www/software/cql-java/</url>
<url>scpexe://idsoft@software.indexdata.com/home/indexdata/software-site/htdocs/cql-java/</url>
</site>
</distributionManagement>
<repositories>
Expand All @@ -173,6 +196,8 @@
</repositories>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- The deployment account can write to the site but does not own its directory. -->
<maven.site.chmod>false</maven.site.chmod>
<maven-javadoc-plugin.version>3.12.0</maven-javadoc-plugin.version>
</properties>
<profiles>
Expand Down
19 changes: 19 additions & 0 deletions src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<site xmlns="http://maven.apache.org/SITE/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd"
name="cql-java">
<bannerLeft name="cql-java" href="https://www.indexdata.com/cql-java"/>
<publishDate format="dd MMM yyyy"/>
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>2.0.1</version>
</skin>
<body>
<menu name="Documentation">
<item name="Java API" href="apidocs/index.html"/>
</menu>
<menu ref="reports"/>
</body>
</site>