File tree Expand file tree Collapse file tree 3 files changed +35
-9
lines changed Expand file tree Collapse file tree 3 files changed +35
-9
lines changed Original file line number Diff line number Diff line change 11621162 <javacArg >${java.version} </javacArg >
11631163 <javacArg >-target</javacArg >
11641164 <javacArg >${java.version} </javacArg >
1165- <!-- This option is needed to suppress warnings from sun.misc.Unsafe usage -->
1166- <javacArg >-XDignore.symbol.file</javacArg >
11671165 </javacArgs >
11681166 <!-- The following plugin is required to use quasiquotes in Scala 2.10 and is used
11691167 by Spark SQL for code generation. -->
11861184 <encoding >UTF-8</encoding >
11871185 <maxmem >1024m</maxmem >
11881186 <fork >true</fork >
1189- <compilerArgs >
1190- <!-- This option is needed to suppress warnings from sun.misc.Unsafe usage -->
1191- <arg >-XDignore.symbol.file</arg >
1192- </compilerArgs >
11931187 </configuration >
11941188 </plugin >
11951189 <!-- Surefire runs all Java tests -->
Original file line number Diff line number Diff line change @@ -140,9 +140,7 @@ object SparkBuild extends PomBuild {
140140 javacOptions in (Compile , doc) ++= {
141141 val Array (major, minor, _) = System .getProperty(" java.version" ).split(" \\ ." , 3 )
142142 if (major.toInt >= 1 && minor.toInt >= 8 ) Seq (" -Xdoclint:all" , " -Xdoclint:-missing" ) else Seq .empty
143- },
144- // This option is needed to suppress warnings from sun.misc.Unsafe usage
145- javacOptions in Compile += " -XDignore.symbol.file"
143+ }
146144 )
147145
148146 def enable (settings : Seq [Setting [_]])(projectRef : ProjectRef ) = {
@@ -165,6 +163,9 @@ object SparkBuild extends PomBuild {
165163 x => enable(MimaBuild .mimaSettings(sparkHome, x))(x)
166164 }
167165
166+ /* Unsafe settings */
167+ enable(Unsafe .settings)(unsafe)
168+
168169 /* Enable Assembly for all assembly projects */
169170 assemblyProjects.foreach(enable(Assembly .settings))
170171
@@ -218,6 +219,13 @@ object SparkBuild extends PomBuild {
218219
219220}
220221
222+ object Unsafe {
223+ lazy val settings = Seq (
224+ // This option is needed to suppress warnings from sun.misc.Unsafe usage
225+ javacOptions in Compile += " -XDignore.symbol.file"
226+ )
227+ }
228+
221229object Flume {
222230 lazy val settings = sbtavro.SbtAvro .avroSettings
223231}
Original file line number Diff line number Diff line change 6565 <build >
6666 <outputDirectory >target/scala-${scala.binary.version} /classes</outputDirectory >
6767 <testOutputDirectory >target/scala-${scala.binary.version} /test-classes</testOutputDirectory >
68+ <pluginManagement >
69+ <plugins >
70+ <plugin >
71+ <groupId >net.alchim31.maven</groupId >
72+ <artifactId >scala-maven-plugin</artifactId >
73+ <configuration >
74+ <javacArgs >
75+ <!-- This option is needed to suppress warnings from sun.misc.Unsafe usage -->
76+ <javacArg >-XDignore.symbol.file</javacArg >
77+ </javacArgs >
78+ </configuration >
79+ </plugin >
80+ <plugin >
81+ <groupId >org.apache.maven.plugins</groupId >
82+ <artifactId >maven-compiler-plugin</artifactId >
83+ <configuration >
84+ <compilerArgs >
85+ <!-- This option is needed to suppress warnings from sun.misc.Unsafe usage -->
86+ <arg >-XDignore.symbol.file</arg >
87+ </compilerArgs >
88+ </configuration >
89+ </plugin >
90+ </plugins >
91+ </pluginManagement >
6892 </build >
6993</project >
You can’t perform that action at this time.
0 commit comments