Skip to content

Standalone Scala provider mod, support Scala 3 and Scala 2.11

License

Notifications You must be signed in to change notification settings

CleanroomMC/Scalar

Repository files navigation

Scalar

Standalone Scala provider mod, support Scala 3 and Scala 2.11

Use with experimental branch Cleanroom (3025+)

Downloads:

  • Scala 2.11.x, used by non-Cleanroom-based Scala mod
  • Scala 3.x, used by Cleanroom-based new mod or forks
  • You can't install them together!
  • There are 0 Scala 3 mods! (for now)

Development (temporary):

  1. Add
maven {
    name "outlandsReleases"
    url "https://maven.outlands.top/releases"
}

to your repositories

  1. Add implementation "com.cleanroommc:scalar:3.5.1:api" to your dependencies
  2. Add
    implementation 'org.scala-lang:scala3-compiler_3:3.5.1'
    implementation 'org.scala-lang:scala3-library_3:3.5.1'
    implementation 'com.typesafe:config:1.4.3'
    implementation 'org.typelevel:cats-core_3:2.10.0'
    implementation 'org.typelevel:cats-kernel_3:2.10.0'
    implementation 'org.typelevel:cats-free_3:2.10.0'

to your dependencies (Yes you need to declare them yourself)

  1. modLanguage = "scala" in @Mod()