build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. buildscript {
  2. repositories {
  3. maven {
  4. url = 'https://files.minecraftforge.net/maven'
  5. }
  6. jcenter()
  7. mavenCentral()
  8. }
  9. dependencies {
  10. classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
  11. }
  12. }
  13. apply plugin: 'net.minecraftforge.gradle'
  14. apply plugin: 'eclipse'
  15. version = '5.0.1' +
  16. ''
  17. group = 'com.blamejared.controlling'
  18. archivesBaseName = 'Controlling'
  19. sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
  20. minecraft {
  21. mappings channel: 'snapshot', version: '20190608-1.14.2'
  22. accessTransformer = file('build/resources/main/META-INF/accesstransformer.cfg')
  23. runs {
  24. client {
  25. workingDirectory project.file('run')
  26. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  27. property 'forge.logging.console.level', 'debug'
  28. mods {
  29. examplemod {
  30. source sourceSets.main
  31. }
  32. }
  33. }
  34. server {
  35. workingDirectory project.file('run')
  36. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  37. property 'forge.logging.console.level', 'debug'
  38. mods {
  39. examplemod {
  40. source sourceSets.main
  41. }
  42. }
  43. }
  44. }
  45. }
  46. dependencies {
  47. minecraft 'net.minecraftforge:forge:1.14.2-26.0.6'
  48. }
  49. jar {
  50. manifest {
  51. attributes([
  52. "Specification-Title" : "controlling",
  53. "Specification-Vendor" : "BlameJared",
  54. "Specification-Version" : "1",
  55. "Implementation-Title" : project.name,
  56. "Implementation-Version" : "${version}",
  57. "Implementation-Vendor" : "controlling",
  58. "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
  59. }
  60. }