[java-support] branch main updated: JSCRIPTING-9 JSCRIPTING-12 Start using jdk nashorn for tests

Rod Widdowson rdw at steadingsoftware.com
Mon Aug 23 10:31:04 UTC 2021


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository java-support.

View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=41bc13c3a7d7737a36ba49141715cd23265ad5b6

The following commit(s) were added to refs/heads/main by this push:
       new  41bc13c   JSCRIPTING-9 JSCRIPTING-12 Start using jdk nashorn for tests
41bc13c is described below

commit 41bc13c3a7d7737a36ba49141715cd23265ad5b6
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sun Aug 22 16:30:49 2021 +0100

    JSCRIPTING-9 JSCRIPTING-12 Start using jdk nashorn for tests
    
    https://shibboleth.atlassian.net/browse/JSCRIPTING-9
    https://shibboleth.atlassian.net/browse/JSCRIPTING-12
    
    This also involves reving the parent project to the current snapshot
---
 pom.xml | 44 ++++++++++++++++++++++----------------------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/pom.xml b/pom.xml
index dfa3cd1..a100164 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>net.shibboleth</groupId>
         <artifactId>parent</artifactId>
-        <version>11.2.1</version>
+        <version>11.2.2-SNAPSHOT</version>
     </parent>
 
     <name>java-support</name>
@@ -153,29 +153,29 @@
             <scope>test</scope>
         </dependency>
 
-        <dependency>
-            <groupId>net.shibboleth.idp.plugin.scripting</groupId>
-            <artifactId>idp-plugin-nashorn-impl</artifactId>
-            <version>${nashorn.engine.version}</version>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.graalvm.sdk</groupId>
-            <artifactId>graal-sdk</artifactId>
-            <version>${graalvm.version}</version>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.graalvm.js</groupId>
-            <artifactId>js</artifactId>
-            <version>${graalvm.version}</version>
-            <scope>test</scope>
-        </dependency>
-
     </dependencies>
 
+    <profiles>
+        <!--
+            Pull in a Javascript engine for testing in Java
+            versions where the JDK doesn't provide one.
+        -->
+        <profile>
+            <id>get-nashorn</id>
+            <activation>
+                <jdk>[15,</jdk>
+            </activation>
+            <dependencies>
+                <dependency>
+		    <groupId>org.openjdk.nashorn</groupId>
+		    <artifactId>nashorn-core</artifactId>
+		    <version>${nashorn.jdk.version}</version>
+		    <scope>test</scope>
+                </dependency>
+            </dependencies>
+        </profile>
+    </profiles>
+
     <distributionManagement>
         <site>
             <id>site</id>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list