ForgePatch/build.gradle

123 lines
3.3 KiB
Groovy
Raw Normal View History

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 {
mavenLocal()
2013-11-10 03:48:53 +00:00
flatDir {
name "fileRepo"
dirs "repo"
}
}
minecraft {
2013-12-10 02:47:55 +00:00
version = '1.7.2'
mcpVersion = '9.03'
2013-11-10 03:48:53 +00:00
fmlDir = projectDir.getAbsolutePath() + "/fml";
mainClass = 'cpw.mods.fml.relauncher.ServerLaunchWrapper'
tweakClass = 'cpw.mods.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'
}
2013-11-19 20:17:46 +00:00
launch4j {
jreMinVersion = '1.6.0'
}
2013-11-10 03:48:53 +00:00
uploadArchives {
repositories {
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
}
}
}
}