Add Manifold Preprocessor plugin to gradle
This commit is contained in:
@@ -9,6 +9,7 @@ buildscript {
|
||||
plugins {
|
||||
id "architectury-plugin" version "3.4-SNAPSHOT"
|
||||
id "dev.architectury.loom" version "0.10.0-SNAPSHOT" apply false
|
||||
id "systems.manifold.manifold-gradle-plugin" version "0.0.2-alpha"
|
||||
}
|
||||
|
||||
apply plugin: JarMergerPlugin
|
||||
@@ -34,6 +35,9 @@ subprojects { p ->
|
||||
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
|
||||
// The following line declares the mojmap mappings
|
||||
mappings loom.officialMojangMappings()
|
||||
|
||||
//Manifold
|
||||
annotationProcessor 'systems.manifold:manifold-preprocessor:2022.1.5'
|
||||
|
||||
// Toml
|
||||
implementation("com.electronwill.night-config:toml:${rootProject.toml_version}")
|
||||
@@ -142,6 +146,10 @@ allprojects { p ->
|
||||
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
|
||||
// Add Manifold Preprocessor
|
||||
options.compilerArgs += ['-Xplugin:Manifold']
|
||||
|
||||
if (p != project(":core")) {
|
||||
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
|
||||
options.release = 17
|
||||
|
||||
@@ -28,11 +28,17 @@ import com.seibel.lod.core.wrapperInterfaces.config.ILodConfigWrapperSingleton.I
|
||||
import com.seibel.lod.core.wrapperInterfaces.config.ILodConfigWrapperSingleton.IClient.IMultiplayer;
|
||||
import com.seibel.lod.core.wrapperInterfaces.config.ILodConfigWrapperSingleton.IClient.IWorldGenerator;
|
||||
|
||||
|
||||
|
||||
#define CONFIG
|
||||
|
||||
/**
|
||||
* This handles any configuration the user has access to.
|
||||
* @author coolGi2007
|
||||
* @version 12-12-2021
|
||||
*/
|
||||
|
||||
#if CONFIG
|
||||
public class Config
|
||||
//public class Config extends TinyConfig
|
||||
{
|
||||
@@ -52,7 +58,7 @@ public class Config
|
||||
// |-> Debugging
|
||||
|
||||
// Since the original config system uses forge stuff, that means we have to rewrite the whole config system
|
||||
|
||||
|
||||
@ConfigAnnotations.ScreenEntry
|
||||
public static Client client;
|
||||
|
||||
@@ -286,3 +292,4 @@ public class Config
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user