This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
438 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,215 +1,25 @@ | ||
################# | ||
## Eclipse | ||
################# | ||
|
||
*.pydevproject | ||
.project | ||
.metadata | ||
bin/ | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.classpath | ||
.settings/ | ||
.loadpath | ||
|
||
# External tool builders | ||
.externalToolBuilders/ | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# CDT-specific | ||
.cproject | ||
|
||
# PDT-specific | ||
.buildpath | ||
|
||
|
||
################# | ||
## Visual Studio | ||
################# | ||
|
||
## Ignore Visual Studio temporary files, build results, and | ||
## files generated by popular Visual Studio add-ons. | ||
|
||
# User-specific files | ||
*.suo | ||
*.user | ||
*.sln.docstates | ||
|
||
# Build results | ||
|
||
[Dd]ebug/ | ||
[Rr]elease/ | ||
x64/ | ||
build/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
|
||
# MSTest test Results | ||
[Tt]est[Rr]esult*/ | ||
[Bb]uild[Ll]og.* | ||
|
||
*_i.c | ||
*_p.c | ||
*.ilk | ||
*.meta | ||
*.obj | ||
*.pch | ||
*.pdb | ||
*.pgc | ||
*.pgd | ||
*.rsp | ||
*.sbr | ||
*.tlb | ||
*.tli | ||
*.tlh | ||
*.tmp | ||
*.tmp_proj | ||
*.log | ||
*.vspscc | ||
*.vssscc | ||
.builds | ||
*.pidb | ||
*.log | ||
*.scc | ||
|
||
# Visual C++ cache files | ||
ipch/ | ||
*.aps | ||
*.ncb | ||
*.opensdf | ||
*.sdf | ||
*.cachefile | ||
|
||
# Visual Studio profiler | ||
*.psess | ||
*.vsp | ||
*.vspx | ||
|
||
# Guidance Automation Toolkit | ||
*.gpState | ||
|
||
# ReSharper is a .NET coding add-in | ||
_ReSharper*/ | ||
*.[Rr]e[Ss]harper | ||
|
||
# TeamCity is a build add-in | ||
_TeamCity* | ||
|
||
# DotCover is a Code Coverage Tool | ||
*.dotCover | ||
|
||
# NCrunch | ||
*.ncrunch* | ||
.*crunch*.local.xml | ||
|
||
# Installshield output folder | ||
[Ee]xpress/ | ||
|
||
# DocProject is a documentation generator add-in | ||
DocProject/buildhelp/ | ||
DocProject/Help/*.HxT | ||
DocProject/Help/*.HxC | ||
DocProject/Help/*.hhc | ||
DocProject/Help/*.hhk | ||
DocProject/Help/*.hhp | ||
DocProject/Help/Html2 | ||
DocProject/Help/html | ||
|
||
# Click-Once directory | ||
publish/ | ||
|
||
# Publish Web Output | ||
*.Publish.xml | ||
*.pubxml | ||
|
||
# NuGet Packages Directory | ||
## TODO: If you have NuGet Package Restore enabled, uncomment the next line | ||
#packages/ | ||
|
||
# Windows Azure Build Output | ||
csx | ||
*.build.csdef | ||
|
||
# Windows Store app package directory | ||
AppPackages/ | ||
|
||
# Others | ||
sql/ | ||
*.Cache | ||
ClientBin/ | ||
[Ss]tyle[Cc]op.* | ||
~$* | ||
*~ | ||
*.dbmdl | ||
*.[Pp]ublish.xml | ||
*.pfx | ||
*.publishsettings | ||
|
||
# RIA/Silverlight projects | ||
Generated_Code/ | ||
|
||
# Backup & report files from converting an old project file to a newer | ||
# Visual Studio version. Backup files are not needed, because we have git ;-) | ||
_UpgradeReport_Files/ | ||
Backup*/ | ||
UpgradeLog*.XML | ||
UpgradeLog*.htm | ||
|
||
# SQL Server files | ||
App_Data/*.mdf | ||
App_Data/*.ldf | ||
|
||
############# | ||
## Windows detritus | ||
############# | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Mac crap | ||
#ant stuff | ||
/bin/ | ||
/download/ | ||
#Remove OS generated garbage | ||
*/.DS_Store | ||
.DS_Store | ||
|
||
|
||
############# | ||
## Python | ||
############# | ||
|
||
*.py[co] | ||
|
||
# Packages | ||
*.egg | ||
*.egg-info | ||
dist/ | ||
build/ | ||
eggs/ | ||
parts/ | ||
var/ | ||
sdist/ | ||
develop-eggs/ | ||
.installed.cfg | ||
|
||
# Installer logs | ||
pip-log.txt | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.tox | ||
|
||
#Translations | ||
*.mo | ||
|
||
#Mr Developer | ||
.mr.developer.cfg | ||
.DS_Store? | ||
.Spotlight-V100 | ||
.Trashes | ||
Icon? | ||
ehthumbs.db | ||
Thumbs.db | ||
#gradle stuff | ||
/.gradle | ||
/build/ | ||
/run/ | ||
#IDEA files from Gradle | ||
.idea/ | ||
/*.iml | ||
/*.ipr | ||
/*.iws | ||
#Vim backups | ||
*~ | ||
#manual version override | ||
version.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
/* | ||
* RecMod | ||
* Master build file | ||
* Based on TConstruct's master build file | ||
* Authors: Sunstrike, ProgWML6 | ||
* Help from AbrarSyed | ||
*/ | ||
|
||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
maven { | ||
name = 'ForgeFS' | ||
url = 'http://files.minecraftforge.net/maven' | ||
} | ||
maven { | ||
name = "sonatype" | ||
url = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
} | ||
|
||
} | ||
dependencies { | ||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT' | ||
} | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { | ||
name 'ForgeFS' | ||
url 'http://files.minecraftforge.net/maven' | ||
} | ||
} | ||
|
||
|
||
apply plugin: 'forge' | ||
// define the properties file | ||
ext.configFile = file "build.properties" | ||
|
||
configFile.withReader { | ||
// read config. it shall from now on be referenced as simply config or as project.config | ||
def prop = new Properties() | ||
prop.load(it) | ||
project.ext.config = new ConfigSlurper().parse prop | ||
} | ||
ext.artifact_version_override = 'NotUsed' | ||
//gitignored config file -- if this has the entry for override it will override the version for local builds | ||
//create a file called version.properties with the line artifact_version_override=NotUsed | ||
//replace NotUsed w/ version #'s for manual local overrides | ||
ext.configFile2 = file "version.properties" | ||
if (configFile2.exists()){ | ||
configFile2.withReader { | ||
def prop2 = new Properties() | ||
prop2.load(it) | ||
ext.GIVersionFL = new ConfigSlurper().parse prop2 | ||
if (GIVersionFL != null){ | ||
project.artifact_version_override = GIVersionFL.artifact_version_override | ||
} | ||
} | ||
} | ||
|
||
|
||
// sets version to the slimeKnights default version format | ||
task buildInfo { | ||
def cmd = "git rev-parse --short HEAD" | ||
def proc = cmd.execute() | ||
proc.waitFor() | ||
if (proc.exitValue() == 0) { | ||
ext.revision = proc.text.trim() | ||
} else { | ||
ext.revision = "GITBORK" | ||
} | ||
|
||
if (System.getenv().BUILD_NUMBER != null) { | ||
ext.buildNum = System.getenv().BUILD_NUMBER | ||
} else { | ||
ext.buildNum = "DEV" | ||
} | ||
} | ||
ext.artifact_version = 'NFG' | ||
if (System.getenv().ARTIFACT_VERSION == null && artifact_version_override == 'NotUsed') { | ||
artifact_version = "${project.buildInfo.buildNum}.${project.buildInfo.revision}" | ||
} | ||
if (System.getenv().ARTIFACT_VERSION != null && artifact_version_override == 'NotUsed') { | ||
artifact_version = "${system.getenv().ARTIFACT_VERSION}" | ||
} | ||
if (artifact_version_override != 'NotUsed') { | ||
artifact_version = "${artifact_version_override}" | ||
} | ||
version = "${config.minecraft_version}-${artifact_version}" | ||
|
||
minecraft { | ||
version = config.minecraft_version + "-" + config.forge_version | ||
assetDir = 'run/assets' | ||
replace '${version}', project.version | ||
} | ||
|
||
|
||
sourceSets { | ||
main { | ||
resources { | ||
srcDir 'resources' | ||
} | ||
java { | ||
srcDir 'src' | ||
} | ||
} | ||
} | ||
processResources | ||
{ | ||
// replace stuff in text files, not binary ones. | ||
from(sourceSets.main.resources.srcDirs) { | ||
include '**/*.info' | ||
// replace version and MCVersion | ||
expand 'version':artifact_version,'MCversion':config.minecraft_version | ||
} | ||
|
||
// copy everything else, thats not text | ||
from(sourceSets.main.resources.srcDirs) { | ||
exclude '**/*.info' | ||
} | ||
} | ||
|
||
// because the normal output has been made to be obfuscated | ||
task deobfJar(type: Jar) { | ||
from sourceSets.main.output | ||
classifier = 'deobf' | ||
} | ||
artifacts { | ||
archives deobfJar | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minecraft_version=1.6.4 | ||
forge_version=9.11.1.964 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Thu Nov 21 14:14:24 GMT 2013 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-bin.zip |
Oops, something went wrong.