-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #298 from airbnb/tibi-scala_2_12
Build aerosolve using Scala 2.12
- Loading branch information
Showing
18 changed files
with
124 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
airlearner/airlearner-utils/src/main/scala/com/airbnb/common/ml/util/ScalaLogging.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/** | ||
* This Gradle file sets up common build settings for Scala 2.10.x projects | ||
*/ | ||
|
||
ext { | ||
scala212Version = '2.12.7' | ||
} | ||
|
||
// Language support | ||
apply plugin: 'java' | ||
apply plugin: 'scala' | ||
|
||
|
||
/** | ||
* Include basic package dependencies that ALL Airbnb Scala projects will need. | ||
* This should include no team or project specific code. That will only bloat other | ||
* Scala projects. | ||
* | ||
* Additionally, don't include domain specific libraries such as Spark. | ||
*/ | ||
dependencies { | ||
compile libraries.scala_library_212 | ||
compile libraries.scala_logging_slf4j_212 | ||
compile libraries.org_scala_lang_modules_scala_java8_compat_2_12 | ||
} | ||
|
||
/** | ||
* Set standard Scala compilation options | ||
*/ | ||
def getScalaCompileAdditionalParameters = { | ||
def compileOptions = [ | ||
// Emit warning and location for usages of features that should be imported explicitly. | ||
'-feature', | ||
// Output messages about what the compiler is doing. | ||
'-verbose', | ||
// Enable recommended additional warnings. | ||
'-Xlint', | ||
] | ||
if (project.hasProperty('SkipWarning')) { | ||
compileOptions << '-nowarn' | ||
} | ||
compileOptions | ||
} | ||
tasks.withType(ScalaCompile) { | ||
// Target Java 1.8 level compatibility | ||
sourceCompatibility = '1.8' | ||
targetCompatibility = '1.8' | ||
|
||
scalaCompileOptions.with { | ||
deprecation = true | ||
unchecked = true | ||
optimize = true | ||
debugLevel = 'vars' | ||
additionalParameters = getScalaCompileAdditionalParameters() | ||
} | ||
} | ||
|
||
|
||
/** | ||
* Task: `repl` | ||
* | ||
* Will initiate a command-line Scala console that you can use | ||
* to interact live with your project's code. | ||
* | ||
* Run with `gradlew repl --console plain --no-daemon` | ||
*/ | ||
task repl(type: JavaExec) { | ||
dependencies { | ||
compile group: 'org.scala-lang', name: 'scala-compiler', version: scala212Version | ||
} | ||
main = 'scala.tools.nsc.MainGenericRunner' | ||
classpath = sourceSets.main.runtimeClasspath | ||
standardInput System.in | ||
args '-usejavacp' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
allprojects { | ||
ext { | ||
sparkVersion = '2.3.0' | ||
sparkVersion = '3.1.1' | ||
|
||
libraries = [ | ||
lombok: 'org.projectlombok:lombok:1.16.8', | ||
joda_time: 'joda-time:joda-time:2.8.2', | ||
joda_convert: 'org.joda:joda-convert:1.8', | ||
scala_library_211: 'org.scala-lang:scala-library:2.11.8', | ||
scala_library_212: 'org.scala-lang:scala-library:2.12.7', | ||
scala_logging_slf4j_211: 'com.typesafe.scala-logging:scala-logging-slf4j_2.11:2.1.2', | ||
scala_logging_slf4j_212: 'com.typesafe.scala-logging:scala-logging_2.12:3.9.2', | ||
slf4j_api: 'org.slf4j:slf4j-api:1.7.9', | ||
slf4j_simple: 'org.slf4j:slf4j-simple:1.7.9', | ||
typesafe_config: 'com.typesafe:config:1.3.0', | ||
org_typelevel_cats_core_2_11_1_0_1: 'org.typelevel:cats-core_2.11:1.0.1', | ||
org_scala_lang_modules_scala_java8_compat_2_11: 'org.scala-lang.modules:scala-java8-compat_2.11:0.8.0', | ||
org_scala_lang_modules_scala_java8_compat_2_12: 'org.scala-lang.modules:scala-java8-compat_2.12:0.8.0', | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.