Rename to OpenGradle
parent
33ed804006
commit
7341575237
|
@ -1,6 +1,6 @@
|
||||||
# fabric-loom
|
# OpenGradle
|
||||||
Gradle plugin for Fabric
|
Gradle plugin for OpenModLoader
|
||||||
|
|
||||||
Usage: `gradlew setupFabric idea`
|
Usage: `gradlew setup idea`
|
||||||
(Prefix with `./` on macOS and Linux)
|
(Use `./gradle` on macOS and Linux)
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,8 @@ targetCompatibility = 1.8
|
||||||
apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/maven.gradle'
|
apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/maven.gradle'
|
||||||
apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/license.gradle'
|
apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/license.gradle'
|
||||||
|
|
||||||
group = 'net.fabricmc'
|
group = 'com.openmodloader'
|
||||||
archivesBaseName = project.name.toLowerCase()
|
archivesBaseName = project.name
|
||||||
version = '0.0.7-SNAPSHOT'
|
version = '0.0.7-SNAPSHOT'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
name = fabric-loom
|
name = OpenGradle
|
||||||
description = The Gradle plugin for Fabric
|
description = The Gradle plugin for OpenModLoader
|
||||||
url = https://github.com/FabricMC/fabric-loom
|
url = https://github.com/OpenModLoader/OpenGradle
|
||||||
|
|
|
@ -39,7 +39,6 @@ import org.gradle.api.artifacts.repositories.MavenArtifactRepository;
|
||||||
import org.gradle.api.plugins.JavaPlugin;
|
import org.gradle.api.plugins.JavaPlugin;
|
||||||
import org.gradle.api.plugins.JavaPluginConvention;
|
import org.gradle.api.plugins.JavaPluginConvention;
|
||||||
import org.gradle.api.tasks.SourceSet;
|
import org.gradle.api.tasks.SourceSet;
|
||||||
import org.gradle.api.tasks.compile.JavaCompile;
|
|
||||||
import org.gradle.api.tasks.javadoc.Javadoc;
|
import org.gradle.api.tasks.javadoc.Javadoc;
|
||||||
import org.gradle.plugins.ide.eclipse.model.EclipseModel;
|
import org.gradle.plugins.ide.eclipse.model.EclipseModel;
|
||||||
import org.gradle.plugins.ide.idea.model.IdeaModel;
|
import org.gradle.plugins.ide.idea.model.IdeaModel;
|
||||||
|
@ -48,8 +47,6 @@ import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
public class AbstractPlugin implements Plugin<Project> {
|
public class AbstractPlugin implements Plugin<Project> {
|
||||||
protected Project project;
|
protected Project project;
|
||||||
|
@ -229,7 +226,7 @@ public class AbstractPlugin implements Plugin<Project> {
|
||||||
});
|
});
|
||||||
|
|
||||||
project.afterEvaluate(project12 -> {
|
project.afterEvaluate(project12 -> {
|
||||||
project12.getTasks().getByName("idea").dependsOn(project12.getTasks().getByName("cleanIdea")).dependsOn(project12.getTasks().getByName("setupFabric")).dependsOn(project12.getTasks().getByName("extractNatives"));
|
project12.getTasks().getByName("idea").dependsOn(project12.getTasks().getByName("cleanIdea")).dependsOn(project12.getTasks().getByName("setup")).dependsOn(project12.getTasks().getByName("extractNatives"));
|
||||||
project12.getTasks().getByName("idea").finalizedBy(project12.getTasks().getByName("genIdeaWorkspace"));
|
project12.getTasks().getByName("idea").finalizedBy(project12.getTasks().getByName("genIdeaWorkspace"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class LoomGradlePlugin extends AbstractPlugin {
|
||||||
makeTask("mergeJars", MergeJarsTask.class).dependsOn("download");
|
makeTask("mergeJars", MergeJarsTask.class).dependsOn("download");
|
||||||
makeTask("mapJars", MapJarsTask.class).dependsOn("mergeJars");
|
makeTask("mapJars", MapJarsTask.class).dependsOn("mergeJars");
|
||||||
makeTask("processMods", ProcessModsTask.class).dependsOn("mapJars");
|
makeTask("processMods", ProcessModsTask.class).dependsOn("mapJars");
|
||||||
makeTask("setupFabric", DefaultTask.class).dependsOn("processMods");
|
makeTask("setup", DefaultTask.class).dependsOn("processMods");
|
||||||
|
|
||||||
makeTask("extractNatives", ExtractNativesTask.class).dependsOn("download");
|
makeTask("extractNatives", ExtractNativesTask.class).dependsOn("download");
|
||||||
makeTask("genIdeaWorkspace", GenIdeaProjectTask.class).dependsOn("idea");
|
makeTask("genIdeaWorkspace", GenIdeaProjectTask.class).dependsOn("idea");
|
||||||
|
|
Loading…
Reference in New Issue