Advertisement
Guest User

Untitled

a guest
Jun 11th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  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.2-SNAPSHOT'
  15. }
  16. }
  17.  
  18. allprojects {
  19. apply plugin: 'forge'
  20. minecraft{version = "1.7.10-10.13.4.1448-1.7.10"}
  21. version = "1.0"
  22. archivesBaseName = "dwcm"
  23. }
  24.  
  25.  
  26. version = "nightly"
  27. group= "com.ikingssgc" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  28. archivesBaseName = "dwcm"
  29.  
  30. minecraft {
  31. version = "1.7.10-10.13.4.1448-1.7.10"
  32. assetDir = "eclipse/assets"
  33. }
  34.  
  35.  
  36.  
  37. processResources
  38. {
  39. // this will ensure that this task is redone when the versions change.
  40. inputs.property "version", project.version
  41. inputs.property "mcversion", project.minecraft.version
  42.  
  43. // replace stuff in mcmod.info, nothing else
  44. from(sourceSets.main.resources.srcDirs) {
  45. include 'mcmod.info'
  46.  
  47. // replace version and mcversion
  48. expand 'version':project.version, 'mcversion':project.minecraft.version
  49. }
  50.  
  51. // copy everything else, thats not the mcmod.info
  52. from(sourceSets.main.resources.srcDirs) {
  53. exclude 'mcmod.info'
  54. }
  55. }
  56.  
  57. jar {
  58. manifest {
  59. attributes 'FMLAT': 'dwcmcore_at.cfg',
  60. 'FMLCorePlugin': 'dwcmcore.DWCMCoreLoadingPlugin',
  61. 'FMLCorePluginContainsFMLMod': 'true'
  62.  
  63. }
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement