DimDoors/build.gradle
2021-02-11 20:40:28 +05:30

123 lines
2.7 KiB
Groovy

plugins {
id "fabric-loom" version "0.6-SNAPSHOT"
id "maven-publish"
}
apply plugin: "java"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven {
name = "Fabric maven"
url = "https://maven.fabricmc.net/"
}
maven {
url = "https://www.cursemaven.com"
content {
includeGroup "curse.maven"
}
}
maven {
url = "https://jitpack.io"
}
maven {
url = "https://server.bbkr.space/artifactory/libs-release"
content {
includeGroup "io.github.cottonmc"
}
}
maven {
name = "Ladysnake Libs"
url = "https://dl.bintray.com/ladysnake/libs"
}
maven {
name = "Tehnut maven"
url "https://maven.tehnut.info"
content {
includeGroup "mcp.mobius.waila"
}
}
}
def includeCompile(group, artifact, version) {
project.dependencies {
modCompileOnly("$group:$artifact:$version") {
exclude module: "fabric-api"
}
modRuntime("$group:$artifact:$version") {
exclude module: "fabric-api"
}
include("$group:$artifact:$version")
}
project.publishing {
publications {
mavenJava(MavenPublication) {
pom.withXml {
def depsNode = asNode().appendNode("dependencies")
def depNode = depsNode.appendNode("dependency")
depNode.appendNode("groupId", group)
depNode.appendNode("artifactId", artifact)
depNode.appendNode("version", version)
depNode.appendNode("scope", "compile")
}
}
}
}
}
dependencies {
minecraft "com.mojang:minecraft:21w06a"
mappings "net.fabricmc:yarn:21w06a+build.3:v2"
modImplementation "net.fabricmc:fabric-loader:0.11.1"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.30.2+1.17"
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("io.github.BoogieMonster1O1", "OpenWorlds", "d487eaa")
includeCompile("io.github.cottonmc", "LibGui", "3.3.2+1.16.4")
includeCompile("me.shedaniel.cloth", "config-2", "5.0.0")
includeCompile("io.github.onyxstudios", "Cardinal-Components-API", "3.0.0-nightly.1.17-20w45a")
includeCompile("me.sargunvohra.mcmods", "autoconfig1u", "3.3.1")
modCompileOnly("io.github.prospector:modmenu:2.0.0-beta.1+build.2") {
exclude module: "fabric-api"
}
modRuntime("io.github.prospector:modmenu:2.0.0-beta.1+build.2") {
exclude module: "fabric-api"
}
}
version "4.0.0+alpha.5"
archivesBaseName = "DimensionalDoors"
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
}