2013-11-08 07:05:04 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2013-11-10 01:00:05 +00:00
|
|
|
mavenLocal()
|
2013-11-08 07:05:04 +00:00
|
|
|
maven {
|
|
|
|
name = "forge"
|
|
|
|
url = "http://files.minecraftforge.net/maven"
|
|
|
|
}
|
2013-12-10 04:43:27 +00:00
|
|
|
maven {
|
|
|
|
name = "sonatype"
|
|
|
|
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
|
|
|
}
|
2013-11-08 07:05:04 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2014-03-19 07:15:53 +00:00
|
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
2013-11-08 07:05:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
import static net.minecraftforge.gradle.dev.FmlDevPlugin.*
|
|
|
|
|
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'fmldev'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
flatDir {
|
|
|
|
name "fileRepo"
|
|
|
|
dirs "repo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
minecraft {
|
2014-06-26 18:37:28 +00:00
|
|
|
version = '1.7.10'
|
2014-06-13 01:13:26 +00:00
|
|
|
mcpVersion = '9.05'
|
2013-11-08 07:05:04 +00:00
|
|
|
fmlDir = projectDir.getAbsolutePath();
|
|
|
|
mainClass = 'cpw.mods.fml.relauncher.ServerLaunchWrapper'
|
2013-12-30 18:06:59 +00:00
|
|
|
tweakClass = 'cpw.mods.fml.common.launcher.FMLTweaker'
|
2013-11-08 07:05:04 +00:00
|
|
|
installerVersion = "1.4"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'cpw.mods'
|
2013-12-10 04:43:27 +00:00
|
|
|
version = getVersionFromGit(getProject())
|
2013-11-08 07:05:04 +00:00
|
|
|
|
|
|
|
jenkins {
|
|
|
|
job = 'fml'
|
|
|
|
}
|
|
|
|
|
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
|
|
|
if (project.hasProperty("filesmaven")) {
|
|
|
|
logger.info('Publishing to files server')
|
|
|
|
|
|
|
|
mavenDeployer {
|
2013-12-24 01:24:40 +00:00
|
|
|
configuration = configurations.deployJars
|
2013-11-08 07:05:04 +00:00
|
|
|
|
|
|
|
repository(url: project.filesmaven.url) {
|
|
|
|
authentication(userName: project.filesmaven.username, privateKey: project.filesmaven.key)
|
|
|
|
}
|
|
|
|
|
|
|
|
pom {
|
|
|
|
groupId = project.group
|
|
|
|
version = project.version
|
|
|
|
artifactId = project.archivesBaseName
|
|
|
|
project {
|
|
|
|
name project.archivesBaseName
|
|
|
|
packaging 'jar'
|
|
|
|
description 'ForgeModLoader'
|
|
|
|
url 'https://github.com/MinecraftForge/FML'
|
|
|
|
|
|
|
|
scm {
|
|
|
|
url 'https://github.com/MinecraftForge/FML'
|
|
|
|
connection 'scm:git:git://github.com/MinecraftForge/FML.git'
|
|
|
|
developerConnection 'scm:git:git@github.com:MinecraftForge/FML.git'
|
|
|
|
}
|
|
|
|
|
|
|
|
issueManagement {
|
|
|
|
system 'github'
|
|
|
|
url 'https://github.com/MinecraftForge/FML/issues'
|
|
|
|
}
|
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
2013-11-08 13:53:06 +00:00
|
|
|
name 'GNU Lesser Public License (LGPL), Version 2.1'
|
|
|
|
url 'http://www.gnu.org/licenses/lgpl-2.1.txt'
|
2013-11-08 07:05:04 +00:00
|
|
|
distribution 'repo'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
2013-11-08 13:53:06 +00:00
|
|
|
id 'cpw'
|
|
|
|
name 'cpw'
|
2013-11-08 07:05:04 +00:00
|
|
|
roles { role 'developer' }
|
|
|
|
}
|
|
|
|
developer {
|
2013-11-08 13:53:06 +00:00
|
|
|
id 'LexManos'
|
|
|
|
name 'Lex Manos'
|
2013-11-08 07:05:04 +00:00
|
|
|
roles { role 'developer' }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-11-08 20:13:20 +00:00
|
|
|
} else {
|
|
|
|
logger.info('Publishing to repo folder')
|
|
|
|
|
|
|
|
mavenDeployer {
|
|
|
|
repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath())
|
|
|
|
}
|
2013-11-08 07:05:04 +00:00
|
|
|
}
|
|
|
|
}
|
2013-11-08 13:53:06 +00:00
|
|
|
}
|