2019-09-22 20:42:26 +00:00
|
|
|
import java.util.Properties
|
|
|
|
|
2019-07-10 20:13:41 +00:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
|
|
|
kotlin("jvm") version embeddedKotlinVersion
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy {
|
|
|
|
// Fabric needs this.
|
2019-07-15 16:14:02 +00:00
|
|
|
force(
|
2020-01-11 03:32:12 +00:00
|
|
|
"commons-io:commons-io:2.5",
|
|
|
|
"org.ow2.asm:asm:7.1",
|
|
|
|
"org.ow2.asm:asm-commons:7.1"
|
2019-07-15 16:14:02 +00:00
|
|
|
)
|
2019-07-10 20:13:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-22 20:42:26 +00:00
|
|
|
val properties = Properties().also { props ->
|
|
|
|
project.projectDir.resolveSibling("gradle.properties").bufferedReader().use {
|
|
|
|
props.load(it)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
val loomVersion: String = properties.getProperty("loom.version")
|
|
|
|
val mixinVersion: String = properties.getProperty("mixin.version")
|
|
|
|
|
2019-07-10 20:13:41 +00:00
|
|
|
dependencies {
|
|
|
|
implementation(gradleApi())
|
|
|
|
implementation("org.ajoberstar.grgit:grgit-gradle:3.1.1")
|
|
|
|
implementation("com.github.jengelman.gradle.plugins:shadow:5.1.0")
|
|
|
|
implementation("net.ltgt.apt-eclipse:net.ltgt.apt-eclipse.gradle.plugin:0.21")
|
|
|
|
implementation("net.ltgt.apt-idea:net.ltgt.apt-idea.gradle.plugin:0.21")
|
2019-11-21 13:50:28 +00:00
|
|
|
implementation("gradle.plugin.com.mendhak.gradlecrowdin:plugin:0.1.0")
|
2019-07-10 20:13:41 +00:00
|
|
|
}
|