File tree Expand file tree Collapse file tree 6 files changed +29
-4
lines changed Expand file tree Collapse file tree 6 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.3 -all.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.4 -all.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=.
29
29
set APP_BASE_NAME = %~n0
30
30
set APP_HOME = %DIRNAME%
31
31
32
+ @ rem Resolve any "." and ".." in APP_HOME to make it shorter.
33
+ for %%i in (" %APP_HOME% " ) do set APP_HOME = %%~fi
34
+
32
35
@ rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
33
36
set DEFAULT_JVM_OPTS = " -Xmx64m" " -Xms64m"
34
37
Original file line number Diff line number Diff line change 17
17
* under the License.
18
18
*/
19
19
20
-
21
20
import org.elasticsearch.gradle.test.AntFixture
22
21
import org.elasticsearch.gradle.testclusters.DefaultTestClustersTask
23
22
import org.elasticsearch.hadoop.gradle.fixture.hadoop.HadoopFixturePlugin
@@ -48,6 +47,21 @@ tasks.withType(ScalaCompile) { ScalaCompile task ->
48
47
49
48
boolean localRepo = project. getProperties(). containsKey(" localRepo" )
50
49
50
+ // Gradle's java library plugin adds a variant to each project that offers the classes dir as an artifact that can be
51
+ // used in other projects instead of requiring a jar operation to happen. Kerberos depends on the spark integration to
52
+ // compile some code, but due to how the current spark compilation works it's likely that the classes directory in the
53
+ // spark projects do not exist anymore when the kerberos compilation happens during a distribution build.
54
+ // TODO: Clean this up when we get to variants, they should persist their classes dirs in a sane way
55
+ configurations {
56
+ compileClasspath {
57
+ beforeLocking {
58
+ attributes {
59
+ attribute(LibraryElements . LIBRARY_ELEMENTS_ATTRIBUTE , project. objects. named(LibraryElements , LibraryElements . JAR ))
60
+ }
61
+ }
62
+ }
63
+ }
64
+
51
65
dependencies {
52
66
implementation(project(" :elasticsearch-hadoop-mr" ))
53
67
implementation(project(" :elasticsearch-storm" ))
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ apply plugin: 'scala.variants'
10
10
11
11
variants {
12
12
defaultVersion ' 2.11.12'
13
- targetVersions ' 2.11.12'
13
+ targetVersions ' 2.10.7 ' , ' 2. 11.12'
14
14
}
15
15
16
16
println " Compiled using Scala ${ project.ext.scalaMajorVersion} [${ project.ext.scalaVersion} ]"
@@ -58,6 +58,7 @@ tasks.withType(ScalaCompile) { ScalaCompile task ->
58
58
}
59
59
60
60
compileScala {
61
+ options. forkOptions. executable = new File (project. ext. runtimeJavaHome, ' bin/java' ). canonicalPath
61
62
configure(scalaCompileOptions. forkOptions) {
62
63
memoryMaximumSize = ' 1g'
63
64
jvmArgs = [' -XX:MaxPermSize=512m' ]
@@ -148,6 +149,9 @@ dependencies {
148
149
implementation(" com.google.code.findbugs:jsr305:2.0.1" )
149
150
implementation(" org.json4s:json4s-ast_2.10:3.2.10" )
150
151
implementation(" com.esotericsoftware.kryo:kryo:2.21" )
152
+ compileOnly(" org.apache.hadoop:hadoop-annotations:${ project.ext.hadoopVersion} " )
153
+ compileOnly(" org.codehaus.jackson:jackson-core-asl:${ project.ext.jacksonVersion} " )
154
+ compileOnly(" org.codehaus.jackson:jackson-mapper-asl:${ project.ext.jacksonVersion} " )
151
155
}
152
156
153
157
testImplementation(project(" :test:shared" ))
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ apply plugin: 'scala.variants'
10
10
11
11
variants {
12
12
defaultVersion ' 2.11.12'
13
- targetVersions ' 2.11.12'
13
+ targetVersions ' 2.10.7 ' , ' 2. 11.12'
14
14
}
15
15
16
16
configurations {
@@ -44,6 +44,7 @@ tasks.withType(ScalaCompile) { ScalaCompile task ->
44
44
}
45
45
46
46
compileScala {
47
+ options. forkOptions. executable = new File (project. ext. runtimeJavaHome, ' bin/java' ). canonicalPath
47
48
configure(scalaCompileOptions. forkOptions) {
48
49
memoryMaximumSize = ' 1g'
49
50
jvmArgs = [' -XX:MaxPermSize=512m' ]
@@ -139,6 +140,9 @@ dependencies {
139
140
implementation(" com.google.code.findbugs:jsr305:2.0.1" )
140
141
implementation(" org.json4s:json4s-ast_2.10:3.2.10" )
141
142
implementation(" com.esotericsoftware.kryo:kryo:2.21" )
143
+ compileOnly(" org.apache.hadoop:hadoop-annotations:${ project.ext.hadoopVersion} " )
144
+ compileOnly(" org.codehaus.jackson:jackson-core-asl:${ project.ext.jacksonVersion} " )
145
+ compileOnly(" org.codehaus.jackson:jackson-mapper-asl:${ project.ext.jacksonVersion} " )
142
146
}
143
147
144
148
testImplementation(project(" :test:shared" ))
You can’t perform that action at this time.
0 commit comments