[build] Fix
This commit is contained in:
parent
6bc0209815
commit
46938a3798
@ -1,7 +1,7 @@
|
|||||||
import io.gitlab.jfronny.scripts.*
|
import io.gitlab.jfronny.scripts.*
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("jfmod") version "1.0-SNAPSHOT"
|
id("jfmod") version "1.1-SNAPSHOT"
|
||||||
}
|
}
|
||||||
|
|
||||||
val nonModSubprojects: List<String> by extra
|
val nonModSubprojects: List<String> by extra
|
||||||
|
@ -222,7 +222,7 @@ public class ConfigInjectClassTransformer extends ClassVisitor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public GeneratorAdapter2 method(int access, String name, String descriptor, String signature, String[] exceptions) {
|
public GeneratorAdapter2 method(int access, String name, String descriptor, String signature, String[] exceptions) {
|
||||||
if (BuildMetadata.isRelease && !name.equals(CLINIT)) access |= ACC_SYNTHETIC;
|
if (BuildMetadata.IS_RELEASE && !name.equals(CLINIT)) access |= ACC_SYNTHETIC;
|
||||||
return new GeneratorAdapter2(super.visitMethod(access, name, descriptor, signature, exceptions), access, name, descriptor);
|
return new GeneratorAdapter2(super.visitMethod(access, name, descriptor, signature, exceptions), access, name, descriptor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -110,7 +110,7 @@ public class GeneratorAdapter2 extends GeneratorAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void comment(String comment) {
|
public void comment(String comment) {
|
||||||
if (BuildMetadata.isRelease) return;
|
if (BuildMetadata.IS_RELEASE) return;
|
||||||
push("[Comment/Generator] " + comment);
|
push("[Comment/Generator] " + comment);
|
||||||
pop();
|
pop();
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
pluginManagement {
|
pluginManagement {
|
||||||
repositories {
|
repositories {
|
||||||
maven("https://maven.fabricmc.net/") // FabricMC
|
maven("https://maven.fabricmc.net/") // FabricMC
|
||||||
maven("https://gitlab.com/api/v4/projects/32776914/packages/maven") // CurseGradle
|
|
||||||
maven("https://gitlab.com/api/v4/projects/31672498/packages/maven") // scripts
|
maven("https://gitlab.com/api/v4/projects/31672498/packages/maven") // scripts
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user