22 lines
647 B
Kotlin
22 lines
647 B
Kotlin
operator fun String.invoke(): String = rootProject.properties[this] as? String ?: error("Property $this not found")
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
create("thePlugin") {
|
|
id = "org.taumc.gradle.stonecutter"
|
|
implementationClass = "org.taumc.gradle.stonecutter.StonecutterPlugin"
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
maven { url = uri("https://maven.kikugie.dev/snapshots") }
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":minecraft"))
|
|
compileOnly("dev.kikugie:stonecutter:${"stonecutter_version"()}")
|
|
implementation("com.google.code.gson:gson:${"gson_version"()}")
|
|
} |