Skip to content

Commit a1107b7

Browse files
Merge pull request #25 from OP-TED/release/1.2.0
Release version 1.2.0
2 parents 1536526 + 70fe856 commit a1107b7

File tree

12 files changed

+1262
-10
lines changed

12 files changed

+1262
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/target/
2+
.antlr
23
.settings
34
.project
45
.classpath

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
# eForms Core Library 1.1.0 Release Notes
1+
# eForms Core Library 1.2.0 Release Notes
22

3-
_The library is a collection of utilities that are used by our sample applications as well as the EFX Toolkit for Java Developers._
3+
The eForms Core Library is a collection of utilities that are used by our sample applications as well as the EFX Toolkit for Java Developers.
44

55
## In this release
6-
This release updates the SdkDownloader to simplify its logic and make sure it resolves pre-release versions of the SDK correctly.
6+
7+
This release adds some XPath processing capabilities, via the new XPathProcessor class. Those capabilities are available in the EFX Toolkit version 1.x, but as they are also useful if you are not using EFX, we are moving them to the eForms Core Library. The corresponding API will be removed from the EFX Toolkit in its next major version (2.0.0).
8+
9+
The SdkResource enum now has a value corresponding to the index file in the `translations` folder, named `translations.json`. This file is added in SDK 1.10.0.
710

811
## Download
912

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
This library provides a set of classes that can be used to solve some common "problems" in eForms Applications:
66

7-
* Automatically discovering and downloading new versions of the eForms SDK.
8-
* Maintaining and instantiating at runtime the correct application component versions for different major versions of the SDK.
9-
7+
* Automatically discovering and downloading new versions of the eForms SDK.
8+
* Maintaining and instantiating at runtime the correct application component versions for different major versions of the SDK.
9+
* Basic parsing and processing of XPath expressions.
1010

1111
## Using the eForms Core Library
1212

1313
The eForms Core library requires Java 11 or later.
1414

1515
It is available as a Maven package on Maven Central and can be used by adding the following to the project's `pom.xml`.
1616

17-
```
17+
```xml
1818
<dependencies>
1919
...
2020
<dependency>
@@ -37,11 +37,19 @@ Requirements:
3737

3838
Execute the following on the root folder of this project:
3939

40+
```text
4041
mvn clean install
42+
```
43+
44+
## Testing
45+
46+
Unit tests are available under `src/test/java/`.
4147

48+
After running the unit tests with `mvn test`, you can generate a coverage report with `mvn jacoco:report`.
49+
The report is available under `target/site/jacoco/`, in HTML, CSV, and XML format.
4250

4351
[^1]: _Copyright 2022 European Union_
4452
_Licensed under the EUPL, Version 1.2 or – as soon they will be approved by the European Commission –
4553
subsequent versions of the EUPL (the "Licence");_
4654
_You may not use this work except in compliance with the Licence. You may obtain [a copy of the Licence here](LICENSE)._
47-
_Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licence for the specific language governing permissions and limitations under the Licence._
55+
_Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licence for the specific language governing permissions and limitations under the Licence._

pom.xml

Lines changed: 87 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>eu.europa.ted.eforms</groupId>
55
<artifactId>eforms-core-java</artifactId>
6-
<version>1.1.0</version>
6+
<version>1.2.0</version>
77

88
<name>eForms Core Library</name>
99
<description>API and tools for eForms applications.</description>
@@ -44,7 +44,7 @@
4444
</distributionManagement>
4545

4646
<properties>
47-
<project.build.outputTimestamp>2023-05-10T15:47:46Z</project.build.outputTimestamp>
47+
<project.build.outputTimestamp>2023-11-17T14:42:39Z</project.build.outputTimestamp>
4848
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4949

5050
<sonatype.server.url>s01.oss.sonatype.org</sonatype.server.url>
@@ -55,6 +55,7 @@
5555
<maven.compiler.target>${java.version}</maven.compiler.target>
5656

5757
<!-- Versions - Third-party libraries -->
58+
<version.antlr4>4.9.3</version.antlr4>
5859
<version.commons-collections>3.2.2</version.commons-collections>
5960
<version.commons-io>2.11.0</version.commons-io>
6061
<version.commons-lang3>3.12.0</version.commons-lang3>
@@ -72,9 +73,11 @@
7273
<version.slf4j>2.0.3</version.slf4j>
7374

7475
<!-- Versions - Plugins -->
76+
<version.build-helper.plugin>3.3.0</version.build-helper.plugin>
7577
<version.compiler.plugin>3.10.1</version.compiler.plugin>
7678
<version.gpg.plugin>1.5</version.gpg.plugin>
7779
<version.install.plugin>2.5.2</version.install.plugin>
80+
<version.jacoco.plugin>0.8.10</version.jacoco.plugin>
7881
<version.javadoc.plugin>3.4.0</version.javadoc.plugin>
7982
<version.source.plugin>3.2.1</version.source.plugin>
8083
<version.jar.plugin>3.3.0</version.jar.plugin>
@@ -211,6 +214,11 @@
211214
<artifactId>jsr305</artifactId>
212215
<version>${version.jsr305}</version>
213216
</dependency>
217+
<dependency>
218+
<groupId>org.antlr</groupId>
219+
<artifactId>antlr4-runtime</artifactId>
220+
<version>${version.antlr4}</version>
221+
</dependency>
214222
<dependency>
215223
<groupId>org.jooq</groupId>
216224
<artifactId>jool</artifactId>
@@ -338,6 +346,10 @@
338346
<artifactId>jsr305</artifactId>
339347
<scope>provided</scope>
340348
</dependency>
349+
<dependency>
350+
<groupId>org.antlr</groupId>
351+
<artifactId>antlr4-runtime</artifactId>
352+
</dependency>
341353
<dependency>
342354
<groupId>org.jooq</groupId>
343355
<artifactId>jool</artifactId>
@@ -367,6 +379,16 @@
367379
<createChecksum>true</createChecksum>
368380
</configuration>
369381
</plugin>
382+
<plugin>
383+
<groupId>org.antlr</groupId>
384+
<artifactId>antlr4-maven-plugin</artifactId>
385+
<version>${version.antlr4}</version>
386+
</plugin>
387+
<plugin>
388+
<groupId>org.codehaus.mojo</groupId>
389+
<artifactId>build-helper-maven-plugin</artifactId>
390+
<version>${version.build-helper.plugin}</version>
391+
</plugin>
370392
<plugin>
371393
<groupId>org.apache.maven.plugins</groupId>
372394
<artifactId>maven-jar-plugin</artifactId>
@@ -387,13 +409,76 @@
387409
<artifactId>maven-gpg-plugin</artifactId>
388410
<version>${version.gpg.plugin}</version>
389411
</plugin>
412+
<plugin>
413+
<groupId>org.jacoco</groupId>
414+
<artifactId>jacoco-maven-plugin</artifactId>
415+
<version>${version.jacoco.plugin}</version>
416+
</plugin>
390417
<plugin>
391418
<groupId>org.sonatype.plugins</groupId>
392419
<artifactId>nexus-staging-maven-plugin</artifactId>
393420
<version>${version.nexus-staging.plugin}</version>
394421
</plugin>
395422
</plugins>
396423
</pluginManagement>
424+
425+
<plugins>
426+
<plugin>
427+
<groupId>org.antlr</groupId>
428+
<artifactId>antlr4-maven-plugin</artifactId>
429+
<executions>
430+
<execution>
431+
<id>antlr</id>
432+
<goals>
433+
<goal>antlr4</goal>
434+
</goals>
435+
</execution>
436+
</executions>
437+
</plugin>
438+
439+
<plugin>
440+
<groupId>org.codehaus.mojo</groupId>
441+
<artifactId>build-helper-maven-plugin</artifactId>
442+
<executions>
443+
<execution>
444+
<id>add-source</id>
445+
<phase>generate-sources</phase>
446+
<goals>
447+
<goal>add-source</goal>
448+
</goals>
449+
<configuration>
450+
<sources>
451+
<source>${project.build.directory}/generated-sources/antlr4/</source>
452+
</sources>
453+
</configuration>
454+
</execution>
455+
</executions>
456+
</plugin>
457+
458+
<plugin>
459+
<groupId>org.jacoco</groupId>
460+
<artifactId>jacoco-maven-plugin</artifactId>
461+
<configuration>
462+
<excludes>
463+
<exclude>**/XPath20*.class</exclude>
464+
</excludes>
465+
</configuration>
466+
<executions>
467+
<execution>
468+
<goals>
469+
<goal>prepare-agent</goal>
470+
</goals>
471+
</execution>
472+
<execution>
473+
<id>report</id>
474+
<phase>prepare-package</phase>
475+
<goals>
476+
<goal>report</goal>
477+
</goals>
478+
</execution>
479+
</executions>
480+
</plugin>
481+
</plugins>
397482
</build>
398483

399484
<profiles>

0 commit comments

Comments
 (0)