A Minecraft mod to allow for two worlds, one of which has no resources. Worldgen is not ready yet.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
4.8 KiB

  1. buildscript {
  2. repositories {
  3. maven { url = 'https://files.minecraftforge.net/maven' }
  4. jcenter()
  5. mavenCentral()
  6. }
  7. dependencies {
  8. classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
  9. }
  10. }
  11. apply plugin: 'net.minecraftforge.gradle'
  12. // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
  13. apply plugin: 'eclipse'
  14. //apply plugin: 'maven-publish'
  15. version = '1.0'
  16. group = 't.j' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  17. archivesBaseName = 'dual'
  18. sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  19. allprojects {
  20. gradle.projectsEvaluated {
  21. tasks.withType(JavaCompile) {
  22. options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
  23. }
  24. }
  25. }
  26. minecraft {
  27. // The mappings can be changed at any time, and must be in the following format.
  28. // snapshot_YYYYMMDD Snapshot are built nightly.
  29. // stable_# Stables are built at the discretion of the MCP team.
  30. // Use non-default mappings at your own risk. they may not always work.
  31. // Simply re-run your setup task after changing the mappings to update your workspace.
  32. //mappings channel: 'snapshot', version: '20171003-1.12'
  33. mappings channel: 'snapshot', version: '20171003-1.12'
  34. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  35. // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
  36. // Default run configurations.
  37. // These can be tweaked, removed, or duplicated as needed.
  38. runs {
  39. client {
  40. workingDirectory project.file('run')
  41. // Recommended logging data for a userdev environment
  42. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  43. // Recommended logging level for the console
  44. property 'forge.logging.console.level', 'debug'
  45. }
  46. server {
  47. // Recommended logging data for a userdev environment
  48. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  49. // Recommended logging level for the console
  50. property 'forge.logging.console.level', 'debug'
  51. //args 'nogui'
  52. }
  53. }
  54. }
  55. dependencies {
  56. // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
  57. // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
  58. // The userdev artifact is a special name and will get all sorts of transformations applied to it.
  59. minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2854'
  60. // You may put jars on which you depend on in ./libs or you may define them like so..
  61. // compile "some.group:artifact:version:classifier"
  62. // compile "some.group:artifact:version"
  63. // Real examples
  64. // compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
  65. // compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  66. // The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
  67. // provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  68. // These dependencies get remapped to your current MCP mappings
  69. // deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  70. // For more info...
  71. // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  72. // http://www.gradle.org/docs/current/userguide/dependency_management.html
  73. }
  74. // Example for how to get properties into the manifest for reading by the runtime..
  75. jar {
  76. manifest {
  77. attributes([
  78. "Specification-Title": "dual",
  79. "Specification-Vendor": "cosi?",
  80. "Specification-Version": "1", // We are version 1 of ourselves
  81. "Implementation-Title": project.name,
  82. "Implementation-Version": "${version}",
  83. "Implementation-Vendor" :"cosi?",
  84. "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
  85. ])
  86. }
  87. }
  88. // Example configuration to allow publishing using the maven-publish task
  89. // This is the preferred method to reobfuscate your jar file
  90. jar.finalizedBy('reobfJar')
  91. // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
  92. //publish.dependsOn('reobfJar')
  93. //publishing {
  94. // publications {
  95. // mavenJava(MavenPublication) {
  96. // artifact jar
  97. // }
  98. // }
  99. // repositories {
  100. // maven {
  101. // url "file:///${project.projectDir}/mcmodsrepo"
  102. // }
  103. // }
  104. //}