PhysicalConnectivity/build.gradle

140 lines
4.1 KiB
Groovy
Raw Permalink Normal View History

2019-10-27 01:35:25 +00:00
plugins {
2022-06-16 14:45:32 +00:00
id "fabric-loom" version "0.12.9"
2019-10-27 01:35:25 +00:00
id "maven-publish"
2021-12-22 23:59:51 +00:00
id "org.jetbrains.kotlin.jvm" version "1.6.10"
2019-10-27 01:35:25 +00:00
}
archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
allprojects {
pluginManager.withPlugin("java") {
2021-12-22 23:59:51 +00:00
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
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"
2021-12-22 23:59:51 +00:00
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
options.release = 17
}
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 {
2021-12-22 23:59:51 +00:00
kotlinOptions.jvmTarget = JavaVersion.VERSION_17
}
}
}
2021-12-22 23:59:51 +00:00
loom {
2021-02-26 22:04:18 +00:00
log4jConfigs.from "PhyConDebugLogging.xml"
2019-10-27 01:35:25 +00:00
}
repositories {
maven { url "https://mod-buildcraft.com/maven" }
2021-12-22 23:59:51 +00:00
// maven { url "https://server.bbkr.space:8081/artifactory/libs-release/" }
maven { url "https://maven.terraformersmc.com/releases" }
2021-12-22 23:59:51 +00:00
maven { url "https://maven.shedaniel.me/" }
maven { url "https://maven.siphalor.de/" }
maven { url "https://jitpack.io" }
mavenCentral()
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-12-22 23:59:51 +00:00
modImplementation "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-12-22 23:59:51 +00:00
implementation project(":kiwi-java")
2021-03-18 02:53:40 +00:00
include project(":kiwi-java")
2021-02-19 04:12:43 +00:00
2023-03-13 02:15:32 +00:00
// modRuntimeOnly "de.siphalor:mousewheelie-1.18:${project.mousewheelie_version}"
// runtimeOnly(project(":plugin:mousewheelie")) {
// transitive = false
// }
// include project(":plugin:mousewheelie")
//
// modRuntimeOnly "me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}"
// runtimeOnly(project(":plugin:rei")) {
// transitive = false
// }
// include project(":plugin:rei")
2021-12-22 23:59:51 +00:00
// runtimeOnly project(":plugin:techreborn")
// include project(":plugin:techreborn")
// modRuntime("io.github.cottonmc:cotton-resources:${project.cotton_resources_version}") {
// exclude group: "net.fabricmc.fabric-api"
// }
modRuntimeOnly("com.terraformersmc:modmenu:${project.modmenu_version}") {
exclude group: "net.fabricmc.fabric-api"
}
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
2021-12-22 23:59:51 +00:00
// 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()
// }
// }