Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. maven { url = 'https://files.minecraftforge.net/maven' }
  4. jcenter()
  5. mavenCentral()
  6. }
  7. dependencies {
  8. classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
  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: 'idea'
  15.  
  16. version = '1.0.0'
  17. group = 'com.ldtteam.supertools' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  18. archivesBaseName = 'supertools'
  19.  
  20. sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  21.  
  22. minecraft {
  23. // the mappings can be changed at any time, and must be in the following format.
  24. // snapshot_YYYYMMDD snapshot are built nightly.
  25. // stable_# stables are built at the discretion of the MCP team.
  26. // Use non-default mappings at your own risk. they may not always work.
  27. // simply re-run your setup task after changing the mappings to update your workspace.
  28. mappings channel: 'snapshot', version: '20180921-1.13'
  29. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  30.  
  31. accessTransformer = file('src/main/resources/META-INF/supertools_at.cfg')
  32.  
  33. // default run configurations.
  34. // these can be tweaked, removed, or duplicated as needed.
  35. runs {
  36. client = {
  37. // recommended logging data for a userdev environment
  38. properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
  39. // recommended logging level for the console
  40. properties 'forge.logging.console.level': 'debug'
  41. workingDirectory project.file('run').canonicalPath
  42. source sourceSets.main
  43. }
  44. server = {
  45. // recommended logging data for a userdev environment
  46. properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
  47. // recommended logging level for the console
  48. properties 'forge.logging.console.level': 'debug'
  49. workingDirectory project.file('run').canonicalPath
  50. source sourceSets.main
  51. }
  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.13.2-25.0.13'
  60.  
  61. testCompile 'junit:junit:4.11'
  62. testCompile "org.mockito:mockito-core:1.+"
  63. testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.5'
  64. testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.5'
  65. testCompile group: 'org.powermock', name: 'powermock-module-junit4-rule-agent', version: '1.6.5'
  66.  
  67. testCompile 'org.assertj:assertj-core:3.9.0'
  68.  
  69. testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
  70.  
  71. compile 'com.intellij:annotations:+@jar'
  72. }
  73.  
  74. // Example for how to get properties into the manifest for reading by the runtime..
  75. jar {
  76. manifest {
  77. attributes(["Specification-Title": "supertools",
  78. "Specification-Vendor": "ldtteam",
  79. "Specification-Version": "24.0", // We are version 1 of the modlauncher specification
  80. "Implementation-Title": project.name,
  81. "Implementation-Version": "1.0.0",
  82. "Implementation-Vendor" :"ldtteam",
  83. "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
  84. }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement