Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 916d4eb

Browse files
committed
Initial Commit
0 parents  commit 916d4eb

303 files changed

Lines changed: 21008 additions & 0 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

1.7.10/build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/** The root of the build. Exposed for flexibility, but you shouldn't edit it
2+
unless you have to. Edit project.gradle instead. */
3+
4+
buildscript {
5+
repositories {
6+
mavenCentral()
7+
maven {
8+
name = "forge"
9+
url = "https://maven.minecraftforge.net/"
10+
}
11+
maven {
12+
url = "https://jitpack.io"
13+
}
14+
}
15+
dependencies {
16+
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.11'
17+
}
18+
}
19+
20+
apply from: "buildscript/forge-1.7.gradle"
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
/** Applying this file in a Forge build will imbue it with the powers of Mixin. */
3+
4+
repositories {
5+
maven {
6+
name = 'sponge'
7+
url = 'https://repo.spongepowered.org/maven/'
8+
}
9+
}
10+
11+
def embedMixin = !project.hasProperty("nomixin");
12+
13+
if(!embedMixin){
14+
project.version += "+nomixin"
15+
}
16+
17+
dependencies {
18+
if(embedMixin){
19+
embed('org.spongepowered:mixin:0.7.11-SNAPSHOT'){
20+
setTransitive false
21+
}
22+
} else {
23+
compile('org.spongepowered:mixin:0.7.11-SNAPSHOT'){
24+
setTransitive false
25+
}
26+
}
27+
}
28+
29+
ext.outRefMapFile = "mixins.cloudmc.refmap.json"
30+
31+
jar {
32+
manifest {
33+
attributes (
34+
'MixinConfigs': "mixins.cloudmc.json",
35+
'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
36+
'TweakOrder': 0,
37+
38+
// If these two are not set, Forge will not detect the mod, it will only run the mixins
39+
'FMLCorePluginContainsFMLMod': 'true',
40+
'ForceLoadAsMod': 'true',
41+
)
42+
}
43+
44+
from outRefMapFile;
45+
}
46+
47+
def outSrgFile = "${tasks.compileJava.temporaryDir}/outSrg.srg"
48+
49+
afterEvaluate {
50+
tasks.compileJava.options.compilerArgs += ["-AreobfSrgFile=${tasks.reobf.srg}", "-AoutSrgFile=${outSrgFile}", "-AoutRefMapFile=${outRefMapFile}"];
51+
}
52+
53+
reobf {
54+
addExtraSrgFile outSrgFile
55+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/** Common code for Forge 1.7.10 builds */
2+
3+
apply plugin: 'forge'
4+
5+
version = "1.3.2"
6+
group = "dev.cloudmc"
7+
archivesBaseName = "cloudmc"
8+
9+
minecraft {
10+
version = "${project.minecraft_version}-${project.forge_version}"
11+
runDir = "run"
12+
replace '@VERSION@', project.version
13+
}
14+
15+
sourceCompatibility = 1.8
16+
targetCompatibility = 1.8
17+
18+
configurations {
19+
embed
20+
compile.extendsFrom(embed)
21+
shade
22+
compile.extendsFrom(shade)
23+
}
24+
25+
if(project.enable_mixin.toBoolean()) {
26+
apply from: "buildscript/forge-1.7-mixin.gradle"
27+
}
28+
29+
project.ext.override_dependencies = false
30+
31+
jar {
32+
from(sourceSets.main.output);
33+
34+
// embed libraries in jar
35+
from configurations.embed.collect {
36+
exclude '**/LICENSE', '**/LICENSE.txt'
37+
it.isDirectory() ? it : zipTree(it)
38+
}
39+
40+
configurations.shade.each { dep ->
41+
from(project.zipTree(dep)){
42+
exclude '**/LICENSE', '**/LICENSE.txt', 'META-INF', 'META-INF/**'
43+
}
44+
}
45+
}
46+
47+
processResources {
48+
// This will ensure that this task is redone when the versions or any
49+
// user-defined properties change.
50+
inputs.property "version", version
51+
inputs.property "mcversion", project.minecraft.version
52+
inputs.properties project.ext.getProperties()
53+
54+
filesMatching('*.info') {
55+
expand project.properties
56+
}
57+
}
58+
59+
// Ensures that the encoding of source files is set to UTF-8, see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
60+
tasks.withType(JavaCompile) {
61+
options.encoding = "UTF-8"
62+
}
57.8 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

1.7.10/gradlew

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

0 commit comments

Comments
 (0)