diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c5f0e168b..0a531ffe9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,8 @@ updates: directory: / schedule: interval: daily + + - package-ecosystem: maven + directory: /tck-dist/src/main/ + schedule: + interval: daily diff --git a/tck-dist/pom.xml b/tck-dist/pom.xml index e1911b8fb..89693ced8 100644 --- a/tck-dist/pom.xml +++ b/tck-dist/pom.xml @@ -1,6 +1,6 @@ org.apache.maven.plugins maven-dependency-plugin 3.6.1 + initialize properties + + + get-dependency-sources + package + + copy-dependencies + + + jakarta.data-tck + sources + true + ${project.build.directory}/copied-sources/ + + @@ -119,7 +133,7 @@ ee.jakarta.tck.data.metadata.CollectMetaData - true + false ${jakarta.data:jakarta.data-tck:jar} ${project.basedir}/src/main/asciidoc/sections/generated diff --git a/tck-dist/src/main/artifacts/artifact-install.sh b/tck-dist/src/main/artifacts/artifact-install.sh old mode 100644 new mode 100755 index dce8dc59b..2b0220fe4 --- a/tck-dist/src/main/artifacts/artifact-install.sh +++ b/tck-dist/src/main/artifacts/artifact-install.sh @@ -2,21 +2,21 @@ ## A sample script to install the artifact directory contents into a local maven repository -if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then - VERSION="$1" -else - echo "A valid version is required to execute this script" - exit 1 -fi +POM=$(ls *.pom) +TCK=$(ls *.jar | grep -v sources) -# Parent pom +NO_EXT=${POM%.*} # jakarta.data-parent-1.0.0-SNAPSHOT.pom > jakarta.data-parent-1.0.0-SNAPSHOT +NO_REPO=${NO_EXT#*-} # jakarta.data-parent-1.0.0-SNAPSHOT > parent-1.0.0-SNAPSHOT +VERSION=${NO_REPO#*-} # parent-1.0.0-SNAPSHOT > 1.0.0-SNAPSHOT + +echo "Installing $POM with version $VERSION" mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file \ --Dfile=jakarta.data-parent-"$VERSION".pom \ +-Dfile=$POM \ -DgroupId=jakarta.data \ -DartifactId=jakarta.data-parent \ -Dversion="$VERSION" \ -Dpackaging=pom -# Jakarta Data TCK Installed Library +echo "Installing $TCK" mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file \ --Dfile=jakarta.data-tck-"$VERSION".jar +-Dfile=$TCK diff --git a/tck-dist/src/main/asciidoc/sections/05inventory.adoc b/tck-dist/src/main/asciidoc/sections/05inventory.adoc index 159ad74ce..a3a592dfa 100644 --- a/tck-dist/src/main/asciidoc/sections/05inventory.adoc +++ b/tck-dist/src/main/asciidoc/sections/05inventory.adoc @@ -16,7 +16,7 @@ Once the TCK is extracted, you'll see the following structure: ---- data-tck--dist/ artifacts/ - doc/ + docs/ starter/ LICENSE README.md @@ -29,7 +29,7 @@ In more detail: ** The {TCKTestPlatform} configuration file ** A copy of the SignatureTest file for reference ** A script to copy the TCK into local maven repository. -* `doc` contains the documentation for the TCK (i.e. this reference guide) +* `docs` contains the documentation for the TCK (i.e. this reference guide) * `starter` a very basic starter maven project to get you started. === A Quick Tour of the TCK Artifacts @@ -67,6 +67,7 @@ Here is an essential checklist of what you will need per mode, and links to the SE Mode: - The {APIShortName} API, JUnit5, and Signature Test Plugin libraries available at runtime | <> +- A dependency injection framework supported by your implementation | <> - A logging configuration for TCK logging available at runtime | <> EE Mode: diff --git a/tck-dist/src/main/asciidoc/sections/08example-runner.adoc b/tck-dist/src/main/asciidoc/sections/08example-runner.adoc index 8ee49c690..ba0812a2d 100644 --- a/tck-dist/src/main/asciidoc/sections/08example-runner.adoc +++ b/tck-dist/src/main/asciidoc/sections/08example-runner.adoc @@ -7,8 +7,14 @@ Below are links to projects where the {APILongName} TCK is being used and run su |=== |Project |Link |Profile(s) +|Hibernate +|https://github.com/jakartaredhat/hibernate-data-tck/tree/3e5fd4ddc68b60cc026987021d8d3e80ebed6809[hibernate-data-tck] +|standalone + |Open Liberty -|https://github.com/OpenLiberty/open-liberty/tree/integration/dev/io.openliberty.jakarta.data.1.0_fat_tck -|standalone, core, and web +|https://github.com/OpenLiberty/open-liberty/tree/549a6b89005de62289df7b550aedd229dd407722/dev/io.openliberty.jakarta.data.1.0_fat_tck[open-liberty/io.openliberty.jakarta.data.1.0_fat_tck] +|core, web, full |=== + +// TODO add JNoSQL once implemented \ No newline at end of file diff --git a/tck-dist/src/main/asciidoc/sections/10signature.adoc b/tck-dist/src/main/asciidoc/sections/10signature.adoc index f5fe8feca..2661cf487 100644 --- a/tck-dist/src/main/asciidoc/sections/10signature.adoc +++ b/tck-dist/src/main/asciidoc/sections/10signature.adoc @@ -18,7 +18,7 @@ The {APILongName} TCK will run signature tests within a standalone or deployed a and not as part of a separate plugin / execution. This means that the signature tests will run during the maven `test` phase. -You need to configure your test client with the system property `jimage.dir=`. +Your test client is configured with the property `jimage.dir=${project.build.directory}/jimage/`. This is because, when running the signature tests on JDK 9+ we need to convert the JDK modules back into class files for signature testing. diff --git a/tck-dist/src/main/assembly/assembly.xml b/tck-dist/src/main/assembly/assembly.xml index 88a65ca47..ca4d5d444 100644 --- a/tck-dist/src/main/assembly/assembly.xml +++ b/tck-dist/src/main/assembly/assembly.xml @@ -1,6 +1,6 @@ + + target/copied-sources/ + artifacts/ + target/generated-docs @@ -81,7 +86,6 @@ jakarta.data:jakarta.data-tck - jakarta.data:jakarta.data-tck:jar:sources true artifacts diff --git a/tck-dist/src/main/pom.xml b/tck-dist/src/main/pom.xml new file mode 100644 index 000000000..68bee5fa2 --- /dev/null +++ b/tck-dist/src/main/pom.xml @@ -0,0 +1,37 @@ + + + + + 4.0.0 + + + + jakarta.data + data-tck-aggregator + 1.0-SNAPSHOT + + + starter/ee-pom.xml + starter/se-pom.xml + + + \ No newline at end of file diff --git a/tck-dist/src/main/starter/ee-pom.xml b/tck-dist/src/main/starter/ee-pom.xml index 3432fa228..b6ce98f68 100644 --- a/tck-dist/src/main/starter/ee-pom.xml +++ b/tck-dist/src/main/starter/ee-pom.xml @@ -20,7 +20,7 @@ 4.0.0 - [YOUR_GROUP_ID] + jakarta.data data-tck-runner 1.0-SNAPSHOT Jakarta Data TCK Runner for [YOUR_IMPL] @@ -33,17 +33,17 @@ 17 - - - 1.0.0-SNAPSHOT + 1.0.0 + 6.1.0 + 4.1.0 - 1.7.0.Alpha13 - 5.9.0 + 1.8.0.Final + 5.10.2 2.3 3.3.0 - 3.10.1 - 2.22.2 + 3.13.0 + 3.2.5 [path/to/appserver/lib] @@ -52,8 +52,11 @@ configuration --> ${project.basedir}/logging.properties - - ${project.basedir}/target + + ${project.build.directory}/jimage/ + + + core @@ -118,12 +121,12 @@ jakarta.servlet jakarta.servlet-api - 6.0.0 + ${jakarta.servlet.version} jakarta.enterprise jakarta.enterprise.cdi-api - 4.0.1 + ${jakarta.enterprise.cdi.version} @@ -164,11 +167,11 @@ [TODO] - [path-to-extract-jvm-classes] - [path-to]/jakarta.data-api.jar:[path-to-jimage]/java.base:[path-to-jimage]/java.rmi:[path-to-jimage]/java.sql:[path-to-jimage]/java.naming + ${jimage.dir} + [path-to]/jakarta.data-api.jar:${jimage.dir}/java.base:${jimage.dir}/java.rmi:${jimage.dir}/java.sql:${jimage.dir}/java.naming - ${basedir}/../logging.properties + ${logging.config} @@ -180,10 +183,7 @@ Profiles:[core|web|full] Entities:[nosql|persistence] Other: [signature] --> - [TODO] - - [OPTIONAL] + ${includedTests} ${basedir}/src/main/java/ diff --git a/tck-dist/src/main/starter/se-pom.xml b/tck-dist/src/main/starter/se-pom.xml index 6b213cefa..aa45bc8f7 100644 --- a/tck-dist/src/main/starter/se-pom.xml +++ b/tck-dist/src/main/starter/se-pom.xml @@ -20,7 +20,7 @@ 4.0.0 - [YOUR_GROUP_ID] + jakarta.data data-tck-runner 1.0-SNAPSHOT Jakarta Data TCK Runner for [YOUR_IMPL] @@ -28,29 +28,32 @@ UTF-8 - 17 17 - - - 1.0.0-SNAPSHOT + 1.0.0 + 6.1.0 + 4.1.0 - 1.7.0.Alpha13 - 5.9.0 + 1.8.0.Final + 5.10.2 + 1.2.6 2.3 - + 3.3.0 - 3.10.1 - 2.22.2 + 3.13.0 + 3.2.5 ${project.basedir}/logging.properties - - ${project.basedir}/target + + ${project.build.directory}/jimage/ + + + standalone @@ -99,28 +102,29 @@ sigtest-maven-plugin ${sigtest.version} - + org.jboss.shrinkwrap shrinkwrap-api - 1.2.6 + ${shrinkwrap.version} org.jboss.arquillian.junit5 arquillian-junit5-core - 1.7.0.Alpha13 + ${arquillian.version} jakarta.servlet jakarta.servlet-api - 6.0.0 + ${jakarta.servlet.version} + jakarta.enterprise jakarta.enterprise.cdi-api - 4.0.1 + ${jakarta.enterprise.cdi.version} + @@ -151,8 +155,8 @@ - [path-to-extract-jvm-classes] - [path-to]/jakarta.data-api.jar:[path-to-jimage]/java.base:[path-to-jimage]/java.rmi:[path-to-jimage]/java.sql:[path-to-jimage]/java.naming + ${jimage.dir} + [path-to]/jakarta.data-api.jar:${jimage.dir}/java.base:${jimage.dir}/java.rmi:${jimage.dir}/java.sql:${jimage.dir}/java.naming ${logging.config} @@ -164,12 +168,10 @@ - standalone - - [OPTIONAL] + ${includedTests} ${basedir}/src/main/java/