32 lines
757 B
Kotlin
32 lines
757 B
Kotlin
package io.gitlab.jfronny.scripts
|
|
|
|
import org.gradle.api.Project
|
|
import org.gradle.api.provider.Property
|
|
import java.util.*
|
|
|
|
interface LomExtension {
|
|
val yarnBuild: Property<String>
|
|
|
|
fun yarn(yarnBuild: String) {
|
|
this.yarnBuild.set(Objects.requireNonNull(yarnBuild))
|
|
}
|
|
|
|
fun mojmap() {
|
|
yarnBuild.set(null)
|
|
}
|
|
|
|
val minecraftVersion: Property<String>
|
|
val loaderVersion: Property<String>
|
|
|
|
fun check(proj: Project) {
|
|
yarnBuild.finalizeValue()
|
|
minecraftVersion.finalizeValue()
|
|
loaderVersion.finalizeValue()
|
|
}
|
|
|
|
fun copyFrom(ext: LomExtension) {
|
|
yarnBuild.set(ext.yarnBuild)
|
|
minecraftVersion.set(ext.minecraftVersion)
|
|
loaderVersion.set(ext.loaderVersion)
|
|
}
|
|
} |