if (!hasProperty('scalaVersion')) { ext.scalaVersion = '2.10.4' } ext.defaultScalaVersion = '2.10.4' if (scalaVersion.startsWith('2.10')) { ext.baseScalaVersion = '2.10' } else if (scalaVersion.startsWith('2.11')) { ext.baseScalaVersion = '2.11' } else { ext.baseScalaVersion = scalaVersion }