forked from DavidGoldman/NBTEdit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gradleize the project. Changes to CompressedStreamTools.
- Loading branch information
1 parent
5e831da
commit 3a7c828
Showing
10 changed files
with
108 additions
and
4 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
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,74 @@ | ||
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:1.2-SNAPSHOT' | ||
} | ||
} | ||
|
||
apply plugin: 'forge' | ||
|
||
ext.configFile = file "build.properties" | ||
|
||
configFile.withReader { | ||
def prop = new Properties() | ||
prop.load(it) | ||
project.ext.config = new ConfigSlurper().parse prop | ||
} | ||
|
||
version = config.mod_version | ||
group = config.mod_id | ||
archivesBaseName = "ForgeNBTEdit" | ||
|
||
minecraft { | ||
version = config.minecraft_version + "-" + config.forge_version | ||
assetDir = "eclipse/assets" | ||
} | ||
|
||
processResources | ||
{ | ||
from(sourceSets.main.resources.srcDirs) { | ||
include '**/*.info' | ||
include '**/*.properties' | ||
|
||
expand ([ | ||
'mod_version': version, | ||
'mc_version': project.config.minecraft_version, | ||
'mod_id': project.config.mod_id | ||
]) | ||
} | ||
|
||
from(sourceSets.main.resources.srcDirs) { | ||
exclude '**/*.info' | ||
exclude '**/*.properties' | ||
} | ||
} | ||
|
||
|
||
jar { | ||
appendix = 'universal' | ||
} | ||
|
||
task sourceJar(type: Jar) { | ||
from sourceSets.main.allSource | ||
appendix = 'src' | ||
} | ||
|
||
task deobfJar(type: Jar) { | ||
from sourceSets.main.output | ||
appendix = 'deobf' | ||
} | ||
|
||
artifacts { | ||
archives sourceJar | ||
archives deobfJar | ||
} |
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,4 @@ | ||
minecraft_version=1.7.10 | ||
forge_version=10.13.0.1180 | ||
mod_version=1.0.0.test | ||
mod_id=forgenbtedit |
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
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
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
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
File renamed without changes
File renamed without changes
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,14 @@ | ||
[{ | ||
"modid": "${mod_id}", | ||
"name": "ForgeNBTEdit", | ||
"version": "${mod_version}", | ||
"mcversion": "${mc_version}", | ||
|
||
"credits": "", | ||
"authorList": [ "DavidG" ], | ||
"description": "Ingame NBT Editing", | ||
"logoFile": "", | ||
|
||
"parent": "", | ||
"screenshots": [ ] | ||
}] |