Private
Public Access
1
0

Added mixin support. Updated gitignore.

This commit is contained in:
2025-05-26 20:49:18 +01:00
parent 31f292c081
commit 30024faf89
3 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,14 @@
buildscript {
repositories {
// These repositories are only for Gradle plugins, put any other repositories in the repository block further below
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
mavenCentral()
}
dependencies {
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
}
}
plugins {
id 'eclipse'
id 'idea'
@ -5,6 +16,8 @@ plugins {
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
}
apply plugin: 'org.spongepowered.mixin'
group = mod_group_id
version = mod_version
@ -58,6 +71,12 @@ minecraft {
}
}
mixin {
add sourceSets.main, "${mod_id}.refmap.json"
config "${mod_id}.mixins.json"
}
sourceSets.main.resources {
srcDir 'src/generated/resources'
}
@ -66,6 +85,7 @@ repositories {}
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
}
tasks.named('processResources', ProcessResources).configure {