Tested on a popular Android App.
- Scala 2.11.12, Scala 2.13.7 or later, Scala 3.3.3 or later
- Gradle 8.13 or later
- Android Gradle Plugin 8.4.x or later
https://github.com/onsqcorp/hello-scala-android
In build.gradle.kts
plugins {
id("com.soundcorset.scala-android") version "25.0417.2204"
// ...
}
scala.scalaVersion = "3.7.0-RC2"
- Clone this repository
- Run
publishToMavenLocal
gradle command - In the console, the artifact information
groupId: com.soundcorset, version: yy.MMdd.HHmm
will be displayed (version changed for each time). - Set
mavenLocal()
in your project'ssettings.gradle.kts
:
pluginManagement {
repositories {
mavenLocal() // needed to access local repository
// ...
}
}
- Set correct version of the plugin in your project's
build.gradle.kts
:
plugins {
id("com.soundcorset.scala-android") version "yy.MMdd.HHmm"
// ...
}
scala.scalaVersion = ...