diff --git a/build.gradle b/build.gradle index 037b985..ebfd1b5 100644 --- a/build.gradle +++ b/build.gradle @@ -2,10 +2,12 @@ buildscript { repositories { // These repositories are only for Gradle plugins, put any other repositories in the repository block further below maven { url = 'https://maven.minecraftforge.net' } + maven { url = 'https://repo.spongepowered.org/maven' } mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true + classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT' } } // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. @@ -14,7 +16,7 @@ plugins { id 'maven-publish' } apply plugin: 'net.minecraftforge.gradle' - +apply plugin: 'org.spongepowered.mixin' version = '1.18.2-3.10.1.0' group = 'tv.alternerd.vault_tweaks' // http://maven.apache.org/guides/mini/guide-naming-conventions.html @@ -153,6 +155,8 @@ dependencies { // The userdev artifact is a special name and will get all sorts of transformations applied to it. minecraft 'net.minecraftforge:forge:1.18.2-40.2.9' + annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' + // Real mod deobf dependency examples - these get remapped to your current mappings // compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api") // Adds JEI API as a compile dependency // runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}") // Adds the full JEI mod as a runtime dependency @@ -204,3 +208,8 @@ publishing { tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation } + +mixin { + add sourceSets.main, 'mixins.the_vault_tweaks.refmap.json' + config 'mixins.the_vault_tweaks.json' +} \ No newline at end of file