Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-1661

Conditionalize the Stuff needed to support nashorn.

    XMLWordPrintable

    Details

      Description

      Just hygiene but useful.

      Ian Young has worked out how to conditionalize pom dependencies on JVM version. We should take advantage of this where we have scripting tests.

      <profiles>
              <!--
                  Pull in a Javascript engine for testing in Java
                  versions where the JDK doesn't provide one.
              -->
              <profile>
                  <id>get-graal-nashorn</id>
                  <activation>
                      <jdk>[15,</jdk>
                  </activation>
                  <dependencies>
                      <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>
                      <dependency>
                          <groupId>net.shibboleth.idp.plugin.scripting</groupId>
                          <artifactId>idp-plugin-nashorn-impl</artifactId>
                          <version>${nashorn.engine.version}</version>
                          <scope>test</scope>
                      </dependency>
                  </dependencies>
              </profile>
      

      This needs done in java-support and opensaml too, probably spring support as well.

        Attachments

          Activity

            People

            Assignee:
            rdw@iay.org.uk Rod Widdowson
            Reporter:
            rdw@iay.org.uk Rod Widdowson
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: