构建脚本修改(修复publish后没有refmap问题)
This commit is contained in:
parent
ad275c4d37
commit
ebec0d5dee
23
build.gradle
23
build.gradle
|
|
@ -205,23 +205,7 @@ tasks.named('javadoc', Javadoc).configure {
|
|||
options.addBooleanOption('Xdoclint:none', true)
|
||||
options.addStringOption('doctitle', "${mod_id} ${minecraft_version} ${mod_version} Javadoc")
|
||||
}
|
||||
// =====================(class/ java) =====================
|
||||
tasks.register('deobfJar', Jar) {
|
||||
from(sourceSets.main.output) // class
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
manifest {
|
||||
attributes([
|
||||
'Specification-Title' : mod_id,
|
||||
'Specification-Vendor' : mod_authors,
|
||||
'Specification-Version' : '1',
|
||||
'Implementation-Title' : project.name,
|
||||
'Implementation-Version' : archiveVersion,
|
||||
'Implementation-Vendor' : mod_authors,
|
||||
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
|
||||
])
|
||||
}
|
||||
dependsOn classes
|
||||
}
|
||||
|
||||
tasks.register('sourceJar', Jar) {
|
||||
from(sourceSets.main.allSource) // java
|
||||
archiveFileName = "${mod_id}-${minecraft_version}-${mod_version}-sources.jar"
|
||||
|
|
@ -385,6 +369,9 @@ var generateModMetadata = tasks.register("generateModMetadata", ProcessResources
|
|||
sourceSets.main.resources.srcDir generateModMetadata
|
||||
legacyForge.ideSyncTask generateModMetadata
|
||||
|
||||
tasks.named('publish') {
|
||||
dependsOn build
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
tasks.named('reobfJar') {
|
||||
|
|
@ -406,7 +393,7 @@ publishing {
|
|||
mavenJava(MavenPublication) {
|
||||
artifactId = mod_id
|
||||
|
||||
artifact deobfJar
|
||||
artifact reobfJar
|
||||
artifact sourceJar
|
||||
artifact javadocJar
|
||||
artifact apiJar
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ function initializeCoreMod() {
|
|||
var returnLabel = new LabelNode();
|
||||
|
||||
var checkInstructions = ASMAPI.listOf(
|
||||
// 检查我们的钩子
|
||||
// 检查钩子
|
||||
new VarInsnNode(Opcodes.ALOAD, 1), // 加载 Mob 参数
|
||||
new VarInsnNode(Opcodes.ALOAD, 2), // 加载 Frustum 参数
|
||||
new MethodInsnNode(
|
||||
|
|
@ -122,8 +122,6 @@ function initializeCoreMod() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
ASMAPI.log("INFO", "使用备用方案修改方法");
|
||||
}
|
||||
|
||||
return method;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user