Skip to content

Commit

Permalink
Get Scala version from Travis when available
Browse files Browse the repository at this point in the history
  • Loading branch information
AmailP committed May 3, 2021
1 parent 42c0560 commit a0f269e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ sourceSets.main.scala.srcDir 'src/main/java'
sourceSets.main.scala.srcDir 'src/main/java-gen'
sourceSets.test.scala.srcDir 'src/test/java'

def scalaVersion = System.getenv().getOrDefault('TRAVIS_SCALA_VERSION', '2.12.12')
dependencies {
implementation 'org.scala-lang:scala-library:2.12.12'
implementation "org.scala-lang:scala-library:$scalaVersion"
testImplementation 'org.scalatest:scalatest_2.12:3.2.1'
testImplementation 'org.scalatestplus:junit-4-12_2.12:3.2.1.0'
}
Expand Down

0 comments on commit a0f269e

Please sign in to comment.