Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2014
211
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. maven {
  5. name = "forge"
  6. url = "http://files.minecraftforge.net/maven"
  7. }
  8. maven {
  9. name = "sonatype"
  10. url = "https://oss.sonatype.org/content/repositories/snapshots/"
  11. }
  12. }
  13. dependencies {
  14. classpath 'net.minecraftforge.gradle:ForgeGradle:1.1-SNAPSHOT'
  15. }
  16. }
  17.  
  18. apply plugin: 'forge'
  19.  
  20. version = "1.0"
  21. group= "mods.core.PaneInTheGlass"
  22. archivesBaseName = "PaneInTheGlass"
  23.  
  24. minecraft {
  25. version = "1.7.2-10.12.0.1024"
  26. assetDir = "eclipse/assets"
  27. }
  28. processResources
  29. {
  30. // replace stuff in mcmod.info, nothing else
  31. from(sourceSets.main.resources.srcDirs) {
  32. include 'mcmod.info'
  33.  
  34. // replace version and mcversion
  35. expand 'version':project.version, 'mcversion':project.minecraft.version
  36. }
  37.  
  38. // copy everything else, thats not the mcmod.info
  39. from(sourceSets.main.resources.srcDirs) {
  40. exclude 'mcmod.info'
  41. }
  42. }
  43.  
  44. jar {
  45. manifest
  46. {
  47. attributes("FMLCorePlugin": "mods.core.PaneInTheGlass.FMLLoadingPlugin")
  48. }
  49. }
  50.  
  51. // add a source jar
  52. task sourceJar(type: Jar) {
  53. from sourceSets.main.allSource
  54. appendix = 'src'
  55. }
  56.  
  57. // add a javadoc jar
  58. task javadocJar(type: Jar, dependsOn: javadoc) {
  59. appendix = 'javadoc'
  60. from 'build/docs/javadoc'
  61. }
  62.  
  63. // because the normal output has been made to be obfuscated
  64. task deobfJar(type: Jar) {
  65. from sourceSets.main.output
  66. appendix = 'deobf'
  67. }
  68.  
  69. artifacts {
  70. archives sourceJar
  71. archives deobfJar
  72. archives javadocJar
  73. //archives obfJar
  74. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement