DimDoors/build.gradle
2021-01-25 08:24:24 +05:30

95 lines
2.5 KiB
Groovy

plugins {
id 'fabric-loom' version '0.5-SNAPSHOT'
id 'maven-publish'
}
apply plugin: "java"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven { url = 'https://maven.fabricmc.net/' }
mavenCentral()
maven { url = 'https://www.cursemaven.com' }
maven { url = 'https://jitpack.io' }
maven { url = 'https://server.bbkr.space/artifactory/libs-release' }
maven {
name = "Ladysnake Libs"
url = "https://dl.bintray.com/ladysnake/libs"
}
}
def includeCompile(str) {
def dep
project.dependencies {
dep = modImplementation(str) {
exclude module: "fabric-api"
}
include(str)
}
project.publishing {
publications {
mavenJava(MavenPublication) {
pom.withXml {
def depsNode = asNode().appendNode("dependencies")
def depNode = depsNode.appendNode("dependency")
depNode.appendNode("groupId", dep.group)
depNode.appendNode("artifactId", dep.name)
depNode.appendNode("version", dep.version)
depNode.appendNode("scope", "compile")
}
}
}
}
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
includeCompile("com.flowpowered:flow-math:1.0.3")
includeCompile("org.jgrapht:jgrapht-core:1.1.0")
includeCompile("com.github.DimensionalDevelopment:poly2tri.java:0.1.1")
includeCompile("com.github.Waterpicker:OpenWorlds:c5a1ced")
includeCompile("io.github.boogiemonster1o1:libcbe:1.1.0")
includeCompile("io.github.cottonmc:LibGui:3.3.2+1.16.4")
includeCompile("me.shedaniel.cloth:config-2:4.8.3")
includeCompile("io.github.onyxstudios:Cardinal-Components-API:2.7.10")
// TODO: Add project id
// modImplementation("curse.maven:worldedit:3039223") // For saving schematics
// modImplementation("curse.maven:wecui:2995033") // Cos why not
modCompileOnly("io.github.prospector:modmenu:1.14.6+build.31") {
exclude module: "fabric-api"
}
modRuntime("io.github.prospector:modmenu:1.14.6+build.31") {
exclude module: "fabric-api"
}
}
version "4.0.0+alpha.4"
archivesBaseName = "dimensional-doors"
sourceSets {
main {
java {
srcDir 'src/main/schematics'
srcDir 'src/main/registry'
srcDir 'src/main/config'
}
}
}
processResources {
filesMatching("fabric.mod.json") {
expand "version": project.version
}
inputs.property "version", project.version
}
artifacts {
archives jar
}