Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "http://files.minecraftforge.net/maven" }
  5. }
  6. dependencies {
  7. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  8. }
  9. }
  10. apply plugin: 'net.minecraftforge.gradle.forge'
  11. //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
  12.  
  13.  
  14. version = "0.0.1"
  15. group = "thatmartinguy.brightenup" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  16. archivesBaseName = "brightenup"
  17.  
  18. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  19. compileJava {
  20. sourceCompatibility = targetCompatibility = '1.8'
  21. }
  22.  
  23. minecraft {
  24. version = "1.12.2-14.23.4.2705"
  25. runDir = "run"
  26.  
  27. // the mappings can be changed at any time, and must be in the following format.
  28. // snapshot_YYYYMMDD snapshot are built nightly.
  29. // stable_# stables are built at the discretion of the MCP team.
  30. // Use non-default mappings at your own risk. they may not always work.
  31. // simply re-run your setup task after changing the mappings to update your workspace.
  32. mappings = "snapshot_20171003"
  33. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  34. }
  35.  
  36. repositories {
  37. maven {
  38. name = "Covers (COFH)"
  39. url = "http://maven.covers1624.net/"
  40. }
  41. }
  42.  
  43. //Removing this fixes the project
  44. dependencies {
  45. compile 'cofh:CoFHCore:1.12.2-4.5.0.+:deobfCompile'
  46. compile 'cofh:ThermalFoundation:1.12.2-2.5.+:deobfCompile'
  47. }
  48.  
  49. processResources {
  50. // this will ensure that this task is redone when the versions change.
  51. inputs.property "version", project.version
  52. inputs.property "mcversion", project.minecraft.version
  53.  
  54. // replace stuff in mcmod.info, nothing else
  55. from(sourceSets.main.resources.srcDirs) {
  56. include 'mcmod.info'
  57.  
  58. // replace version and mcversion
  59. expand 'version':project.version, 'mcversion':project.minecraft.version
  60. }
  61.  
  62. // copy everything else except the mcmod.info
  63. from(sourceSets.main.resources.srcDirs) {
  64. exclude 'mcmod.info'
  65. }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement