diff --git a/fml/.gitattributes b/fml/.gitattributes index 809a906875..758843d9bc 100644 --- a/fml/.gitattributes +++ b/fml/.gitattributes @@ -1,9 +1,13 @@ * text eol=lf *.bat text eol=crlf *.patch text eol=lf +*.java text eol=lf +*.gradle text eol=crlf *.png binary *.exe binary *.dll binary +*.jar binary +*.lzma binary *.zip binary *.pyd binary *.cfg text eol=lf diff --git a/fml/.gitignore b/fml/.gitignore index 27935ea5f1..a09824b0a1 100644 --- a/fml/.gitignore +++ b/fml/.gitignore @@ -1,20 +1,15 @@ +#eclipse /bin -/minecraft_server -/mods -/fmlbuild.properties -/fmlversion.properties -/difflist.txt -/target -fmlbranding.properties -/fernflower.zip -/commands.py.bck -/mcp*.zip -/mcp +/.settings +/.classpath + +#idea +/.idea +*.iml + +#gradle +/build +/.gradle + +#occupational hazards /eclipse -/deobfuscation_data*.zip -/binpatch -/mcp_data/ -/map_client.txt -/*.lzma -**/*.lzma -/installer_base.jar diff --git a/fml/build.gradle b/fml/build.gradle new file mode 100644 index 0000000000..e9448bde01 --- /dev/null +++ b/fml/build.gradle @@ -0,0 +1,100 @@ +buildscript { + repositories { + mavenCentral() + maven { + name = "forge" + url = "http://files.minecraftforge.net/maven" + } + } + dependencies { + classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT' + } +} + +import static net.minecraftforge.gradle.dev.FmlDevPlugin.* + +apply plugin: 'maven' +apply plugin: 'fmldev' + +repositories { + flatDir { + name "fileRepo" + dirs "repo" + } +} + +minecraft { + version = '1.6.4' + fmlDir = projectDir.getAbsolutePath(); + mainClass = 'cpw.mods.fml.relauncher.ServerLaunchWrapper' + installerVersion = "1.4" +} + +group = 'cpw.mods' +version = getVersionFromGit(project) + +jenkins { + job = 'fml' +} + +uploadArchives { + repositories { + if (project.hasProperty("filesmaven")) { + logger.info('Publishing to files server') + + mavenDeployer { + configuration = configurations.deployerJars + + 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 { + name 'GNU Lesser Public License (LGPL), Version 3' + url 'http://www.gnu.org/licenses/lgpl-3.0.txt' + distribution 'repo' + } + } + + developers { + developer { + id 'LexManos' + name 'Lex Manos' + roles { role 'developer' } + } + } + developers { + developer { + id 'cpw' + name 'Christian Weeks' + roles { role 'developer' } + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/fml/eclipse-workspace-dev.zip b/fml/eclipse-workspace-dev.zip index 3443e185f5..a3dd79e82a 100644 Binary files a/fml/eclipse-workspace-dev.zip and b/fml/eclipse-workspace-dev.zip differ diff --git a/fml/settings.gradle b/fml/settings.gradle new file mode 100644 index 0000000000..bcecb1a4ad --- /dev/null +++ b/fml/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'fml' \ No newline at end of file