This repository has been archived by the owner on Mar 12, 2023. It is now read-only.
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
12 changed files
with
442 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
## Windows | ||
Thumbs.db | ||
|
||
## gradle | ||
/.gradle | ||
/build | ||
|
||
## ForgeGradle | ||
/run | ||
|
||
## eclipse | ||
/.settings | ||
/.metadata | ||
/.classpath | ||
/.project | ||
/eclipse | ||
/bin | ||
|
||
## intellij | ||
/out | ||
/.idea | ||
/atlassian-ide-plugin.xml | ||
/*.ipr | ||
/*.iws | ||
/*.iml | ||
|
||
## Private Stuffs | ||
/private.properties | ||
|
||
## Jars | ||
*.jar | ||
!/gradle/wrapper/gradle-wrapper.jar | ||
!GardenOfGlass.jar | ||
|
||
### OSX (adds a lot of garbage)### | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
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 @@ | ||
sh gradlew | ||
pause |
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,118 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
maven { | ||
name = "forge" | ||
url = "http://files.minecraftforge.net/maven" | ||
} | ||
maven { | ||
name = "sonatype" | ||
url = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
} | ||
} | ||
dependencies { | ||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' | ||
} | ||
} | ||
|
||
apply plugin: 'net.minecraftforge.gradle.forge' | ||
|
||
ext.configFile = file('build.properties') | ||
|
||
ext.config = parseConfig(configFile) | ||
|
||
version = "${config.version}-${config.build_number}" | ||
group = "vazkii.pillar" // http://maven.apache.org/guides/mini/guide-naming-conventions.html | ||
archivesBaseName = config.mod_name | ||
|
||
minecraft { | ||
version = "${config.mc_version}-${config.forge_version}-${config.mc_version_suffix}" | ||
runDir = "eclipse/assets" | ||
|
||
mappings = config.mc_mappings | ||
replace 'GRADLE:BUILD', config.build_number | ||
replace 'GRADLE:VERSION', config.version | ||
|
||
replaceIn 'LibMisc.java' //I may have missed another file, though I can only find it in here. | ||
makeObfSourceJar = false | ||
} | ||
|
||
jar { | ||
exclude "**/*.bat" | ||
exclude "**/*.psd" | ||
} | ||
|
||
processResources { | ||
// replace stuff in mcmod.info, nothing else | ||
from(sourceSets.main.resources.srcDirs) { | ||
include 'mcmod.info' | ||
|
||
// replace version and mcversion | ||
expand 'version': project.version, 'mcversion': config.mc_version | ||
} | ||
|
||
// copy everything else, thats not the mcmod.info | ||
from(sourceSets.main.resources.srcDirs) { | ||
exclude 'mcmod.info', '**/psd/**' | ||
} | ||
} | ||
|
||
task deobfJar(type: Jar) { | ||
from(sourceSets.main.output) | ||
archiveName = "${baseName}-${version}-deobf.${extension}" | ||
} | ||
|
||
artifacts { | ||
archives deobfJar | ||
} | ||
/** | ||
* Increments the buildnumber in your config file, and saves it | ||
*/ | ||
task incrementBuildNumber { | ||
config.build_number = (config.build_number.toString().toInteger()) + 1 | ||
configFile.withWriter { | ||
config.toProperties().store(it, "") | ||
} | ||
} | ||
|
||
// I have no idea what I'm doing | ||
task wtfGradle2(type: Copy) { | ||
from(jar.destinationDir) | ||
into file("${config.dir_output}/wtf") | ||
} | ||
|
||
// Seriously, I'm desperate to make this work | ||
task wtfGradle1(type: Delete) { | ||
dependsOn "wtfGradle2" | ||
delete "${config.dir_output}/wtf/${deobfJar.archiveName}" | ||
} | ||
|
||
task output(type: Copy) { | ||
dependsOn "wtfGradle1" | ||
from(jar.destinationDir) | ||
into file(config.dir_output) | ||
} | ||
|
||
task outputDeobf(type: Copy) { | ||
dependsOn "output" | ||
from(config.dir_output) { | ||
include deobfJar.archiveName | ||
} | ||
into file("${config.dir_output}/deobf") | ||
} | ||
|
||
task sort(type: Delete) { | ||
dependsOn "outputDeobf" | ||
delete "${config.dir_output}/${deobfJar.archiveName}", "${config.dir_output}/wtf" | ||
} | ||
|
||
def parseConfig(File config) { | ||
config.withReader { | ||
def prop = new Properties() | ||
prop.load(it) | ||
return (new ConfigSlurper().parse(prop)) | ||
} | ||
} | ||
|
||
|
||
defaultTasks 'clean', 'build', 'sort', 'incrementBuildNumber' |
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,11 @@ | ||
# | ||
#Fri Jun 24 16:46:09 BST 2016 | ||
mod_name=Pillar | ||
forge_version=12.18.0.1986 | ||
mc_version_suffix=1.10.0 | ||
dir_repo=./ | ||
mc_mappings=snapshot_20160518 | ||
version=1.0 | ||
dir_output=../Build Output/Pillar/ | ||
build_number=1 | ||
mc_version=1.10 |
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 @@ | ||
#Mon Oct 27 18:34:11 EDT 2014 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip |
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,162 @@ | ||
#!/usr/bin/env bash | ||
|
||
############################################################################## | ||
## | ||
## Gradle start up script for UN*X | ||
## | ||
############################################################################## | ||
|
||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | ||
DEFAULT_JVM_OPTS="" | ||
|
||
APP_NAME="Gradle" | ||
APP_BASE_NAME=`basename "$0"` | ||
|
||
# Use the maximum available, or set MAX_FD != -1 to use that value. | ||
MAX_FD="maximum" | ||
|
||
warn ( ) { | ||
echo "$*" | ||
} | ||
|
||
die ( ) { | ||
echo | ||
echo "$*" | ||
echo | ||
exit 1 | ||
} | ||
|
||
# OS specific support (must be 'true' or 'false'). | ||
cygwin=false | ||
msys=false | ||
darwin=false | ||
case "`uname`" in | ||
CYGWIN* ) | ||
cygwin=true | ||
;; | ||
Darwin* ) | ||
darwin=true | ||
;; | ||
MINGW* ) | ||
msys=true | ||
;; | ||
esac | ||
|
||
# For Cygwin, ensure paths are in UNIX format before anything is touched. | ||
if $cygwin ; then | ||
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` | ||
fi | ||
|
||
# Attempt to set APP_HOME | ||
# Resolve links: $0 may be a link | ||
PRG="$0" | ||
# Need this for relative symlinks. | ||
while [ -h "$PRG" ] ; do | ||
ls=`ls -ld "$PRG"` | ||
link=`expr "$ls" : '.*-> \(.*\)$'` | ||
if expr "$link" : '/.*' > /dev/null; then | ||
PRG="$link" | ||
else | ||
PRG=`dirname "$PRG"`"/$link" | ||
fi | ||
done | ||
SAVED="`pwd`" | ||
cd "`dirname \"$PRG\"`/" >&- | ||
APP_HOME="`pwd -P`" | ||
cd "$SAVED" >&- | ||
|
||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar | ||
|
||
# Determine the Java command to use to start the JVM. | ||
if [ -n "$JAVA_HOME" ] ; then | ||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then | ||
# IBM's JDK on AIX uses strange locations for the executables | ||
JAVACMD="$JAVA_HOME/jre/sh/java" | ||
else | ||
JAVACMD="$JAVA_HOME/bin/java" | ||
fi | ||
if [ ! -x "$JAVACMD" ] ; then | ||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME | ||
Please set the JAVA_HOME variable in your environment to match the | ||
location of your Java installation." | ||
fi | ||
else | ||
JAVACMD="java" | ||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | ||
Please set the JAVA_HOME variable in your environment to match the | ||
location of your Java installation." | ||
fi | ||
|
||
# Increase the maximum file descriptors if we can. | ||
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then | ||
MAX_FD_LIMIT=`ulimit -H -n` | ||
if [ $? -eq 0 ] ; then | ||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then | ||
MAX_FD="$MAX_FD_LIMIT" | ||
fi | ||
ulimit -n $MAX_FD | ||
if [ $? -ne 0 ] ; then | ||
warn "Could not set maximum file descriptor limit: $MAX_FD" | ||
fi | ||
else | ||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" | ||
fi | ||
fi | ||
|
||
# For Darwin, add options to specify how the application appears in the dock | ||
if $darwin; then | ||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" | ||
fi | ||
|
||
# For Cygwin, switch paths to Windows format before running java | ||
if $cygwin ; then | ||
APP_HOME=`cygpath --path --mixed "$APP_HOME"` | ||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` | ||
|
||
# We build the pattern for arguments to be converted via cygpath | ||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` | ||
SEP="" | ||
for dir in $ROOTDIRSRAW ; do | ||
ROOTDIRS="$ROOTDIRS$SEP$dir" | ||
SEP="|" | ||
done | ||
OURCYGPATTERN="(^($ROOTDIRS))" | ||
# Add a user-defined pattern to the cygpath arguments | ||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then | ||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" | ||
fi | ||
# Now convert the arguments - kludge to limit ourselves to /bin/sh | ||
i=0 | ||
for arg in "$@" ; do | ||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` | ||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option | ||
|
||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition | ||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` | ||
else | ||
eval `echo args$i`="\"$arg\"" | ||
fi | ||
i=$((i+1)) | ||
done | ||
case $i in | ||
(0) set -- ;; | ||
(1) set -- "$args0" ;; | ||
(2) set -- "$args0" "$args1" ;; | ||
(3) set -- "$args0" "$args1" "$args2" ;; | ||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;; | ||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; | ||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; | ||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; | ||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; | ||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; | ||
esac | ||
fi | ||
|
||
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules | ||
function splitJvmOpts() { | ||
JVM_OPTS=("$@") | ||
} | ||
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS | ||
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" | ||
|
||
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" |
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,29 @@ | ||
/** | ||
* This class was created by <Vazkii>. It's distributed as | ||
* part of the Pillar Mod. Get the Source Code in github: | ||
* https://github.com/Vazkii/Pillar | ||
* | ||
* Pillar is Open Source and distributed under the | ||
* [ADD-LICENSE-HERE] | ||
* | ||
* File Created @ [25/06/2016, 18:03:20 (GMT)] | ||
*/ | ||
package vazkii.pillar; | ||
|
||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.fml.common.SidedProxy; | ||
import vazkii.pillar.proxy.CommonProxy; | ||
|
||
@Mod(modid = Pillar.MOD_ID, name = Pillar.MOD_NAME, version = Pillar.VERSION, dependencies = Pillar.DEPENDENCIES) | ||
public class Pillar { | ||
|
||
public static final String MOD_ID = "Pillar"; | ||
public static final String MOD_NAME = "Pillar"; | ||
public static final String BUILD = "GRADLE:BUILD"; | ||
public static final String VERSION = "GRADLE:VERSION-" + BUILD; | ||
public static final String DEPENDENCIES = "required-after:Forge@[12.17.0.1909,);"; | ||
|
||
@SidedProxy(clientSide = "vazkii.pillar.proxy.ClientProxy", serverSide = "vazkii.pillar.proxy.CommonProxy") | ||
public static CommonProxy proxy; | ||
|
||
} |
Oops, something went wrong.