Skip to content

Commit

Permalink
Updating to 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
szszss committed Feb 20, 2016
1 parent da06003 commit 9ac9bef
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ compileJava
options.encoding = "UTF-8"
}
sourceCompatibility = 1.6
version = '1.2.0'
version = '1.2.1'

repositories {
mavenCentral()
Expand All @@ -24,5 +24,5 @@ repositories {

dependencies {
compile gradleApi()
compile 'net.minecraftforge.gradle:ForgeGradle:2.0.2'
}
compile 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ else if(name.equals("deobfDeps"))
else if(name.equals("local"))
{
local = (FlatDirectoryArtifactRepository)artifactRepository;
local.setName("TweakerMcRepo");
//local.setName("TweakerMcRepo");
hasFlat = true;
}
}
Expand All @@ -101,7 +101,7 @@ public void execute(FlatDirectoryArtifactRepository repo)
}
}
//For debug
for(Object o : proj.getRepositories())
/*for(Object o : proj.getRepositories())
{
AbstractArtifactRepository repository = (AbstractArtifactRepository)o;
System.out.println("======================");
Expand All @@ -117,7 +117,7 @@ else if(repository instanceof DefaultFlatDirArtifactRepository)
System.out.println(file);
}
}
}
}*/

/*proj.getRepositories().clear();
final String repoDir = plugin.delayedDirtyFilePublic("this", "doesnt", "matter").call().getParentFile().getAbsolutePath();
Expand Down Expand Up @@ -145,11 +145,6 @@ else if(repository instanceof DefaultFlatDirArtifactRepository)
downloadServer.setUrl(plugin.delayedStringPublic(reposExtension.getMcServerUrl()));
}

ObtainFernFlowerTask mcpTask = (ObtainFernFlowerTask)(proj.getTasksByName(Constants.TASK_DL_FERNFLOWER, false).toArray()[0]);
{
mcpTask.setMcpUrl(plugin.delayedStringPublic(reposExtension.getMcpUrl()));
}

EtagDownloadTask getAssetsIndex = (EtagDownloadTask)(proj.getTasksByName(Constants.TASK_DL_ASSET_INDEX, false).toArray()[0]);
{
getAssetsIndex.setUrl(plugin.delayedStringPublic(reposExtension.getAssestIndexUrl()));
Expand Down
21 changes: 19 additions & 2 deletions src/main/java/net/hakugyokurou/fgow/plugin/FgowUserPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import java.io.File;
import java.lang.reflect.Field;
import java.util.List;

import org.gradle.api.internal.file.collections.SimpleFileCollection;
import org.gradle.api.tasks.JavaExec;
import org.gradle.api.tasks.bundling.Jar;
Expand Down Expand Up @@ -103,12 +105,14 @@ else if(strUrl.equals(forgeJsonUrl) && project.hasProperty("forgeJsonUrl"))
{
strUrl = project.property("forgeJsonUrl").toString();
}
else if(strUrl.equals("https://www.abrarsyed.com/ForgeGradleVersion.json") && project.hasProperty("forgeVersionUrl"))
else if(strUrl.equals("https://www.abrarsyed.com/ForgeGradleVersion.json") && project.hasProperty("fgVersionUrl"))
{
strUrl = project.property("forgeVersionUrl").toString();
strUrl = project.property("fgVersionUrl").toString();
}
return super.getWithEtag(strUrl, cache, etagFile);
}



//hack forge json
//UNUSED.
Expand All @@ -132,6 +136,19 @@ else if(strUrl.equals("https://www.abrarsyed.com/ForgeGradleVersion.json") && pr
}
}*/

@Override
protected void doFGVersionCheck(List<String> outLines) {
if(project.hasProperty("skipFGVersionCheck"))
{
Object prop = project.property("skipFGVersionCheck");
if(prop instanceof Boolean && ((Boolean)prop).booleanValue() == true)
return;
if(prop instanceof String && ((String)prop).equalsIgnoreCase("true"))
return;
}
super.doFGVersionCheck(outLines);
}

public DelayedString delayedStringPublic(String path) {
return delayedString(path);
}
Expand Down

0 comments on commit 9ac9bef

Please sign in to comment.