Advertisement
Guest User

Untitled

a guest
Jul 13th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1.  
  2. // For those who want the bleeding edge
  3. buildscript {
  4. repositories {
  5. jcenter()
  6. maven {
  7. name = "forge"
  8. url = "http://files.minecraftforge.net/maven"
  9. }
  10. }
  11. dependencies {
  12. classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
  13. }
  14. }
  15. apply plugin: 'net.minecraftforge.gradle.forge'
  16.  
  17. /*
  18. // for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot
  19. plugins {
  20. id "net.minecraftforge.gradle.forge" version "2.0.2"
  21. }
  22. */
  23. version = "1.0"
  24. group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  25. archivesBaseName = "modid"
  26.  
  27. minecraft {
  28. version = "1.8.9-11.15.1.2318-1.8.9"
  29. runDir = "run"
  30.  
  31. // the mappings can be changed at any time, and must be in the following format.
  32. // snapshot_YYYYMMDD snapshot are built nightly.
  33. // stable_# stables are built at the discretion of the MCP team.
  34. // Use non-default mappings at your own risk. they may not allways work.
  35. // simply re-run your setup task after changing the mappings to update your workspace.
  36. mappings = "stable_20"
  37. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  38. }
  39.  
  40. dependencies {
  41. compile fileTree(dir: 'libs', include: '*.jar')
  42.  
  43. }
  44.  
  45.  
  46. processResources
  47. {
  48. // this will ensure that this task is redone when the versions change.
  49. inputs.property "version", project.version
  50. inputs.property "mcversion", project.minecraft.version
  51.  
  52. // replace stuff in mcmod.info, nothing else
  53. from(sourceSets.main.resources.srcDirs) {
  54. include 'mcmod.info'
  55.  
  56. // replace version and mcversion
  57. expand 'version':project.version, 'mcversion':project.minecraft.version
  58. }
  59.  
  60. // copy everything else, thats not the mcmod.info
  61. from(sourceSets.main.resources.srcDirs) {
  62. exclude 'mcmod.info'
  63. }
  64. }
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement