Skip to content

Commit f1072b7

Browse files
committed
Merge pull request #61 from TPPI-Dev/Dev
Merge 1.0.0 into master
2 parents e495375 + 073a1d7 commit f1072b7

File tree

247 files changed

+1808
-354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+1808
-354
lines changed

.classpath

Lines changed: 0 additions & 35 deletions
This file was deleted.

.gitignore

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1+
*.class
2+
3+
# Package Files #
4+
*.war
5+
*.ear
6+
/build
7+
/eclipse
18
/bin
2-
*.classpath
39

4-
build.properties
10+
*.mtl
11+
*.classpath
12+
*.project
13+
/.settings
14+
/.gradle
15+
/config
16+
!/src/main/resources
17+
/crash-reports
18+
/logs
19+
/mods
20+
/resourcepacks
21+
/saves
22+
/screenshots
23+
/options.txt
24+
/libs

.project

Lines changed: 0 additions & 17 deletions
This file was deleted.

build.gradle

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
maven {
5+
name = "forge"
6+
url = "http://files.minecraftforge.net/maven"
7+
}
8+
}
9+
dependencies {
10+
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT'
11+
}
12+
}
13+
14+
apply plugin: 'forge'
15+
16+
ext.configFile = file "build.properties"
17+
18+
configFile.withReader {
19+
// Load config. It shall from now be referenced as simply config or project.config
20+
def prop = new Properties()
21+
prop.load(it)
22+
project.ext.config = new ConfigSlurper().parse prop
23+
}
24+
25+
// Finds and sets version data
26+
task buildInfo {
27+
def cmd = "git rev-parse --short HEAD"
28+
def proc = cmd.execute()
29+
proc.waitFor()
30+
if (proc.exitValue() == 0) {
31+
ext.revision = proc.text.trim()
32+
} else {
33+
ext.revision = "GITBORK"
34+
}
35+
36+
if (System.getenv().BUILD_NUMBER != null) {
37+
ext.buildNum = "${System.getenv().BUILD_NUMBER}"
38+
} else {
39+
ext.buildNum = "DEV.${project.buildInfo.revision}"
40+
}
41+
}
42+
ext.artifact_version = 'NFG'
43+
if (System.getenv().ARTIFACT_VERSION == null) {
44+
artifact_version = "${config.mod_version}"
45+
}
46+
if (System.getenv().ARTIFACT_VERSION != null) {
47+
artifact_version = "${system.getenv().ARTIFACT_VERSION}"
48+
}
49+
50+
version = "MC${config.minecraft_version}-${artifact_version}-${System.getenv().BUILD_NUMBER}"
51+
52+
minecraft {
53+
version = "1.6.4-9.11.1.964"
54+
}
55+
56+
dependencies {
57+
compile fileTree(dir: 'libs', include: '*.jar')
58+
}
59+
60+
processResources
61+
{
62+
// replace stuff in mcmod.info, nothing else
63+
from(sourceSets.main.resources.srcDirs) {
64+
include 'mcmod/info'
65+
66+
// replace version and mcversion
67+
expand 'version':project.version, 'mcversion':project.minecraft.version
68+
}
69+
70+
// copy everything else, thats not the mcmod.info
71+
from(sourceSets.main.resources.srcDirs) {
72+
exclude 'mcmod.info'
73+
}
74+
}

build.properties

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Example build.properties file. Feel free to set these values to meet your needs on your system.
2-
#
3-
# dir.mc : Not Required. I use it as a base folder for other properties. This is where all my MC related stuff lives.
4-
dir.mc=
5-
# forge.version : Not Required. This is the path of the folder under my ${dir.mc} folder that I extract the Forge source distribution to.
6-
forge.version=965
7-
# dir.forge : Not Required. The path to the forge folder extracted from the Forge source distribution. I use it in subsequent properties.
8-
dir.forge=E:/Development/Let's Mod/development/forge
9-
#
10-
# dir.project : Required. This is the folder that you pulled the TreeCapitator repo to.
11-
dir.project=E:/Development/Let's Mod/development/eclipse/TPPI-Tweaks
12-
# dir.core.project : Required. This is the folder that you pulled the bspkrsCore repo to.
13-
dir.core.project=
14-
# dir.mcp : Required. The path to the mcp folder created by Forge when running install.cmd or install.sh.
15-
dir.mcp=E:/Development/Let's Mod/development/forge/mcp
16-
# dir.release : Required. The target path where the .jar/.zip files will be created.
17-
dir.release=E:/Mod Builds
1+
minecraft_version=1.6.4
2+
forge_version=9.11.1.964
3+
mod_version=1.0.0

build.xml

Lines changed: 0 additions & 129 deletions
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

49.3 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Tue Oct 29 18:00:54 CDT 2013
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip

0 commit comments

Comments
 (0)