[ 
https://issues.apache.org/jira/browse/CASSANDRA-16895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17449670#comment-17449670
 ] 

Attila Szegedi commented on CASSANDRA-16895:
--------------------------------------------

While OpenJDK Nashorn is GPLv2+Classpath licensed just as OpenJDK itself, 
[https://www.apache.org/legal/resolved.html#prohibited] says:
{quote}…you can rely on the component if its license terms do not affect the 
Apache product's licensing. For example, using a GPL'ed tool during the build 
is okay, but including GPL'ed source code is not.
{quote}
If you only use Nashorn during build and for running tests, you should be fine 
as long as you don't distribute its sources. While I'm obviously biased (I'm 
the maintainer for OpenJDK Nashorn), I think getting OpenJDK Nashorn JARs from 
Maven Central as build/test dependencies is a much smaller change than 
requiring GraalVM for the same. It preserves your ability to run the build on 
any vanilla Java runtime compatible with Java spec 11 or later. Just my 2c.

> Support Java 17
> ---------------
>
>                 Key: CASSANDRA-16895
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16895
>             Project: Cassandra
>          Issue Type: Task
>          Components: Build
>            Reporter: Ekaterina Dimitrova
>            Assignee: Ekaterina Dimitrova
>            Priority: Normal
>
>   This ticket is intended to group all issues found to support Java 17 in the 
> future.
> Upgrade steps:
>  * [Dependencies 
> |https://mvnrepository.com/artifact/org.apache.cassandra/cassandra-all/4.0.1]to
>  be updated (not all but at least those that require an update in order to 
> work with Java 17)
>  * More encapsulated JDK internal APIs. Some of the issues might be solved 
> with the dependencies updates
>  * Currently trunk compiles if we remove the Nashorn dependency (ant script 
> tag, used for the test environment; UDFs) . The oracle recommendation to use  
> Nashorn-core won't work for the project as it is under GPL 2.0. Most probably 
> we will opt in for graal-sdk licensed under UPL
>  * All tests to be cleaned
>  * CI environment to be setup



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to