Advertisement
Guest User

Untitled

a guest
Jun 15th, 2022
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 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. apply plugin: 'forge'
  19.  
  20. version = "0.8.beta59.fork"
  21.  
  22. group= "exterminatorjeff.undergroundbiomes" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  23. archivesBaseName = "UndergroundBiomesConstructs-1.7.10"
  24.  
  25. minecraft {
  26. version = "1.7.10-10.13.4.1614-1.7.10"
  27. runDir = "run"
  28. }
  29.  
  30. dependencies {
  31. // you may put jars on which you depend on in ./libs
  32. // or you may define them like so..
  33. //compile "some.group:artifact:version:classifier"
  34. //compile "some.group:artifact:version"
  35.  
  36. // real examples
  37. //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
  38. //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  39.  
  40. // for more info...
  41. // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  42. // http://www.gradle.org/docs/current/userguide/dependency_management.html
  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.  
  66.  
  67. task deobfJar(type: Jar) {
  68. from sourceSets.main.output
  69. classifier = 'dev'
  70. }
  71.  
  72. artifacts {
  73. archives deobfJar
  74. }
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement