Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.83 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.         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.3-2"
  9.     }
  10. }
  11. apply plugin: 'kotlin'
  12. apply plugin: 'net.minecraftforge.gradle.forge'
  13. //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
  14.  
  15. repositories {
  16.     jcenter()
  17.     maven {url = "http://maven.shadowfacts.net/"}
  18. }
  19.  
  20. configurations {
  21.     incljar
  22. }
  23.  
  24. version = "1.0"
  25. group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  26. archivesBaseName = "modid"
  27.  
  28. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  29. compileJava {
  30.     sourceCompatibility = targetCompatibility = '1.8'
  31. }
  32.  
  33.  
  34.  
  35. minecraft {
  36.     version = "1.12.2-14.23.1.2581"
  37.     runDir = "run"
  38.     mappings = "snapshot_20171003"
  39. }
  40.  
  41. dependencies {
  42.     compile "net.shadowfacts:Forgelin:1.7.3"
  43.     compile configurations.incljar.dependencies
  44. }
  45.  
  46. processResources {
  47.     // this will ensure that this task is redone when the versions change.
  48.     inputs.property "version", project.version
  49.     inputs.property "mcversion", project.minecraft.version
  50.  
  51.     // replace stuff in mcmod.info, nothing else
  52.     from(sourceSets.main.resources.srcDirs) {
  53.         include 'mcmod.info'
  54.                
  55.         // replace version and mcversion
  56.         expand 'version':project.version, 'mcversion':project.minecraft.version
  57.     }
  58.        
  59.     // copy everything else except the mcmod.info
  60.     from(sourceSets.main.resources.srcDirs) {
  61.         exclude 'mcmod.info'
  62.     }
  63. }
  64. compileKotlin {
  65.     kotlinOptions {
  66.         languageVersion = "1.2"
  67.     }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement