2019-10-27 01:35:25 +00:00
|
|
|
plugins {
|
2021-02-26 22:04:18 +00:00
|
|
|
id "fabric-loom" version "0.6.49"
|
2019-10-27 01:35:25 +00:00
|
|
|
id "maven-publish"
|
2021-02-10 23:55:49 +00:00
|
|
|
id "org.jetbrains.kotlin.jvm" version "1.4.30"
|
2019-10-27 01:35:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
archivesBaseName = project.archives_base_name
|
|
|
|
version = project.mod_version
|
|
|
|
group = project.maven_group
|
|
|
|
|
2021-03-13 16:53:17 +00:00
|
|
|
allprojects {
|
|
|
|
pluginManager.withPlugin("java") {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
configure(allprojects.findAll { it.name != "kiwi-java" }) {
|
|
|
|
pluginManager.withPlugin("fabric-loom") {
|
|
|
|
dependencies {
|
|
|
|
//to change the versions see the gradle.properties file
|
|
|
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
|
|
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
|
|
|
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
|
|
|
|
|
|
// Fabric API. This is technically optional, but you probably want it anyway.
|
|
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
|
|
|
modImplementation "net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pluginManager.withPlugin("java") {
|
|
|
|
processResources {
|
|
|
|
inputs.property "version", project.version
|
|
|
|
|
|
|
|
filesMatching("fabric.mod.json") {
|
|
|
|
expand "version": project.version
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
|
|
|
// this fixes some edge cases with special characters not displaying correctly
|
|
|
|
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
|
|
|
// if it is present.
|
|
|
|
// If you remove this line, sources will not be generated.
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pluginManager.withPlugin("org.jetbrains.kotlin.jvm") {
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-27 01:35:25 +00:00
|
|
|
minecraft {
|
2021-02-26 22:04:18 +00:00
|
|
|
log4jConfigs.from "PhyConDebugLogging.xml"
|
2019-10-27 01:35:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
2021-03-09 01:53:25 +00:00
|
|
|
maven { url "https://mod-buildcraft.com/maven" }
|
|
|
|
maven { url "http://server.bbkr.space:8081/artifactory/libs-release/" }
|
|
|
|
maven { url "https://maven.terraformersmc.com/releases" }
|
2021-02-19 04:12:43 +00:00
|
|
|
jcenter()
|
2019-10-27 01:35:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
|
|
|
|
// You may need to force-disable transitiveness on them.
|
2021-03-23 02:01:33 +00:00
|
|
|
modCompile "alexiil.mc.lib:libblockattributes-all:${project.libblockattributes_version}"
|
2019-10-27 01:35:25 +00:00
|
|
|
include "alexiil.mc.lib:libblockattributes-core:${project.libblockattributes_version}"
|
|
|
|
include "alexiil.mc.lib:libblockattributes-items:${project.libblockattributes_version}"
|
2021-02-19 04:12:43 +00:00
|
|
|
|
2021-03-09 01:53:25 +00:00
|
|
|
compile project(":kiwi-java")
|
2021-03-18 02:53:40 +00:00
|
|
|
include project(":kiwi-java")
|
2021-02-19 04:12:43 +00:00
|
|
|
|
2021-03-18 22:12:01 +00:00
|
|
|
runtimeOnly project(":plugin:mousewheelie")
|
|
|
|
include project(":plugin:mousewheelie")
|
2021-03-09 01:53:25 +00:00
|
|
|
runtimeOnly project(":plugin:rei")
|
|
|
|
include project(":plugin:rei")
|
2021-03-23 02:01:33 +00:00
|
|
|
runtimeOnly project(":plugin:techreborn")
|
|
|
|
include project(":plugin:techreborn")
|
2021-03-09 01:53:25 +00:00
|
|
|
|
2021-03-09 23:36:40 +00:00
|
|
|
modRuntime("io.github.cottonmc:cotton-resources:${project.cotton_resources_version}") {
|
|
|
|
exclude group: "net.fabricmc.fabric-api"
|
|
|
|
}
|
|
|
|
modRuntime("com.terraformersmc:modmenu:${project.modmenu_version}") {
|
|
|
|
exclude group: "net.fabricmc.fabric-api"
|
|
|
|
}
|
2021-03-09 01:53:25 +00:00
|
|
|
|
2021-02-19 04:12:43 +00:00
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter:${project.junit_version}"
|
2019-10-27 01:35:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
2021-02-10 23:55:49 +00:00
|
|
|
from("LICENSE") {
|
|
|
|
rename { "${it}_${project.archivesBaseName}" }
|
|
|
|
}
|
2019-10-27 01:35:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// configure the maven publication
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
// add all the jars that should be included when publishing to maven
|
|
|
|
artifact(remapJar) {
|
|
|
|
builtBy remapJar
|
|
|
|
}
|
|
|
|
artifact(sourcesJar) {
|
|
|
|
builtBy remapSourcesJar
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// select the repositories you want to publish to
|
|
|
|
repositories {
|
|
|
|
// uncomment to publish to the local maven
|
|
|
|
// mavenLocal()
|
|
|
|
}
|
2021-02-10 23:55:49 +00:00
|
|
|
}
|