mirror of https://github.com/apache/nifi.git
NIFI-8990 Upgraded Groovy to 2.5.14
- Added dependency management override for Groovy 2.4.21 in Hive Processors - Upgraded TinkerPop Gremlin to 3.5.1 in graph bundle to depend on Groovy 2.5.14 - Adjusted TlsHelperGroovyTest variable declaration to avoid compiler warnings Signed-off-by: Matthew Burgess <mattyb149@apache.org> This closes #5276
This commit is contained in:
parent
a239eea8ff
commit
a4375a046f
|
@ -32,6 +32,22 @@
|
|||
<artifactId>commons-io</artifactId>
|
||||
<version>2.10.0</version>
|
||||
</dependency>
|
||||
<!-- Override Gremlin -->
|
||||
<dependency>
|
||||
<groupId>org.apache.tinkerpop</groupId>
|
||||
<artifactId>gremlin-core</artifactId>
|
||||
<version>3.5.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tinkerpop</groupId>
|
||||
<artifactId>gremlin-driver</artifactId>
|
||||
<version>3.5.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tinkerpop</groupId>
|
||||
<artifactId>gremlin-groovy</artifactId>
|
||||
<version>3.5.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<dependencies>
|
||||
|
@ -60,13 +76,18 @@
|
|||
<dependency>
|
||||
<groupId>org.janusgraph</groupId>
|
||||
<artifactId>janusgraph-core</artifactId>
|
||||
<version>0.4.1</version>
|
||||
<version>0.5.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.janusgraph</groupId>
|
||||
<artifactId>janusgraph-inmemory</artifactId>
|
||||
<version>0.5.3</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy</artifactId>
|
||||
<version>2.5.4</version>
|
||||
<version>2.5.14</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.nifi</groupId>
|
||||
|
|
|
@ -79,17 +79,17 @@
|
|||
<dependency>
|
||||
<groupId>org.opencypher.gremlin</groupId>
|
||||
<artifactId>cypher-gremlin-neo4j-driver</artifactId>
|
||||
<version>0.9.13</version>
|
||||
<version>1.0.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tinkerpop</groupId>
|
||||
<artifactId>gremlin-core</artifactId>
|
||||
<version>3.3.5</version>
|
||||
<version>3.5.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tinkerpop</groupId>
|
||||
<artifactId>gremlin-driver</artifactId>
|
||||
<version>3.3.5</version>
|
||||
<version>3.5.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</modules>
|
||||
|
||||
<properties>
|
||||
<groovyx.groovy.version>2.5.4</groovyx.groovy.version>
|
||||
<groovyx.groovy.version>2.5.14</groovyx.groovy.version>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
|
|
|
@ -85,6 +85,12 @@
|
|||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<!-- Override groovy-all:2.1.6 from Hive -->
|
||||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy-all</artifactId>
|
||||
<version>2.4.21</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.hive.hcatalog</groupId>
|
||||
<artifactId>hive-hcatalog-core</artifactId>
|
||||
|
|
|
@ -102,6 +102,12 @@
|
|||
<artifactId>hive-hcatalog-core</artifactId>
|
||||
<version>${hive.version}</version>
|
||||
</dependency>
|
||||
<!-- Override groovy-all:2.4.11 from Hive -->
|
||||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy-all</artifactId>
|
||||
<version>2.4.21</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.nifi</groupId>
|
||||
<artifactId>nifi-hadoop-utils</artifactId>
|
||||
|
|
|
@ -63,6 +63,12 @@
|
|||
<artifactId>nifi-kerberos-credentials-service-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<!-- Override groovy-all:2.1.6 from Hive -->
|
||||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy-all</artifactId>
|
||||
<version>2.4.21</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.hive</groupId>
|
||||
<artifactId>hive-jdbc</artifactId>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</modules>
|
||||
|
||||
<properties>
|
||||
<scripting.groovy.version>2.5.4</scripting.groovy.version>
|
||||
<scripting.groovy.version>2.5.14</scripting.groovy.version>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
|
|
|
@ -506,13 +506,13 @@
|
|||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy-json</artifactId>
|
||||
<version>2.5.4</version>
|
||||
<version>2.5.14</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy</artifactId>
|
||||
<version>2.5.4</version>
|
||||
<version>2.5.14</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
|
|
@ -128,7 +128,8 @@ class TlsHelperGroovyTest extends GroovyTestCase {
|
|||
File keyFile = new File("src/test/resources/rootCert-pkcs8.key")
|
||||
FileReader keyReader = new FileReader(keyFile)
|
||||
|
||||
final PrivateKey EXPECTED_PRIVATE_KEY = TlsHelper.parseKeyPairFromReader(new FileReader(new File ("src/test/resources/rootCert.key"))).private
|
||||
final KeyPair expectedKeyPair = TlsHelper.parseKeyPairFromReader(new FileReader(new File ("src/test/resources/rootCert.key")))
|
||||
final PrivateKey EXPECTED_PRIVATE_KEY = expectedKeyPair.getPrivate()
|
||||
|
||||
// Act
|
||||
KeyPair keyPair = TlsHelper.parseKeyPairFromReader(keyReader)
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
<dependency>
|
||||
<groupId>org.codehaus.groovy</groupId>
|
||||
<artifactId>groovy-all</artifactId>
|
||||
<version>2.5.4</version>
|
||||
<version>${toolkit.groovy.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<module>nifi-toolkit-api</module>
|
||||
</modules>
|
||||
<properties>
|
||||
<toolkit.groovy.version>2.5.4</toolkit.groovy.version>
|
||||
<toolkit.groovy.version>2.5.14</toolkit.groovy.version>
|
||||
</properties>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -97,7 +97,7 @@
|
|||
<ranger.version>2.1.0</ranger.version>
|
||||
<jetty.version>9.4.43.v20210629</jetty.version>
|
||||
<jackson.version>2.12.3</jackson.version>
|
||||
<nifi.groovy.version>2.5.6</nifi.groovy.version>
|
||||
<nifi.groovy.version>2.5.14</nifi.groovy.version>
|
||||
<surefire.version>2.22.2</surefire.version>
|
||||
<!-- The Hadoop version used by nifi-hadoop-libraries-nar and any NARs that depend on it, other NARs that need
|
||||
a specific version should override this property, or use a more specific property like abc.hadoop.version -->
|
||||
|
|
Loading…
Reference in New Issue