diff --git a/build.gradle b/build.gradle index 522edcf..fc903a4 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,7 @@ +plugins { + id 'fabric-loom' version '0.2.0-SNAPSHOT' +} + apply plugin: 'java' apply plugin: 'maven' apply plugin: 'idea' @@ -22,9 +26,11 @@ configurations { } repositories { - maven { url "https://repo.maven.apache.org/maven2" } + maven { url "http://repo.maven.apache.org/maven2" } maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" } - maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } +} + +minecraft { } // includeLibs just says to include the library in the final jar @@ -33,14 +39,14 @@ dependencies { compile group: 'com.google.code.gson', name: 'gson', version:'2.8.2' includeLibs group: 'com.google.inject', name: 'guice', version:'4.0' compile group: 'com.google.inject', name: 'guice', version:'4.0' - compile group: 'com.google.guava', name: 'guava', version: '29.0-jre' + compile "org.bukkit:bukkit:1.13-R0.1-SNAPSHOT" + minecraft "com.mojang:minecraft:19w03c" + mappings "net.fabricmc:yarn:19w03c.6" + modCompile "net.fabricmc:fabric-loader:0.3.3.101" - // For spigot api - implementation "org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT" - - // For bukkit api - implementation "net.md-5:bungeecord-api:1.15-SNAPSHOT" + // Fabric API. This is technically optional, but you probably want it anyway. + modCompile "net.fabricmc:fabric:0.1.4.78" } jar {