Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2021
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.65 KB | None | 0 0
  1. buildscript {
  2.     repositories {
  3.         jcenter()
  4.         maven { url = 'https://files.minecraftforge.net/maven' }
  5.         maven { url = 'https://repo.spongepowered.org/maven' }
  6.     }
  7.     dependencies {
  8.         classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
  9.         classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
  10.     }
  11. }
  12.  
  13. apply plugin: 'net.minecraftforge.gradle.forge'
  14. apply plugin: 'org.spongepowered.mixin'
  15. apply plugin: 'eclipse'
  16. //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
  17.  
  18. version = "1.0-1.12.2"
  19. group = "me.hovac"
  20. archivesBaseName = "me.hovac.waco.forge"
  21.  
  22. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  23. compileJava {
  24.     sourceCompatibility = targetCompatibility = '1.8'
  25. }
  26.  
  27. minecraft {
  28.     version = '1.12.2-14.23.5.2768'
  29.     runDir = 'run'
  30.     coreMod = "me.hovac.waco.forge"
  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 = 'stable_39'
  37.     makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  38. }
  39.  
  40. jar.manifest.attributes(
  41.         'MixinConfigs': 'mixins.waco.json',
  42.         'tweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
  43.         'TweakOrder': 0,
  44.         'FMLCorePluginContainsFMLMod': 'true',
  45.         'FMLCorePlugin': 'me.hovac.waco.forge',
  46.         'ForceLoadAsMod': 'true',
  47.         'FMLAT': 'waco_at.cfg'
  48. )
  49.  
  50. repositories {
  51.     mavenCentral()
  52.     maven {
  53.         url 'http://maven.blamejared.com'
  54.     }
  55.     maven { url = 'https://repo.spongepowered.org/maven' }
  56. }
  57.  
  58. dependencies {
  59.     compile 'org.spongepowered:mixin:0.8.2'
  60. }
  61.  
  62. mixin {
  63.     add sourceSets.main, 'waco.refmap.json'
  64. }
  65.  
  66. processResources {
  67.     // this will ensure that this task is redone when the versions change.
  68.     inputs.property 'version', project.version
  69.     inputs.property 'mcversion', project.minecraft.version
  70.  
  71.     // replace stuff in mcmod.info, nothing else
  72.     from(sourceSets.main.resources.srcDirs) {
  73.         include 'mcmod.info'
  74.  
  75.         // replace version and mcversion
  76.         expand 'version':project.version, 'mcversion':project.minecraft.version
  77.     }
  78.  
  79.     // copy everything else except the mcmod.info
  80.     from(sourceSets.main.resources.srcDirs) {
  81.         exclude 'mcmod.info'
  82.     }
  83. }
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement