Advertisement
Guest User

Untitled

a guest
Apr 29th, 2019
582
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "http://files.minecraftforge.net/maven" }
  5. mavenCentral()
  6. }
  7. dependencies {
  8. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  9. }
  10. }
  11.  
  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. version = "1.0"
  16. group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  17. archivesBaseName = "modid"
  18.  
  19. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  20. compileJava {
  21. sourceCompatibility = targetCompatibility = '1.8'
  22. }
  23.  
  24. minecraft {
  25. version = "1.12.2-14.23.1.2555"
  26. runDir = "run"
  27.  
  28. // the mappings can be changed at any time, and must be in the following format.
  29. // snapshot_YYYYMMDD snapshot are built nightly.
  30. // stable_# stables are built at the discretion of the MCP team.
  31. // Use non-default mappings at your own risk. they may not always work.
  32. // simply re-run your setup task after changing the mappings to update your workspace.
  33. mappings = "snapshot_20171003"
  34. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  35. }
  36.  
  37. dependencies {
  38. compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.25.2'
  39. // you may put jars on which you depend on in ./libs
  40. // or you may define them like so..
  41. //compile "some.group:artifact:version:classifier"
  42. //compile "some.group:artifact:version"
  43.  
  44. // real examples
  45. //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
  46. //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  47.  
  48. // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
  49. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  50.  
  51. // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
  52. // except that these dependencies get remapped to your current MCP mappings
  53. //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  54. //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  55.  
  56. // for more info...
  57. // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  58. // http://www.gradle.org/docs/current/userguide/dependency_management.html
  59.  
  60. }
  61.  
  62. processResources {
  63. // this will ensure that this task is redone when the versions change.
  64. inputs.property "version", project.version
  65. inputs.property "mcversion", project.minecraft.version
  66.  
  67. // replace stuff in mcmod.info, nothing else
  68. from(sourceSets.main.resources.srcDirs) {
  69. include 'mcmod.info'
  70.  
  71. // replace version and mcversion
  72. expand 'version':project.version, 'mcversion':project.minecraft.version
  73. }
  74.  
  75. // copy everything else except the mcmod.info
  76. from(sourceSets.main.resources.srcDirs) {
  77. exclude 'mcmod.info'
  78. }
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement