Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "https://files.minecraftforge.net/maven" }
  5. maven { url = "https://jitpack.io/" }
  6. }
  7. dependencies {
  8. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  9. classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
  10. }
  11. }
  12. apply plugin: 'net.minecraftforge.gradle.forge'
  13. //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
  14. apply plugin: 'com.github.johnrengelman.shadow'
  15. apply plugin: 'java'
  16.  
  17. version = "1.0"
  18. group = "fr.nathanael2611.kyrgon.mod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  19. archivesBaseName = "kyrgon"
  20.  
  21. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  22. compileJava {
  23. sourceCompatibility = targetCompatibility = '1.8'
  24. options.encoding = 'UTF-8'
  25. }
  26.  
  27. minecraft {
  28. version = "1.12.2-14.23.5.2836"
  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 always work.
  35. // simply re-run your setup task after changing the mappings to update your workspace.
  36. mappings = "snapshot_20171003"
  37. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  38. }
  39. repositories {
  40. maven { url = "https://mrcrayfish.com/maven" }
  41. maven { url = "https://jitpack.io/" }
  42. }
  43. dependencies {
  44. compile 'com.github.MinnDevelopment:Java-DiscordRPC:v2.0.1'
  45. compile "com.mrcrayfish:obfuscate:0.2.6-1.12.2"
  46. compile files('Lib/TAN.jar')
  47. }
  48.  
  49. shadowJar {
  50. configurations = [project.configurations.compile]
  51. }
  52.  
  53. processResources {
  54. // this will ensure that this task is redone when the versions change.
  55. inputs.property "version", project.version
  56. inputs.property "mcversion", project.minecraft.version
  57.  
  58. // replace stuff in mcmod.info, nothing else
  59. from(sourceSets.main.resources.srcDirs) {
  60. include 'mcmod.info'
  61.  
  62. // replace version and mcversion
  63. expand 'version':project.version, 'mcversion':project.minecraft.version
  64. }
  65.  
  66. // copy everything else except the mcmod.info
  67. from(sourceSets.main.resources.srcDirs) {
  68. exclude 'mcmod.info'
  69. }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement