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