-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #4593 - Add JSON Binding TCK certification for Piranha Core Pro…
…file (#4594)
- Loading branch information
Showing
6 changed files
with
207 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<project | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>cloud.piranha.test.tck.coreprofile.jsonb</groupId> | ||
<artifactId>project</artifactId> | ||
<version>25.3.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>installer</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Piranha - Test - TCK - Core Profile - JSON Binding TCK - Installer</name> | ||
<properties> | ||
<tck.home>${project.build.directory}/tck</tck.home> | ||
</properties> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>pre-integration-test</id> | ||
<phase>pre-integration-test</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<target> | ||
<!-- Download, unzip and rename TCK --> | ||
<get src="https://download.eclipse.org/jakartaee/jsonb/3.0/jakarta-jsonb-tck-${jsonb.tck.version}.zip" | ||
dest="${project.build.directory}/tck.zip" | ||
skipexisting="true"/> | ||
<unzip src="${project.build.directory}/tck.zip" | ||
dest="${project.build.directory}"/> | ||
<move file="${project.build.directory}/jsonb-tck" | ||
tofile="${project.build.directory}/tck"/> | ||
|
||
<!-- Install the TCK JAR into local Maven repository --> | ||
<chmod dir="${project.build.directory}/tck/artifacts" | ||
perm="ugo+rx" | ||
includes="*"/> | ||
<exec dir="${project.build.directory}/tck/artifacts" | ||
executable="./artifact-install.sh"/> | ||
|
||
<!-- Setup bin/pom.xml for correct Yasson version --> | ||
<replaceregexp file="${tck.home}/bin/pom.xml" | ||
match="<jsonb-impl.version>(.*)</jsonb-impl.version>" | ||
replace="<jsonb-impl.version>${yasson.version}</jsonb-impl.version>" | ||
byline="true"/> | ||
</target> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<project | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>cloud.piranha.test.tck.coreprofile</groupId> | ||
<artifactId>project</artifactId> | ||
<version>25.3.0-SNAPSHOT</version> | ||
</parent> | ||
<groupId>cloud.piranha.test.tck.coreprofile.jsonb</groupId> | ||
<artifactId>project</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Piranha - Test - TCK - Core Profile - JSON Binding TCK - Project</name> | ||
<modules> | ||
<module>installer</module> | ||
<module>runner</module> | ||
</modules> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<project | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>cloud.piranha.test.tck.coreprofile.jsonb</groupId> | ||
<artifactId>project</artifactId> | ||
<version>25.3.0-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>runner</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Piranha - Test - TCK - Core Profile - JSON Binding TCK - Runner</name> | ||
<properties> | ||
<tck.home>${project.build.directory}/../../installer/target/tck</tck.home> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>cloud.piranha.test.tck.coreprofile.jsonb</groupId> | ||
<artifactId>installer</artifactId> | ||
<version>${project.version}</version> | ||
<type>pom</type> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>integration-test</id> | ||
<phase>integration-test</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<target> | ||
<!-- Run the tests --> | ||
<echo>----------------------------------------------------------</echo> | ||
<echo>Running JSON Binding TCK ${jsonb.tck.version} against Yasson ${yasson.version}</echo> | ||
<echo>----------------------------------------------------------</echo> | ||
<exec dir="${tck.home}/bin" | ||
executable="mvn"> | ||
<arg value="-Djava.locale.providers=COMPAT"/> | ||
<arg value="verify"/> | ||
</exec> | ||
<echo>----------------------------------------------------------</echo> | ||
<echo>Ran JSON Binding TCK ${jsonb.tck.version} against Yasson ${yasson.version}</echo> | ||
<echo>----------------------------------------------------------</echo> | ||
</target> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters