mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Gradle pls
This commit is contained in:
parent
841b9ba964
commit
50fa08d73a
3 changed files with 54 additions and 75 deletions
30
build.gradle
30
build.gradle
|
@ -1,10 +1,11 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'java-library'
|
id 'java-library'
|
||||||
id 'fabric-loom' version '0.4-SNAPSHOT'
|
id 'fabric-loom' version '0.4-SNAPSHOT' apply false
|
||||||
id 'maven-publish'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
apply plugin: 'fabric-loom'
|
||||||
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
|
@ -25,6 +26,16 @@ allprojects {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||||
|
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
|
||||||
|
modApi "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||||
|
|
||||||
|
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
|
||||||
|
|
||||||
|
modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||||
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
inputs.property "version", project.version
|
inputs.property "version", project.version
|
||||||
|
|
||||||
|
@ -47,9 +58,6 @@ allprojects {
|
||||||
from sourceSets.main.allSource
|
from sourceSets.main.allSource
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
subprojects {
|
|
||||||
remapJar.enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
refmapName = 'unicopia.mixin.refmap.json'
|
refmapName = 'unicopia.mixin.refmap.json'
|
||||||
|
@ -67,14 +75,6 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
|
||||||
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
|
|
||||||
modApi "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
||||||
|
|
||||||
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
|
|
||||||
|
|
||||||
modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
|
||||||
|
|
||||||
modApi "com.minelittlepony:MineLittlePony:${project.minelp_version}"
|
modApi "com.minelittlepony:MineLittlePony:${project.minelp_version}"
|
||||||
|
|
||||||
modApi "com.minelittlepony:Kirin:${project.kirin_version}"
|
modApi "com.minelittlepony:Kirin:${project.kirin_version}"
|
||||||
|
@ -85,5 +85,9 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
modCompileOnly project(":canvas-compat")
|
modCompileOnly project(":canvas-compat")
|
||||||
|
afterEvaluate {
|
||||||
|
subprojects.each {
|
||||||
include project(":canvas-compat")
|
include project(":canvas-compat")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'java-library'
|
id 'java-library'
|
||||||
id 'fabric-loom'
|
|
||||||
id 'maven-publish'
|
|
||||||
}
|
|
||||||
|
|
||||||
minecraft {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -20,14 +14,6 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
|
||||||
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
|
|
||||||
modApi "net.fabricmc:fabric-loader:${project.loader_version}"
|
|
||||||
|
|
||||||
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
|
|
||||||
|
|
||||||
modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
|
||||||
|
|
||||||
modCompileOnly("grondag:canvas-mc116:${project.canvas_version}") {
|
modCompileOnly("grondag:canvas-mc116:${project.canvas_version}") {
|
||||||
exclude(group: "net.fabricmc.fabric-api")
|
exclude(group: "net.fabricmc.fabric-api")
|
||||||
exclude(module: "fabric-loader")
|
exclude(module: "fabric-loader")
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
pluginManagement {
|
|
||||||
repositories {
|
|
||||||
jcenter()
|
|
||||||
maven {
|
|
||||||
name = 'Fabric'
|
|
||||||
url = 'https://maven.fabricmc.net/'
|
|
||||||
}
|
|
||||||
gradlePluginPortal()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rootProject.name = 'Unicopia'
|
|
Loading…
Reference in a new issue