Skip to content

Commit

Permalink
TECH-2011: add a jdk17 requirement for javascript-module-engine jahia…
Browse files Browse the repository at this point in the history
… module
  • Loading branch information
dgriffon committed Dec 17, 2024
1 parent 9c734a8 commit d66b0ef
Show file tree
Hide file tree
Showing 9 changed files with 107 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-code-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
env:
NEXUS_INTERNAL_URL: ${{ secrets.NEXUS_INTERNAL_URL }}
container:
image: jahia/cimg-mvn-cache:ga_cimg_openjdk_11.0.20-node
image: jahia/cimg-mvn-cache:ga_cimg_openjdk_17.0.9-node
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
env:
NEXUS_INTERNAL_URL: https://devtools.jahia.com/nexus/content/groups/internal/
container:
image: jahia/cimg-mvn-cache:ga_cimg_openjdk_11.0.20-node
image: jahia/cimg-mvn-cache:ga_cimg_openjdk_17.0.9-node
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
if: github.ref == 'refs/heads/main'
runs-on: self-hosted
container:
image: jahia/cimg-mvn-cache:ga_cimg_openjdk_11.0.20-node
image: jahia/cimg-mvn-cache:ga_cimg_openjdk_17.0.9-node
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# downloading the entire world when building.
# More on https://github.com/Jahia/cimg-mvn-cache
container:
image: jahia/cimg-mvn-cache:ga_cimg_openjdk_11.0.20-node
image: jahia/cimg-mvn-cache:ga_cimg_openjdk_17.0.9-node
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion javascript-modules-engine-java/.java-ts-bind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"tsbindOptions": {
"in": [
"src/main/java",
"target/java-ts-bind/sources/jdk11u-master/src/java.base/share/classes",
"target/java-ts-bind/sources/jdk17u-master/src/java.base/share/classes",
"target/java-ts-bind/sources/dependencies"
],
"symbols": [
Expand Down
53 changes: 5 additions & 48 deletions javascript-modules-engine-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,44 +28,6 @@
<description>This is the Java part of the Javascript modules engine.</description>

<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.annotation</artifactId>
<version>${osgi.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.ops4j.pax.swissbox</groupId>
<artifactId>pax-swissbox-bnd</artifactId>
<version>1.8.3</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.fileinstall</artifactId>
<version>${felix.fileinstall.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
<version>22.3.3</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.9.0</version>
</dependency>

<!-- tool used to generate *.d.ts files -->
<dependency>
Expand All @@ -82,12 +44,7 @@
<version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
Expand All @@ -111,7 +68,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<release>11</release>
<release>17</release>
</configuration>
</plugin>
<plugin>
Expand All @@ -127,10 +84,10 @@
<configuration>
<target>
<mkdir dir="${project.build.directory}/java-ts-bind/sources" />
<get src="https://codeload.github.com/openjdk/jdk11u/zip/refs/heads/master" dest="${project.build.directory}/java-ts-bind/sources/jdk11u-master.zip" />
<unzip src="${project.build.directory}/java-ts-bind/sources/jdk11u-master.zip" dest="${project.build.directory}/java-ts-bind/sources">
<get src="https://codeload.github.com/openjdk/jdk17u/zip/refs/heads/master" dest="${project.build.directory}/java-ts-bind/sources/jdk17u-master.zip" />
<unzip src="${project.build.directory}/java-ts-bind/sources/jdk17u-master.zip" dest="${project.build.directory}/java-ts-bind/sources">
<patternset>
<include name="jdk11u-master/src/java.base/share/classes/**" />
<include name="jdk17u-master/src/java.base/share/classes/**" />
</patternset>
</unzip>
<!-- generate the output folder for the *.d.ts files -->
Expand Down
85 changes: 2 additions & 83 deletions javascript-modules-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,91 +40,10 @@
</import-package>
<frontend-maven-plugin.nodeVersion>v18.12.0</frontend-maven-plugin.nodeVersion>
<frontend-maven-plugin.yarnVersion>v1.22.19</frontend-maven-plugin.yarnVersion>
<require-capability>osgi.ee;filter:="(&amp;(osgi.ee=JavaSE)(version>=17))"</require-capability>
</properties>

<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.annotation</artifactId>
<version>${osgi.version}</version>
<scope>provided</scope>
</dependency>

<!-- <dependency>-->
<!-- <groupId>org.osgi</groupId>-->
<!-- <artifactId>osgi.compendium</artifactId>-->
<!-- <version>${osgi.compendium.version}</version>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<!-- -->

<dependency>
<groupId>org.ops4j.pax.swissbox</groupId>
<artifactId>pax-swissbox-bnd</artifactId>
<version>1.8.3</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.fileinstall</artifactId>
<version>${felix.fileinstall.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.26</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
<version>22.3.3</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.9.0</version>
</dependency>

<dependency>
<groupId>org.jahia.modules</groupId>
<artifactId>graphql-dxm-provider</artifactId>
<version>2.7.0</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>io.github.graphql-java</groupId>
<artifactId>graphql-java-annotations</artifactId>
<version>${graphql-java-annotations.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>pl.touk</groupId>
<artifactId>throwing-function</artifactId>
<version>1.3</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>javascript-modules-library</artifactId>
Expand Down Expand Up @@ -268,7 +187,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<release>11</release>
<release>17</release>
</configuration>
</plugin>
</plugins>
Expand Down
8 changes: 4 additions & 4 deletions javascript-modules-engine/tests/jahia-module/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1703,15 +1703,15 @@ __metadata:

"@jahia/javascript-modules-library@file:../../../javascript-modules-library/dist::locator=%40jahia%2Fnpm-module-example%40workspace%3A.":
version: 0.3.0-SNAPSHOT
resolution: "@jahia/javascript-modules-library@file:../../../javascript-modules-library/dist#../../../javascript-modules-library/dist::hash=ea8139&locator=%40jahia%2Fnpm-module-example%40workspace%3A."
resolution: "@jahia/javascript-modules-library@file:../../../javascript-modules-library/dist#../../../javascript-modules-library/dist::hash=0531a1&locator=%40jahia%2Fnpm-module-example%40workspace%3A."
dependencies:
graphql: "npm:^16.0.1"
graphql-tag: "npm:^2.12.6"
i18next: "npm:^23.10.1"
prop-types: "npm:^15.8.1"
react: "npm:^18.2.0"
react-i18next: "npm:^14.1.0"
checksum: 10/578e5681989e76167eb37cb74f2efdc18cfc61f0971747f9eeca0cc94d8cc6032a829e7744e0e1697ed04ec160069fe2837907426a6d0b5cdddb3246d28d1994
checksum: 10/95cbb053f952ea849c2eb11491a09e1b9b593335c59e36072e5e66851f6e6f449a868309888ca2b60b719354c7dbff11004451b5188c8a0cef15691ccf48d4c5
languageName: node
linkType: hard

Expand Down Expand Up @@ -8056,11 +8056,11 @@ __metadata:

"typescript@patch:typescript@npm%3A^5.3.3#optional!builtin<compat/typescript>":
version: 5.6.3
resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=379a07"
resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/dc4bec403cd33a204b655b1152a096a08e7bad2c931cb59ef8ff26b6f2aa541bf98f09fc157958a60c921b1983a8dde9a85b692f9de60fa8f574fd131e3ae4dd
checksum: 10/00504c01ee42d470c23495426af07512e25e6546bce7e24572e72a9ca2e6b2e9bea63de4286c3cfea644874da1467dcfca23f4f98f7caf20f8b03c0213bb6837
languageName: node
linkType: hard

Expand Down
10 changes: 5 additions & 5 deletions javascript-modules-engine/tests/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ __metadata:
languageName: node
linkType: hard

"@jahia/cypress@npm:^3.35.0":
version: 3.35.0
resolution: "@jahia/cypress@npm:3.35.0"
"@jahia/cypress@npm:^3.34.0":
version: 3.34.0
resolution: "@jahia/cypress@npm:3.34.0"
dependencies:
"@apollo/client": "npm:^3.4.9"
cypress-real-events: "npm:^1.11.0"
Expand All @@ -178,7 +178,7 @@ __metadata:
ci.startup: ci.startup.sh
env.debug: env.debug.sh
env.run: env.run.sh
checksum: 10c0/91da095565d7b8008e6e4a8e53d6c9714de8c5310f84d7f3baa1659eb5226a6a5ec49f1bdd31242f140d8a035cc7879e40fe083a8db4c20d1c314ff2956e5811
checksum: 10c0/b3fbb673d4409b9d99bf626baa5cd4b730d50d231177a7761d4cbd48fbadc444ec1d06f18dbe3c2d19d2a063cf312eb495c2c7ffd387944fb5991b0abc5aa4cd
languageName: node
linkType: hard

Expand Down Expand Up @@ -224,7 +224,7 @@ __metadata:
resolution: "@jahia/javascript-modules-engine-cypress@workspace:."
dependencies:
"@4tw/cypress-drag-drop": "npm:^2.2.1"
"@jahia/cypress": "npm:^3.35.0"
"@jahia/cypress": "npm:^3.34.0"
"@jahia/jahia-reporter": "npm:^1.0.30"
"@jahia/jcontent-cypress": "npm:^3.0.0-tests.8"
"@types/node": "npm:^18.11.18"
Expand Down
Loading

0 comments on commit d66b0ef

Please sign in to comment.