Restructure how Loom is included in build env

This commit is contained in:
Kenzie Togami
2019-09-22 13:42:26 -07:00
parent e77393a51e
commit 445b7706fc
4 changed files with 39 additions and 19 deletions

View File

@ -1,3 +1,5 @@
import org.gradle.api.Project
object Versions {
const val TEXT = "3.0.1"
const val TEXT_EXTRAS = "3.0.2"
@ -6,3 +8,12 @@ object Versions {
const val JUNIT = "5.5.0"
const val MOCKITO = "3.0.0"
}
// Properties that need a project reference to resolve:
class ProjectVersions(project: Project) {
val loom = project.rootProject.property("loom.version")
val mixin = project.rootProject.property("mixin.version")
}
val Project.versions
get() = ProjectVersions(this)