Skip to content

Commit 2c42661

Browse files
Merge pull request #126 from OP-TED/release/2.0.0-alpha.5
Prepare release 2.0.0-alpha.5
2 parents 96ddd42 + 6679124 commit 2c42661

File tree

13 files changed

+298
-263
lines changed

13 files changed

+298
-263
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
java-version: '11'
1919
distribution: 'adopt'
2020
- name: Build package
21-
run: mvn --batch-mode clean install -s .github/workflows/settings.xml
21+
run: mvn --batch-mode clean install

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ jobs:
3030
with:
3131
java-version: '11'
3232
distribution: 'adopt'
33+
server-id: central
34+
server-username: MAVEN_USERNAME
35+
server-password: MAVEN_PASSWORD
3336
- name: Publish to the Maven Central Repository
34-
run: mvn --batch-mode deploy -Dgpg.passphrase='${{ secrets.GPG_PASSPHRASE }}' -Prelease -s .github/workflows/settings.xml
37+
run: mvn --batch-mode deploy -Dgpg.passphrase='${{ secrets.GPG_PASSPHRASE }}' -Prelease
3538
env:
3639
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3740
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.github/workflows/settings.xml

Lines changed: 0 additions & 34 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
# EFX Toolkit 2.0.0-alpha.4 Release Notes
1+
# EFX Toolkit 2.0.0-alpha.5 Release Notes
22

33
_The EFX Toolkit for Java developers is a library that enables the transpilation of [EFX](https://docs.ted.europa.eu/eforms/latest/efx) expressions and templates to different target languages. It also includes an implementation of an EFX-to-XPath transpiler._
44

55
---
66

77
## In this release
88

9-
This release fixes an a bug that caused variables and parameters to be in the wrong order in the generated XSL.
10-
11-
A "qualifier" parameter was added in various methods, to allow the use of the corresponding new feature in the eForms Core Library 1.4.0.
12-
13-
The dependency on ANTLR was updated to version 4.13.1.
9+
This release fixes an a bug that could result in incorrect context computation for EFX template lines when the same field or node was used as both the parent and child line's context using different predicates. The EFX template translator now correctly calculates the child context, ignoring the predicate of the parent context.
1410

1511

1612
## EFX-1 Support

README.md

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
**[:memo: Latest Release Notes](CHANGELOG.md)** | **[:package: Latest Release Artifacts](https://central.sonatype.com/artifact/eu.europa.ted.eforms/efx-toolkit-java)**
22

33
---
4+
45
# Java toolkit for the eForms Expression Language (EFX)
56

67
The **EFX Toolkit[^1] for Java developers** is a library that enables the transpilation of [EFX](https://docs.ted.europa.eu/eforms/latest/efx) expressions and templates to different target languages. It also provides an implementation for translating EFX expressions to XPath.
78

89
The documentation is available at: https://docs.ted.europa.eu/eforms/latest/efx-toolkit
910

10-
1111
## Using the EFX toolkit[^1]
1212

1313
The EFX toolkit 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>
@@ -36,40 +36,6 @@ You can build this project as usual using Maven.
3636

3737
The build process uses the grammar files provided in the [eForms SDK](https://github.com/OP-TED/eForms-SDK/tree/develop/efx-grammar) to generate a parser, using [ANTLR4](https://www.antlr.org).
3838

39-
In order to be able to use snapshot versions of dependencies, the following should be added to the "profiles" section of the Maven configuration file "settings.xml" (normally under ${HOME}/.m2):
40-
41-
```
42-
<servers>
43-
<server>
44-
<id>ossrh</id>
45-
<username>${env.MAVEN_USERNAME}</username>
46-
<password>${env.MAVEN_PASSWORD}</password>
47-
</server>
48-
</servers>
49-
50-
<profile>
51-
<id>repositories</id>
52-
<activation>
53-
<activeByDefault>true</activeByDefault>
54-
</activation>
55-
<repositories>
56-
<repository>
57-
<id>ossrh</id>
58-
<name>OSSRH Snapshots</name>
59-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
60-
<releases>
61-
<enabled>false</enabled>
62-
</releases>
63-
<snapshots>
64-
<enabled>true</enabled>
65-
</snapshots>
66-
</repository>
67-
</repositories>
68-
</profile>
69-
```
70-
71-
See ".github/workflows/settings.xml".
72-
7339
## Testing
7440

7541
Unit tests are available under `src/test/java/`. They show in particular a variety of EFX expressions and the corresponding XPath expression.

pom.xml

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

44
<groupId>eu.europa.ted.eforms</groupId>
55
<artifactId>efx-toolkit-java</artifactId>
6-
<version>2.0.0-alpha.4</version>
6+
<version>2.0.0-alpha.5</version>
77
<packaging>jar</packaging>
88

99
<name>EFX Toolkit for Java</name>
@@ -36,30 +36,17 @@
3636
<url>https://github.com/OP-TED/efx-toolkit-java.git</url>
3737
</scm>
3838

39-
<distributionManagement>
40-
<snapshotRepository>
41-
<id>ossrh</id>
42-
<url>https://${sonatype.server.url}/content/repositories/snapshots</url>
43-
</snapshotRepository>
44-
<repository>
45-
<id>ossrh</id>
46-
<url>https://${sonatype.server.url}/service/local/staging/deploy/maven2/</url>
47-
</repository>
48-
</distributionManagement>
49-
5039
<properties>
5140
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5241
<project.build.outputTimestamp>2024-08-02T09:53:37Z</project.build.outputTimestamp>
5342

54-
<sonatype.server.url>s01.oss.sonatype.org</sonatype.server.url>
55-
5643
<maven.compiler.source>11</maven.compiler.source>
5744
<maven.compiler.target>11</maven.compiler.target>
5845

5946
<sdk.antlr4.dir>${project.build.directory}/eforms-sdk/antlr4</sdk.antlr4.dir>
6047

6148
<!-- Versions - eForms -->
62-
<version.eforms-core>1.4.0</version.eforms-core>
49+
<version.eforms-core>1.5.0</version.eforms-core>
6350

6451
<!-- Versions - Third-party libraries -->
6552
<version.antlr4>4.13.1</version.antlr4>
@@ -78,7 +65,7 @@
7865
<version.jar.plugin>3.2.0</version.jar.plugin>
7966
<version.javadoc.plugin>3.4.0</version.javadoc.plugin>
8067
<version.pgp.plugin>1.5</version.pgp.plugin>
81-
<version.nexus-staging.plugin>1.6.7</version.nexus-staging.plugin>
68+
<version.central-publishing.plugin>0.8.0</version.central-publishing.plugin>
8269
<version.source.plugin>3.2.1</version.source.plugin>
8370
<version.surefire.plugin>3.2.5</version.surefire.plugin>
8471
</properties>
@@ -180,6 +167,20 @@
180167
</dependency>
181168
</dependencies>
182169

170+
<repositories>
171+
<repository>
172+
<id>central-snapshots</id>
173+
<name>OSS Snapshots repository</name>
174+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
175+
<releases>
176+
<enabled>false</enabled>
177+
</releases>
178+
<snapshots>
179+
<enabled>true</enabled>
180+
</snapshots>
181+
</repository>
182+
</repositories>
183+
183184
<build>
184185
<pluginManagement>
185186
<plugins>
@@ -230,9 +231,9 @@
230231
<version>${version.source.plugin}</version>
231232
</plugin>
232233
<plugin>
233-
<groupId>org.sonatype.plugins</groupId>
234-
<artifactId>nexus-staging-maven-plugin</artifactId>
235-
<version>${version.nexus-staging.plugin}</version>
234+
<groupId>org.sonatype.central</groupId>
235+
<artifactId>central-publishing-maven-plugin</artifactId>
236+
<version>${version.central-publishing.plugin}</version>
236237
</plugin>
237238
</plugins>
238239
</pluginManagement>
@@ -404,13 +405,14 @@
404405
</configuration>
405406
</plugin>
406407
<plugin>
407-
<groupId>org.sonatype.plugins</groupId>
408-
<artifactId>nexus-staging-maven-plugin</artifactId>
408+
<groupId>org.sonatype.central</groupId>
409+
<artifactId>central-publishing-maven-plugin</artifactId>
409410
<extensions>true</extensions>
410411
<configuration>
411-
<serverId>ossrh</serverId>
412-
<nexusUrl>https://${sonatype.server.url}/</nexusUrl>
413-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
412+
<publishingServerId>central</publishingServerId>
413+
<autoPublish>true</autoPublish>
414+
<!-- Name displayed on the Central Portal "Deployments" page -->
415+
<deploymentName>${project.artifactId} ${project.version}</deploymentName>
414416
</configuration>
415417
</plugin>
416418
</plugins>

0 commit comments

Comments
 (0)