Skip to content

Commit fa1d6a7

Browse files
author
Michael Hillcox
committed
Restructure
1 parent 9d84427 commit fa1d6a7

22 files changed

Lines changed: 113 additions & 0 deletions

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# eclipse
2+
bin
3+
*.launch
4+
.settings
5+
.metadata
6+
.classpath
7+
.project
8+
9+
# idea
10+
out
11+
*.ipr
12+
*.iws
13+
*.iml
14+
.idea
15+
16+
# gradle
17+
build
18+
.gradle
19+
20+
# other
21+
eclipse
22+
run
23+
24+
LICENSE-fml.txt
25+
gradlew
26+
gradlew.bat
27+
gradle/
28+
MinecraftForge-Credits.txt
29+
MinecraftForge-License.txt
30+
Paulscode IBXM Library License.txt
31+
forge-1.8.9-11.15.1.1722-changelog.txt
32+
src/main/java/com/example/examplemod/ExampleMod.java
33+
README.txt
34+
CREDITS-fml.txt
35+
Paulscode SoundSystem CodecIBXM License.txt

build.gradle

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
maven { url = "http://files.minecraftforge.net/maven" }
5+
}
6+
dependencies {
7+
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
8+
}
9+
}
10+
apply plugin: 'net.minecraftforge.gradle.forge'
11+
//Only edit below this line, the above code adds and enables the nessasary things for Forge to be setup.
12+
13+
14+
version = "1.1.0.1"
15+
group= "com.fgtxray.fgtxray" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
16+
archivesBaseName = "fgtxray-1.10.2"
17+
18+
sourceCompatibility = targetCompatibility = "1.6" // Need this here so eclipse task generates correctly.
19+
compileJava {
20+
sourceCompatibility = targetCompatibility = "1.6"
21+
}
22+
23+
minecraft {
24+
version = "1.10.2-12.18.3.2185"
25+
runDir = "run"
26+
27+
// the mappings can be changed at any time, and must be in the following format.
28+
// snapshot_YYYYMMDD snapshot are built nightly.
29+
// stable_# stables are built at the discretion of the MCP team.
30+
// Use non-default mappings at your own risk. they may not allways work.
31+
// simply re-run your setup task after changing the mappings to update your workspace.
32+
mappings = "snapshot_20161111"
33+
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
34+
}
35+
36+
dependencies {
37+
// you may put jars on which you depend on in ./libs
38+
// or you may define them like so..
39+
//compile "some.group:artifact:version:classifier"
40+
//compile "some.group:artifact:version"
41+
42+
// real examples
43+
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
44+
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
45+
46+
// the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
47+
//provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
48+
49+
// the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
50+
// except that these dependencies get remapped to your current MCP mappings
51+
//deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
52+
//deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
53+
54+
// for more info...
55+
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
56+
// http://www.gradle.org/docs/current/userguide/dependency_management.html
57+
58+
}
59+
60+
processResources
61+
{
62+
// this will ensure that this task is redone when the versions change.
63+
inputs.property "version", project.version
64+
inputs.property "mcversion", project.minecraft.version
65+
66+
// replace stuff in mcmod.info, nothing else
67+
from(sourceSets.main.resources.srcDirs) {
68+
include 'mcmod.info'
69+
70+
// replace version and mcversion
71+
expand 'version':project.version, 'mcversion':project.minecraft.version
72+
}
73+
74+
// copy everything else, thats not the mcmod.info
75+
from(sourceSets.main.resources.srcDirs) {
76+
exclude 'mcmod.info'
77+
}
78+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)