2016-08-06 14:28:05 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2021-08-02 14:54:39 +00:00
|
|
|
maven { url = 'https://files.minecraftforge.net/maven' }
|
2016-08-06 14:28:05 +00:00
|
|
|
jcenter()
|
2021-08-02 14:54:39 +00:00
|
|
|
mavenCentral()
|
2016-08-06 14:28:05 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2021-08-02 14:54:39 +00:00
|
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.+', changing: true
|
2016-08-06 14:28:05 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins {
|
2016-08-06 14:52:01 +00:00
|
|
|
id "maven"
|
2021-08-02 14:54:39 +00:00
|
|
|
id "com.github.johnrengelman.shadow" version "5.2.0"
|
2016-08-06 14:28:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: "kotlin"
|
2021-08-02 14:54:39 +00:00
|
|
|
apply plugin: 'net.minecraftforge.gradle'
|
2016-08-06 14:28:05 +00:00
|
|
|
|
2016-08-06 14:46:57 +00:00
|
|
|
version = mod_version
|
2016-08-06 14:28:05 +00:00
|
|
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
|
|
|
|
minecraft {
|
2021-08-02 14:54:39 +00:00
|
|
|
mappings channel: 'stable', version: '39-1.12'
|
2016-08-06 14:28:05 +00:00
|
|
|
}
|
|
|
|
|
2021-08-02 14:54:39 +00:00
|
|
|
sourceSets.main.resources { srcDir 'src/generated/resources' }
|
2016-08-06 14:28:05 +00:00
|
|
|
|
|
|
|
repositories {
|
2017-04-29 16:05:56 +00:00
|
|
|
jcenter()
|
2021-08-02 14:54:39 +00:00
|
|
|
mavenCentral()
|
2016-08-06 14:28:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-08-02 14:54:39 +00:00
|
|
|
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2855'
|
2016-08-06 14:28:05 +00:00
|
|
|
compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib", version: kotlin_version
|
2019-09-13 20:21:17 +00:00
|
|
|
compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk7", version: kotlin_version
|
2018-06-09 19:29:04 +00:00
|
|
|
compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: kotlin_version
|
2016-08-06 14:28:05 +00:00
|
|
|
compile group: "org.jetbrains.kotlin", name: "kotlin-reflect", version: kotlin_version
|
2017-04-29 16:05:56 +00:00
|
|
|
compile group: "org.jetbrains", name: "annotations", version: annotations_version
|
|
|
|
compile group: "org.jetbrains.kotlinx", name: "kotlinx-coroutines-core", version: coroutines_version
|
|
|
|
compile group: "org.jetbrains.kotlinx", name: "kotlinx-coroutines-jdk8", version: coroutines_version
|
2016-08-06 14:28:05 +00:00
|
|
|
}
|
|
|
|
|
2017-02-16 23:22:08 +00:00
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes "FMLCorePlugin": "net.shadowfacts.forgelin.preloader.ForgelinPlugin",
|
|
|
|
"FMLCorePluginContainsFMLMod": "true"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-06 14:28:05 +00:00
|
|
|
shadowJar {
|
|
|
|
classifier = ""
|
|
|
|
dependencies {
|
|
|
|
include(dependency("org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"))
|
2019-09-13 20:21:17 +00:00
|
|
|
include(dependency("org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlin_version}"))
|
|
|
|
include(dependency("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}"))
|
2016-08-06 14:28:05 +00:00
|
|
|
include(dependency("org.jetbrains.kotlin:kotlin-reflect:${kotlin_version}"))
|
2017-04-29 16:05:56 +00:00
|
|
|
include(dependency("org.jetbrains:annotations:${annotations_version}"))
|
|
|
|
include(dependency("org.jetbrains.kotlinx:kotlinx-coroutines-core:${coroutines_version}"))
|
|
|
|
include(dependency("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:${coroutines_version}"))
|
2016-08-06 14:28:05 +00:00
|
|
|
}
|
2017-02-16 23:22:08 +00:00
|
|
|
manifest {
|
|
|
|
attributes "FMLCorePlugin": "net.shadowfacts.forgelin.preloader.ForgelinPlugin",
|
2021-08-02 14:54:39 +00:00
|
|
|
"FMLCorePluginContainsFMLMod": "true"
|
2017-02-16 23:22:08 +00:00
|
|
|
}
|
2016-08-06 14:28:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.build.dependsOn shadowJar
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives shadowJar
|
2016-09-22 22:13:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
reobf {
|
|
|
|
shadowJar {
|
|
|
|
}
|
|
|
|
}
|
2021-08-02 14:54:39 +00:00
|
|
|
|
2016-09-22 22:13:04 +00:00
|
|
|
tasks.reobfShadowJar.mustRunAfter shadowJar
|
|
|
|
tasks.build.dependsOn reobfShadowJar
|
2017-06-29 20:39:47 +00:00
|
|
|
|
2021-08-02 14:54:39 +00:00
|
|
|
jar.finalizedBy('reobfJar')
|