Rename to OpenGradle

dev/0.11
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 # 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)

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/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 {

View File

@ -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

View File

@ -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"));
}); });

View File

@ -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");