Scorge
一个用于 Scala 编程语言的 Forge 语言加载器
支持的 Scala 版本
当前支持的版本为 2.13.4
阴影库(Shaded libraries)
Scorge 目前包含 * scala-library * scala-java8-compat
Scala 版本策略
一旦 Forge 稳定并发布,Scorge 将仅支持 Scala 的最新主要发行版。它将锁定 Scala 版本直到下一次稳定发布。Scorge 不支持 Scala 的候选版本或里程碑版本。
Scorge 库策略
如果你想为 Scorge 添加新库以支持:
- 它必须是为 Scala 2 制作的。你必须提供充分的技术理由,说明为什么该库在 Scorge 中得到支持比随模组一起分发更好。
如果你想移除 Scorge 支持的库:
- 必须在 Minecraft 的版本切换期间进行,以避免破坏同一 MC 版本内的向后兼容性。
- 你必须提供充分的技术理由,说明为什么应该移除该库。
使用方法
参考示例项目,将 Scorge 作为 Maven 依赖项添加,并将其放入运行目录中的 mods 文件夹,或者手动将其添加到类路径中。这是由于 FML 加载语言提供者的方式所致,对此无能为力。
Scorge
A Forge language loader the Scala programming language
Supported Scala version
Current Supported version is 2.13.4
Shaded libraries
Scorge currently includes * scala-library * scala-java8-compat
Scala Version Policy
Scorge will only support the latest major release of Scala starting once Forge is stabilized for a release. It will lock Scala version till its next stable release. Scorge will not support release candidates or milestone versions of Scala.
Scorge library policy
If you want to add a new library for Scorge to support. 1. It must be made for Scala 2. You must have a good technical reason as to why it would be better supported in Scorge instead of being shipped with your mod.
If you want to drop a library supported by Scorge 1. It must be done during a version switch of minecraft to not break backwards compatibility within an MC version 2. You must have a good technical reason as to why it should be dropped
Usage
Follow the exmaple project add Scorge as a maven dependency and place it in the mods folder in the the run directory or manually add it to the classpath. This is due to how language providers are loaded by fml and there's nothing that can be done about this.
评论 0
登录后参与评分
还没有评论,来抢沙发吧