Skip to content

Commit e223b4f

Browse files
authored
Updating scala, spark, and hadoop to supported versions (#2215)
1 parent 987c00d commit e223b4f

File tree

50 files changed

+32
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+32
-40
lines changed

buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/BuildPlugin.groovy

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ class BuildPlugin implements Plugin<Project> {
281281
add(SHARED_TEST_IMPLEMENTATION_CONFIGURATION_NAME, "junit:junit:${project.ext.junitVersion}")
282282
add(SHARED_TEST_IMPLEMENTATION_CONFIGURATION_NAME, "org.hamcrest:hamcrest-all:${project.ext.hamcrestVersion}")
283283
add(SHARED_TEST_IMPLEMENTATION_CONFIGURATION_NAME, "joda-time:joda-time:2.8")
284-
add(SHARED_TEST_IMPLEMENTATION_CONFIGURATION_NAME, "org.slf4j:slf4j-log4j12:1.7.6")
285284
add(SHARED_TEST_IMPLEMENTATION_CONFIGURATION_NAME, "org.apache.logging.log4j:log4j-api:${project.ext.log4jVersion}")
286285
add(SHARED_TEST_IMPLEMENTATION_CONFIGURATION_NAME, "org.apache.logging.log4j:log4j-core:${project.ext.log4jVersion}")
287286
add(SHARED_TEST_IMPLEMENTATION_CONFIGURATION_NAME, "org.apache.logging.log4j:log4j-1.2-api:${project.ext.log4jVersion}")
@@ -308,14 +307,6 @@ class BuildPlugin implements Plugin<Project> {
308307
resolve.force("commons-cli:commons-cli:1.2")
309308

310309
resolve.eachDependency { DependencyResolveDetails details ->
311-
// There are tons of slf4j-* variants. Search for all of them, and lock them down.
312-
if (details.requested.name.contains("slf4j-")) {
313-
// Some projects make use of the slf4j binding libraries that are from the implementation side,
314-
// so these must be left alone.
315-
if (details.requested.group.equals("org.apache.logging.log4j") == false) {
316-
details.useVersion "1.7.6"
317-
}
318-
}
319310
// Be careful with log4j version settings as they can be easily missed.
320311
if (details.requested.name.contains("org.apache.logging.log4j") && details.requested.name.contains("log4j-")) {
321312
details.useVersion project.ext.log4jVersion

buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/fixture/hadoop/services/HadoopServiceDescriptor.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class HadoopServiceDescriptor implements ServiceDescriptor {
6262

6363
@Override
6464
Version defaultVersion() {
65-
return new Version(3, 3, 2)
65+
return new Version(3, 4, 0)
6666
}
6767

6868
@Override

buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/fixture/hadoop/services/SparkYarnServiceDescriptor.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class SparkYarnServiceDescriptor implements ServiceDescriptor {
5656

5757
@Override
5858
Version defaultVersion() {
59-
return new Version(3, 3, 3)
59+
return new Version(3, 4, 2)
6060
}
6161

6262
String hadoopVersionCompatibility() {

gradle.properties

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ org.gradle.java.installations.fromEnv=JAVA_HOME,RUNTIME_JAVA_HOME,JAVA15_HOME,JA
1111

1212
## Dependecies Version
1313
# Logging
14+
slf4jVersion = 2.0.6
1415
log4jVersion = 2.17.1
1516

1617
# Hadoop versions
@@ -28,16 +29,16 @@ spark13Version = 1.6.2
2829
spark20Version = 2.3.0
2930
spark22Version = 2.2.3
3031
spark24Version = 2.4.4
31-
spark30Version = 3.3.3
32+
spark30Version = 3.4.2
3233

3334
# same as Spark's
3435
scala210Version = 2.10.7
3536
scala210MajorVersion = 2.10
3637
scala211Version = 2.11.12
3738
scala211MajorVersion = 2.11
38-
scala212Version = 2.12.8
39+
scala212Version = 2.12.19
3940
scala212MajorVersion = 2.12
40-
scala213Version = 2.13.6
41+
scala213Version = 2.13.13
4142
scala213MajorVersion = 2.13
4243

4344
# Testing
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
719d843f28afd3239726b7aab9c5c9171aae1d80

licenses/scala-library-2.12.8.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
76c5600f371936a8c8fed925cb76791e212d3715

licenses/scala-reflect-2.12.8.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.

licenses/slf4j-api-1.7.6.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.

licenses/slf4j-api-2.0.6.jar.sha1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
88c40d8b4f33326f19a7d3c0aaf2c7e8721d4953

0 commit comments

Comments
 (0)