init
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
plugins {
|
||||||
|
// see https://fabricmc.net/develop/ for new versions
|
||||||
|
id 'net.fabricmc.fabric-loom-remap' version '1.16-SNAPSHOT' apply false
|
||||||
|
// see https://projects.neoforged.net/neoforged/moddevgradle for new versions
|
||||||
|
id 'net.neoforged.moddev' version '2.0.140' apply false
|
||||||
|
// see // https://github.com/modmuss50/mod-publish-plugin for new versions
|
||||||
|
id "me.modmuss50.mod-publish-plugin" version "1.1.0" apply false
|
||||||
|
|
||||||
|
id 'com.diffplug.spotless' version '7.2.1'
|
||||||
|
id "checkstyle"
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
|
spotless {
|
||||||
|
format 'misc', {
|
||||||
|
target '*.gradle', '.gitattributes', '.gitignore'
|
||||||
|
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
leadingTabsToSpaces()
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
|||||||
|
#Mon May 11 11:35:36 EEST 2026
|
||||||
|
gradle.version=9.5.0
|
||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
|||||||
|
plugins {
|
||||||
|
id 'groovy-gradle-plugin'
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,45 @@
|
|||||||
|
//CHECKSTYLE:OFF
|
||||||
|
import org.gradle.util.GradleVersion;
|
||||||
|
import org.gradle.groovy.scripts.BasicScript;
|
||||||
|
import org.gradle.groovy.scripts.ScriptSource;
|
||||||
|
import org.gradle.groovy.scripts.TextResourceScriptSource;
|
||||||
|
import org.gradle.internal.resource.StringTextResource;
|
||||||
|
/**
|
||||||
|
* Precompiled multiloader-common script plugin.
|
||||||
|
**/
|
||||||
|
@SuppressWarnings("DefaultPackage")
|
||||||
|
public class MultiloaderCommonPlugin implements org.gradle.api.Plugin<org.gradle.api.internal.project.ProjectInternal> {
|
||||||
|
private static final String MIN_SUPPORTED_GRADLE_VERSION = "7.0";
|
||||||
|
@Override
|
||||||
|
public void apply(org.gradle.api.internal.project.ProjectInternal target) {
|
||||||
|
assertSupportedByCurrentGradleVersion();
|
||||||
|
try {
|
||||||
|
Class<? extends BasicScript> pluginsBlockClass = Class.forName("cp_precompiled_MultiloaderCommon").asSubclass(BasicScript.class);
|
||||||
|
BasicScript pluginsBlockScript = pluginsBlockClass.getDeclaredConstructor().newInstance();
|
||||||
|
pluginsBlockScript.setScriptSource(scriptSource(pluginsBlockClass));
|
||||||
|
pluginsBlockScript.init(target, target.getServices());
|
||||||
|
pluginsBlockScript.run();
|
||||||
|
target.getPluginManager().apply("java-library");
|
||||||
|
target.getPluginManager().apply("maven-publish");
|
||||||
|
target.getPluginManager().apply("checkstyle");
|
||||||
|
|
||||||
|
|
||||||
|
Class<? extends BasicScript> precompiledScriptClass = Class.forName("precompiled_MultiloaderCommon").asSubclass(BasicScript.class);
|
||||||
|
BasicScript script = precompiledScriptClass.getDeclaredConstructor().newInstance();
|
||||||
|
script.setScriptSource(scriptSource(precompiledScriptClass));
|
||||||
|
script.init(target, target.getServices());
|
||||||
|
script.run();
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private static ScriptSource scriptSource(Class<?> scriptClass) {
|
||||||
|
return new TextResourceScriptSource(new StringTextResource(scriptClass.getSimpleName(), ""));
|
||||||
|
}
|
||||||
|
private static void assertSupportedByCurrentGradleVersion() {
|
||||||
|
if (GradleVersion.current().getBaseVersion().compareTo(GradleVersion.version(MIN_SUPPORTED_GRADLE_VERSION)) < 0) {
|
||||||
|
throw new RuntimeException("Precompiled Groovy script plugins built by Gradle 9.5.0 require Gradle "+MIN_SUPPORTED_GRADLE_VERSION+" or higher");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//CHECKSTYLE:ON
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
//CHECKSTYLE:OFF
|
||||||
|
import org.gradle.util.GradleVersion;
|
||||||
|
import org.gradle.groovy.scripts.BasicScript;
|
||||||
|
import org.gradle.groovy.scripts.ScriptSource;
|
||||||
|
import org.gradle.groovy.scripts.TextResourceScriptSource;
|
||||||
|
import org.gradle.internal.resource.StringTextResource;
|
||||||
|
/**
|
||||||
|
* Precompiled multiloader-loader script plugin.
|
||||||
|
**/
|
||||||
|
@SuppressWarnings("DefaultPackage")
|
||||||
|
public class MultiloaderLoaderPlugin implements org.gradle.api.Plugin<org.gradle.api.internal.project.ProjectInternal> {
|
||||||
|
private static final String MIN_SUPPORTED_GRADLE_VERSION = "7.0";
|
||||||
|
@Override
|
||||||
|
public void apply(org.gradle.api.internal.project.ProjectInternal target) {
|
||||||
|
assertSupportedByCurrentGradleVersion();
|
||||||
|
try {
|
||||||
|
Class<? extends BasicScript> pluginsBlockClass = Class.forName("cp_precompiled_MultiloaderLoader").asSubclass(BasicScript.class);
|
||||||
|
BasicScript pluginsBlockScript = pluginsBlockClass.getDeclaredConstructor().newInstance();
|
||||||
|
pluginsBlockScript.setScriptSource(scriptSource(pluginsBlockClass));
|
||||||
|
pluginsBlockScript.init(target, target.getServices());
|
||||||
|
pluginsBlockScript.run();
|
||||||
|
target.getPluginManager().apply("multiloader-common");
|
||||||
|
target.getPluginManager().apply("me.modmuss50.mod-publish-plugin");
|
||||||
|
|
||||||
|
|
||||||
|
Class<? extends BasicScript> precompiledScriptClass = Class.forName("precompiled_MultiloaderLoader").asSubclass(BasicScript.class);
|
||||||
|
BasicScript script = precompiledScriptClass.getDeclaredConstructor().newInstance();
|
||||||
|
script.setScriptSource(scriptSource(precompiledScriptClass));
|
||||||
|
script.init(target, target.getServices());
|
||||||
|
script.run();
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private static ScriptSource scriptSource(Class<?> scriptClass) {
|
||||||
|
return new TextResourceScriptSource(new StringTextResource(scriptClass.getSimpleName(), ""));
|
||||||
|
}
|
||||||
|
private static void assertSupportedByCurrentGradleVersion() {
|
||||||
|
if (GradleVersion.current().getBaseVersion().compareTo(GradleVersion.version(MIN_SUPPORTED_GRADLE_VERSION)) < 0) {
|
||||||
|
throw new RuntimeException("Precompiled Groovy script plugins built by Gradle 9.5.0 require Gradle "+MIN_SUPPORTED_GRADLE_VERSION+" or higher");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//CHECKSTYLE:ON
|
||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user