[build] Fix

This commit is contained in:
Johannes Frohnmeyer 2022-10-13 20:39:00 +02:00
parent 6bc0209815
commit 46938a3798
Signed by: Johannes
GPG Key ID: E76429612C2929F4
4 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import io.gitlab.jfronny.scripts.*
plugins {
id("jfmod") version "1.0-SNAPSHOT"
id("jfmod") version "1.1-SNAPSHOT"
}
val nonModSubprojects: List<String> by extra

View File

@ -222,7 +222,7 @@ public class ConfigInjectClassTransformer extends ClassVisitor {
}
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);
}
}

View File

@ -110,7 +110,7 @@ public class GeneratorAdapter2 extends GeneratorAdapter {
}
public void comment(String comment) {
if (BuildMetadata.isRelease) return;
if (BuildMetadata.IS_RELEASE) return;
push("[Comment/Generator] " + comment);
pop();
}

View File

@ -1,7 +1,6 @@
pluginManagement {
repositories {
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
gradlePluginPortal()
}