在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):SpongePowered/MixinGradle开源软件地址(OpenSource Url):https://github.com/SpongePowered/MixinGradle开源编程语言(OpenSource Language):Groovy 97.4%开源软件介绍(OpenSource Introduction):MixinGradle is a Gradle plugin which simplifies the build-time complexity of working with the SpongePowered Mixin framework for Java. It currently only supports usage with ForgeGradle. FeaturesMixinGradle automates the following tasks:
Using MixinGradleTo use MixinGradle you must be using ForgeGradle. To configure the plugin for your build:
buildscript {
repositories {
<add source repository here>
}
dependencies {
...
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
}
} Please ensure you are using the correct version of MixinGradle for your ForgeGradle version. Versions are not interchangeable.
apply plugin: 'org.spongepowered.mixin'
mixin {
add sourceSets.main, "main.refmap.json"
add sourceSets.another, "another.refmap.json"
}
sourceSets {
main {
ext.refMap = "main.refmap.json"
}
another {
ext.refMap = "another.refmap.json"
}
}
mixin {
disableTargetExport = true
disableTargetValidator = true
} or simply issuing them as directives: mixin {
disableTargetExport
disableTargetValidator
} You can also set the default obfuscation environment for generated refmaps, this is the obfuscation environment which will be contributed to the refmap's mixin {
// Specify "notch" or "searge" here
defaultObfuscationEnv notch
} Building MixinGradleMixinGradle can of course be built using Gradle. To perform a build simply execute:
To add the compiled jar to your local maven repository, run:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论