DimDoors/build.gradle

96 lines
2.5 KiB
Groovy
Raw Normal View History

2021-01-08 03:38:43 +01:00
plugins {
id 'fabric-loom' version '0.5-SNAPSHOT'
2021-01-25 03:54:24 +01:00
id 'maven-publish'
2021-01-08 03:38:43 +01:00
}
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"
}
2021-01-08 03:38:43 +01:00
}
2021-01-11 03:46:22 +01:00
def includeCompile(str) {
2021-01-25 03:54:24 +01:00
def dep
2021-01-11 03:46:22 +01:00
project.dependencies {
2021-01-25 03:54:24 +01:00
dep = modImplementation(str) {
2021-01-11 03:46:22 +01:00
exclude module: "fabric-api"
}
include(str)
}
2021-01-25 03:54:24 +01:00
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")
}
}
}
}
2021-01-11 03:46:22 +01:00
}
2021-01-08 03:38:43 +01:00
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}"
2021-01-11 03:46:22 +01:00
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")
2021-01-11 03:46:22 +01:00
// TODO: Add project id
// modImplementation("curse.maven:worldedit:3039223") // For saving schematics
// modImplementation("curse.maven:wecui:2995033") // Cos why not
2021-01-08 03:38:43 +01:00
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"
2021-01-10 03:08:01 +01:00
sourceSets {
main {
java {
srcDir 'src/main/schematics'
srcDir 'src/main/registry'
2021-01-11 03:46:22 +01:00
srcDir 'src/main/config'
2021-01-10 03:08:01 +01:00
}
}
}
2021-01-08 03:38:43 +01:00
processResources {
filesMatching("fabric.mod.json") {
expand "version": project.version
}
inputs.property "version", project.version
}
artifacts {
archives jar
}