Guest User

Untitled

a guest
Nov 26th, 2021
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. jcenter()
  5. maven {
  6. name = "forge"
  7. url = "https://maven.minecraftforge.net/"
  8. }
  9. maven {
  10. name = "github"
  11. url = "https://github.com/juanmuscaria/maven/raw/master"
  12. }
  13. }
  14. dependencies {
  15. classpath 'net.minecraftforge.gradle:ForgeGradle2:[2.3-1.0.0-SNAPSHOT,)'
  16. }
  17. }
  18.  
  19. repositories {
  20. flatDir {
  21. dirs 'deps'
  22. }
  23. }
  24.  
  25. apply plugin: 'eclipse'
  26. apply plugin: 'maven-publish'
  27. apply plugin: 'net.minecraftforge.gradle.forge'
  28.  
  29. version = mod_version
  30. group = mod_group
  31. archivesBaseName = mod_archives_name
  32.  
  33. [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
  34. sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
  35.  
  36. minecraft {
  37. version = "1.12.2-14.23.5.2847"
  38. mappings = "stable_39"
  39. runDir = "eclipse"
  40.  
  41. replace '@VERSION@', project.version
  42. // makeObfSourceJar = false
  43. }
  44.  
  45. processResources {
  46.  
  47. from(sourceSets.main.resources.srcDirs) {
  48. include 'mcmod.info'
  49. expand 'version': project.version,
  50. 'mod_id': mod_id,
  51. 'mod_name': mod_name,
  52. 'mod_author': mod_author,
  53. 'mod_description': mod_description,
  54. 'mc_version': mc_version,
  55. 'mod_version': mod_version,
  56. 'mod_icon': mod_icon
  57. }
  58.  
  59. from(sourceSets.main.resources.srcDirs) {
  60. exclude 'mcmod.info'
  61. }
  62. }
  63.  
  64. dependencies {
  65. compile name: 'Baubles-1.12-1.5.2-dev'
  66. }
  67.  
  68. task devJar(type: Jar) {
  69. classifier = 'dev'
  70. from sourceSets.main.output
  71. }
  72.  
  73. task sourcesJar(type: Jar) {
  74. classifier = 'sources'
  75. from sourceSets.main.allSource
  76. }
  77.  
  78. artifacts {
  79. archives devJar
  80. archives sourcesJar
  81. }
Advertisement
Add Comment
Please, Sign In to add comment