Advertisement
Guest User

Untitled

a guest
Sep 14th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.79 KB | None | 0 0
  1. buildscript {
  2.     repositories {
  3.         jcenter()
  4.         maven {
  5.             name = "forge"
  6.             url = "https://files.minecraftforge.net/maven"
  7.         }
  8.     }
  9.     dependencies {
  10.         classpath "net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT"
  11.     }
  12. }
  13.  
  14. apply plugin: "net.minecraftforge.gradle.forge"
  15. compileJava.options.encoding='UTF-8'
  16.  
  17. tasks.withType(Jar) {
  18.     destinationDir = file("C:/Users/hohserg/AppData/Roaming/.minecraft/mods")
  19. }
  20.  
  21. version = modVersion
  22. group = modGroup
  23. archivesBaseName = modBaseName
  24.  
  25. minecraft {
  26.     version = project.forgeVersion
  27.     runDir = "run"
  28.  
  29.     // the mappings can be changed at any time, and must be in the following format.
  30.     // snapshot_YYYYMMDD   snapshot are built nightly.
  31.     // stable_#            stables are built at the discretion of the MCP team.
  32.     // Use non-default mappings at your own risk. they may not always work.
  33.     // simply re-run your setup task after changing the mappings to update your workspace.
  34.     mappings = project.mcpVersion
  35.     // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  36. }
  37.  
  38. repositories {
  39.     mavenCentral()
  40. }
  41.  
  42. dependencies {
  43. }
  44.  
  45. processResources {
  46.     // this will ensure that this task is redone when the versions change.
  47.     inputs.property "version", project.version
  48.     inputs.property "mcversion", project.minecraft.version
  49.  
  50.     // replace stuff in mcmod.info, nothing else
  51.     from(sourceSets.main.resources.srcDirs) {
  52.         include "mcmod.info"
  53.  
  54.         // replace version and mcversion
  55.         expand "version": project.version, "mcversion": project.minecraft.version
  56.     }
  57.  
  58.     // copy everything else, thats not the mcmod.info
  59.     from(sourceSets.main.resources.srcDirs) {
  60.         exclude "mcmod.info"
  61.     }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement