fix Mixin annotation processor requirements

This commit is contained in:
octarine-noise
2020-01-17 17:34:16 +01:00
parent 802862f151
commit 89a6e36eb2
2 changed files with 3 additions and 9 deletions

View File

@@ -15,20 +15,13 @@ dependencies {
"minecraft"("net.minecraftforge:forge:${properties["mcVersion"]}-${properties["forgeVersion"]}") "minecraft"("net.minecraftforge:forge:${properties["mcVersion"]}-${properties["forgeVersion"]}")
"implementation"("kottle:Kottle:${properties["kottleVersion"]}") "implementation"("kottle:Kottle:${properties["kottleVersion"]}")
"implementation"("org.spongepowered:mixin:0.8-SNAPSHOT") "implementation"("org.spongepowered:mixin:0.8-SNAPSHOT")
annotationProcessor("org.spongepowered:mixin:0.8-SNAPSHOT")
} }
configurations["annotationProcessor"].extendsFrom(configurations["implementation"])
sourceSets { sourceSets {
get("main").ext["refMap"] = "betterfoliage.refmap.json" get("main").ext["refMap"] = "betterfoliage.refmap.json"
get("main").resources.srcDir("src/forge/resources")
get("main").java.srcDir("src/forge/java")
} }
kotlin.sourceSets {
get("main").kotlin.srcDir("src/forge/kotlin")
}
minecraft { minecraft {
mappings(properties["mappingsChannel"] as String, properties["mappingsVersion"] as String) mappings(properties["mappingsChannel"] as String, properties["mappingsVersion"] as String)
@@ -62,4 +55,5 @@ tasks.getByName<Jar>("jar") {
attributes["Implementation-Version"] = project.version attributes["Implementation-Version"] = project.version
} }
exclude("net") exclude("net")
filesMatching("META-INF/mods.toml") { expand(project.properties) }
} }

View File

@@ -4,7 +4,7 @@ org.gradle.daemon=false
group = com.github.octarine-noise group = com.github.octarine-noise
jarName = BetterFoliage-Forge jarName = BetterFoliage-Forge
version = 2.3.1 version = 2.5.0
mcVersion = 1.14.4 mcVersion = 1.14.4
forgeVersion = 28.1.109 forgeVersion = 28.1.109