Guest User

Untitled

a guest
Dec 5th, 2020
20
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. version = "1.0.3.0-1.12.2"
  14. group = "cn.mcmod.sakura" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  15. archivesBaseName = "Sakura"
  16.  
  17. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  18. compileJava {
  19.     sourceCompatibility = targetCompatibility = '1.8'
  20. }
  21.  
  22. minecraft {
  23.     version = "1.12.2-14.23.5.2847"
  24.     runDir = "run"
  25.     mappings = "snapshot_20171003"
  26.     replace "@version@", project.version
  27.  
  28. }
  29.  
  30. repositories {
  31.     maven {
  32.         // CraftTweaker2
  33.         url = "http://maven.blamejared.com"
  34.     }
  35.     maven {
  36.         name = "CoFH Maven"
  37.         url = "http://maven.covers1624.net"
  38.     }
  39.         maven {
  40.     name = "Chickenbones maven"
  41.     url = "http://chickenbones.net/maven/"
  42.     }
  43.     maven {
  44.     // location of the maven that hosts JEI files
  45.     name = "Progwml6 maven"
  46.     url = "http://dvs1.progwml6.com/files/maven"
  47.     }
  48.  
  49.     maven {
  50.     // location of a maven mirror for JEI files, as a fallback
  51.     name = "ModMaven"
  52.     url = "modmaven.k-4u.nl"
  53.     }
  54.     maven {
  55.         url = "https://www.cursemaven.com"
  56.     }
  57.     maven {
  58.         url = "http://tehnut.info/maven"
  59.     }
  60. }
  61.  
  62. dependencies {
  63.     compile "vazkii.patchouli:Patchouli:1.0-16.84"
  64.     compile "blusunrize:ImmersiveEngineering:0.12-89-515"
  65.     // compile against the JEI API but do not include it at runtime
  66.     deobfProvided "mezz.jei:jei_1.12.2:4.14.3.238:api"
  67.     // at runtime, use the full JEI jar
  68.     runtime "mezz.jei:jei_1.12.2:4.14.3.238"
  69.    
  70.     deobfCompile "curse.maven:jei-integration:2491927"
  71.  
  72.     deobfCompile "slimeknights.mantle:Mantle:1.12-1.3.3.55"
  73.  
  74.     deobfCompile "slimeknights:TConstruct:1.12.2-2.12.0.157"
  75.    
  76.     deobfCompile("CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.1.19.547") {
  77.         exclude group: 'org.ow2.asm'
  78.     }
  79.     deobfCompile "CraftTweaker2:CraftTweaker2-API:4.1.19.547"
  80.     deobfCompile "CraftTweaker2:ZenScript:4.1.19.547"
  81. }
  82.  
  83.  
  84. processResources {
  85.     // this will ensure that this task is redone when the versions change.
  86.     inputs.property "version", project.version
  87.     inputs.property "mcversion", project.minecraft.version
  88.  
  89.     // replace stuff in mcmod.info, nothing else
  90.     from(sourceSets.main.resources.srcDirs) {
  91.         include 'mcmod.info'
  92.                
  93.         // replace version and mcversion
  94.         expand 'version':project.version, 'mcversion':project.minecraft.version
  95.     }
  96.        
  97.     // copy everything else except the mcmod.info
  98.     from(sourceSets.main.resources.srcDirs) {
  99.         exclude 'mcmod.info'
  100.     }
  101. }
  102.  
RAW Paste Data