Skip to content
Permalink
Browse files

Add printing of repositories

  • Loading branch information...
TheTemportalist
TheTemportalist committed Jun 16, 2016
1 parent 9b78e9c commit b2e1a04ede4b7b1bc7df61052f74de74f47b5dd9
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/main/groovy/temportalist/automata/TaskDetailsDisplay.java
@@ -3,10 +3,12 @@
import net.minecraftforge.gradle.user.patcherUser.forge.ForgeExtension;
import org.gradle.api.DefaultTask;
import org.gradle.api.Project;
import org.gradle.api.artifacts.repositories.ArtifactRepository;
import org.gradle.api.tasks.TaskAction;
import org.gradle.api.tasks.TaskExecutionException;
import org.gradle.language.jvm.tasks.ProcessResources;

import java.util.Iterator;
import java.util.Map;

import static java.lang.System.out;
@@ -29,6 +31,15 @@ public void run() throws TaskExecutionException {

out.println();

out.println("Repositories:");
Iterator<ArtifactRepository> iterator = project.getRepositories().iterator();
while (iterator.hasNext()) {
ArtifactRepository repo = iterator.next();
out.println(repo.getName());
}

out.println();

ForgeExtension minecraft = project.getExtensions().findByType(ForgeExtension.class);
if (minecraft != null) {
out.println("Minecraft:");

0 comments on commit b2e1a04

Please sign in to comment.
You can’t perform that action at this time.