Skip to content

Commit 6df8c66

Browse files
committed
Gradle + initial 1.7 conversion
Untested and likely does not work
1 parent bb513df commit 6df8c66

14 files changed

Lines changed: 865 additions & 528 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.gradle/
2+
13
#################
24
## Eclipse
35
#################

build.gradle

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
maven {
5+
name = "forge"
6+
url = "http://files.minecraftforge.net/maven"
7+
}
8+
maven {
9+
name = "sonatype"
10+
url = "https://oss.sonatype.org/content/repositories/snapshots/"
11+
}
12+
}
13+
dependencies {
14+
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
15+
}
16+
}
17+
18+
apply plugin: 'forge'
19+
20+
version = "1.0"
21+
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
22+
archivesBaseName = "modid"
23+
24+
minecraft {
25+
version = "1.7.10-10.13.0.1180"
26+
assetDir = "eclipse/assets"
27+
}
28+
29+
dependencies {
30+
// you may put jars on which you depend on in ./libs
31+
// or you may define them like so..
32+
//compile "some.group:artifact:version:classifier"
33+
//compile "some.group:artifact:version"
34+
35+
// real examples
36+
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
37+
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
38+
39+
// for more info...
40+
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
41+
// http://www.gradle.org/docs/current/userguide/dependency_management.html
42+
43+
}
44+
45+
processResources
46+
{
47+
// this will ensure that this task is redone when the versions change.
48+
inputs.property "version", project.version
49+
inputs.property "mcversion", project.minecraft.version
50+
51+
// replace stuff in mcmod.info, nothing else
52+
from(sourceSets.main.resources.srcDirs) {
53+
include 'mcmod.info'
54+
55+
// replace version and mcversion
56+
expand 'version':project.version, 'mcversion':project.minecraft.version
57+
}
58+
59+
// copy everything else, thats not the mcmod.info
60+
from(sourceSets.main.resources.srcDirs) {
61+
exclude 'mcmod.info'
62+
}
63+
}

gradle/wrapper/gradle-wrapper.jar

49.8 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Wed Jul 02 15:54:47 CDT 2014
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip

gradlew

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/coolalias/structuregenapi/StructureGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
package coolalias.structuregenapi;
18+
package structuregenapi;
1919

2020
import net.minecraft.entity.Entity;
2121
import net.minecraft.world.World;
22-
import coolalias.structuregenapi.util.StructureGeneratorBase;
22+
import structuregenapi.util.StructureGeneratorBase;
2323

2424
/**
2525
* This class is responsible for handling custom block hooks used in your block arrays,

0 commit comments

Comments
 (0)