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

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


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

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

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=3f1fd936fa39c8cebaabc3a8f47cdf00c930718d

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

commit 3f1fd936fa39c8cebaabc3a8f47cdf00c930718d
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sun Aug 22 16:54:41 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
---
 opensaml-saml-impl/pom.xml | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/opensaml-saml-impl/pom.xml b/opensaml-saml-impl/pom.xml
index d53c6257e..b7295465e 100644
--- a/opensaml-saml-impl/pom.xml
+++ b/opensaml-saml-impl/pom.xml
@@ -217,29 +217,29 @@
             <artifactId>jsoup</artifactId>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.graalvm.sdk</groupId>
-            <artifactId>graal-sdk</artifactId>
-            <version>${graalvm.version}</version>
-            <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.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>
+
     <scm>
         <connection>${shibboleth.scm.connection}java-opensaml</connection>
         <developerConnection>${shibboleth.scm.developerConnection}java-opensaml</developerConnection>

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


More information about the commits mailing list