Rename to OpenGradle

This commit is contained in:
TheCodedOne 2018-05-11 21:57:42 +01:00
parent 33ed804006
commit 7341575237
5 changed files with 11 additions and 14 deletions

View file

@ -1,6 +1,6 @@
# fabric-loom
Gradle plugin for Fabric
# OpenGradle
Gradle plugin for OpenModLoader
Usage: `gradlew setupFabric idea`
(Prefix with `./` on macOS and Linux)
Usage: `gradlew setup idea`
(Use `./gradle` on macOS and Linux)

View file

@ -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/license.gradle'
group = 'net.fabricmc'
archivesBaseName = project.name.toLowerCase()
group = 'com.openmodloader'
archivesBaseName = project.name
version = '0.0.7-SNAPSHOT'
repositories {

View file

@ -1,3 +1,3 @@
name = fabric-loom
description = The Gradle plugin for Fabric
url = https://github.com/FabricMC/fabric-loom
name = OpenGradle
description = The Gradle plugin for OpenModLoader
url = https://github.com/OpenModLoader/OpenGradle

View file

@ -39,7 +39,6 @@ import org.gradle.api.artifacts.repositories.MavenArtifactRepository;
import org.gradle.api.plugins.JavaPlugin;
import org.gradle.api.plugins.JavaPluginConvention;
import org.gradle.api.tasks.SourceSet;
import org.gradle.api.tasks.compile.JavaCompile;
import org.gradle.api.tasks.javadoc.Javadoc;
import org.gradle.plugins.ide.eclipse.model.EclipseModel;
import org.gradle.plugins.ide.idea.model.IdeaModel;
@ -48,8 +47,6 @@ import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Map;
import java.util.Set;
public class AbstractPlugin implements Plugin<Project> {
protected Project project;
@ -229,7 +226,7 @@ public class AbstractPlugin implements Plugin<Project> {
});
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"));
});

View file

@ -37,7 +37,7 @@ public class LoomGradlePlugin extends AbstractPlugin {
makeTask("mergeJars", MergeJarsTask.class).dependsOn("download");
makeTask("mapJars", MapJarsTask.class).dependsOn("mergeJars");
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("genIdeaWorkspace", GenIdeaProjectTask.class).dependsOn("idea");