2013-11-10 03:48:53 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "http://files.minecraftforge.net/maven"
|
|
|
|
}
|
2013-12-10 02:47:55 +00:00
|
|
|
maven {
|
|
|
|
name = "sonatype"
|
|
|
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
|
|
}
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2014-03-25 15:15:42 +00:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-20 00:47:50 +00:00
|
|
|
configurations {
|
|
|
|
deployJars
|
|
|
|
}
|
|
|
|
|
2013-11-10 06:54:57 +00:00
|
|
|
import static net.minecraftforge.gradle.dev.ForgeDevPlugin.*
|
2013-11-10 03:48:53 +00:00
|
|
|
|
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'forgedev'
|
|
|
|
|
|
|
|
repositories {
|
2013-11-17 20:01:31 +00:00
|
|
|
mavenLocal()
|
2013-11-10 03:48:53 +00:00
|
|
|
flatDir {
|
|
|
|
name "fileRepo"
|
|
|
|
dirs "repo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
minecraft {
|
Initial update to 1.8, Super beta. Most rendering related hooks are out due to major changes in 1.8.
Some notes:
Almost all int x, int y, int z parameters have been changed to BlockPos class
ForgeDirection has been removed, replaced by net.minecraft.util.EnumFacing.
All FML classes have moved from packet cpw.mods.fml to net.minecraftforge.fml
Fluid Rendering has been disabled for the time being, to be re-evaulated and a test mod created for it.
Minecraft now uses a Model based system for rendering blocks and Items. The intention is to expand the model format to better suit modder's needed once it is evaulated.
As such, The model loaders from Forge have been removed, to be replaced by expanding vanilla's model format.
Metadata has been extracted out in Minecraft to IBlockState, which holds a list of properties instead of magic number metadata. DO NOT listen to the fearmongering, you can do EVERYTHING with block states you could previously with metadata.
Stencil Bits are disabled entirely by for the main Display, Modders must enable and recreate the FrameBuffer if they wish to use Stencil Bits.
2014-11-26 03:56:35 +00:00
|
|
|
version = '1.8'
|
|
|
|
mcpVersion = '9.10'
|
|
|
|
mappings = 'snapshot_nodoc_20140930'
|
2013-11-10 03:48:53 +00:00
|
|
|
fmlDir = projectDir.getAbsolutePath() + "/fml";
|
Initial update to 1.8, Super beta. Most rendering related hooks are out due to major changes in 1.8.
Some notes:
Almost all int x, int y, int z parameters have been changed to BlockPos class
ForgeDirection has been removed, replaced by net.minecraft.util.EnumFacing.
All FML classes have moved from packet cpw.mods.fml to net.minecraftforge.fml
Fluid Rendering has been disabled for the time being, to be re-evaulated and a test mod created for it.
Minecraft now uses a Model based system for rendering blocks and Items. The intention is to expand the model format to better suit modder's needed once it is evaulated.
As such, The model loaders from Forge have been removed, to be replaced by expanding vanilla's model format.
Metadata has been extracted out in Minecraft to IBlockState, which holds a list of properties instead of magic number metadata. DO NOT listen to the fearmongering, you can do EVERYTHING with block states you could previously with metadata.
Stencil Bits are disabled entirely by for the main Display, Modders must enable and recreate the FrameBuffer if they wish to use Stencil Bits.
2014-11-26 03:56:35 +00:00
|
|
|
mainClass = 'net.minecraftforge.fml.relauncher.ServerLaunchWrapper'
|
|
|
|
tweakClass = 'net.minecraftforge.fml.common.launcher.FMLTweaker'
|
2013-11-10 03:48:53 +00:00
|
|
|
installerVersion = "1.4"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'net.minecraftforge'
|
2013-11-10 06:54:57 +00:00
|
|
|
version = getVersionFromJava(getProject(), 'src/main/java/net/minecraftforge/common/ForgeVersion.java')
|
2013-11-10 03:48:53 +00:00
|
|
|
|
|
|
|
jenkins {
|
|
|
|
job = 'minecraftforge'
|
|
|
|
}
|
|
|
|
|
2014-10-15 06:07:15 +00:00
|
|
|
// crowdin stuff
|
|
|
|
if (project.hasProperty("crowdinKey"))
|
|
|
|
tasks.getLocalizations.apiKey = project.crowdinKey
|
|
|
|
|
|
|
|
|
2013-11-19 20:17:46 +00:00
|
|
|
launch4j {
|
|
|
|
jreMinVersion = '1.6.0'
|
|
|
|
}
|
|
|
|
|
2013-11-10 03:48:53 +00:00
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
2013-12-17 01:18:48 +00:00
|
|
|
add getProject().repositories.mavenLocal()
|
2013-11-20 00:47:50 +00:00
|
|
|
}
|
|
|
|
repositories.mavenDeployer {
|
|
|
|
configuration = configurations.deployJars
|
|
|
|
|
2013-11-10 03:48:53 +00:00
|
|
|
if (project.hasProperty("filesmaven")) {
|
|
|
|
logger.info('Publishing to files server')
|
2013-11-20 00:47:50 +00:00
|
|
|
repository(url: project.filesmaven.url) {
|
|
|
|
authentication(userName: project.filesmaven.username, privateKey: project.filesmaven.key)
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
logger.info('Publishing to repo folder')
|
|
|
|
repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath())
|
|
|
|
}
|
2013-11-10 03:48:53 +00:00
|
|
|
|
2013-11-20 00:47:50 +00:00
|
|
|
pom {
|
|
|
|
groupId = project.group
|
|
|
|
version = project.version
|
|
|
|
artifactId = project.archivesBaseName
|
|
|
|
}
|
|
|
|
pom.project {
|
|
|
|
name project.archivesBaseName
|
|
|
|
packaging 'jar'
|
|
|
|
description 'Minecraft Forge API'
|
|
|
|
url 'https://github.com/MinecraftForge/MinecraftForge'
|
2013-11-10 03:48:53 +00:00
|
|
|
|
2013-11-20 00:47:50 +00:00
|
|
|
scm {
|
|
|
|
url 'https://github.com/MinecraftForge/MinecraftForge'
|
|
|
|
connection 'scm:git:git://github.com/MinecraftForge/MinecraftForge.git'
|
|
|
|
developerConnection 'scm:git:git@github.com:MinecraftForge/MinecraftForge.git'
|
|
|
|
}
|
2013-11-10 03:48:53 +00:00
|
|
|
|
2013-11-20 00:47:50 +00:00
|
|
|
issueManagement {
|
|
|
|
system 'github'
|
|
|
|
url 'https://github.com/MinecraftForge/MinecraftForge/issues'
|
|
|
|
}
|
2013-11-10 03:48:53 +00:00
|
|
|
|
2013-11-20 00:47:50 +00:00
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name 'Forge Public License'
|
|
|
|
url 'https://raw.github.com/MinecraftForge/MinecraftForge/master/MinecraftForge-License.txt'
|
|
|
|
distribution 'repo'
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
}
|
2013-11-20 00:47:50 +00:00
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id 'cpw'
|
|
|
|
name 'cpw'
|
|
|
|
roles { role 'developer' }
|
|
|
|
}
|
|
|
|
developer {
|
|
|
|
id 'LexManos'
|
|
|
|
name 'Lex Manos'
|
|
|
|
roles { role 'developer' }
|
|
|
|
}
|
|
|
|
developer {
|
|
|
|
id 'AbrarSyed'
|
|
|
|
name 'Abrar Syed'
|
|
|
|
roles { role 'contributor' }
|
|
|
|
}
|
2013-11-10 03:48:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|