build.gradle 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. apply plugin: 'eclipse'
  13. version = "3.2"
  14. group = "me.shedaniel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  15. archivesBaseName = "LightOverlay"
  16. sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
  17. minecraft {
  18. mappings channel: 'snapshot', version: '20190625-1.14.3'
  19. runs {
  20. client {
  21. workingDirectory project.file('run')
  22. // Recommended logging data for a userdev environment
  23. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  24. // Recommended logging level for the console
  25. property 'forge.logging.console.level', 'debug'
  26. mods {
  27. examplemod {
  28. source sourceSets.main
  29. }
  30. }
  31. }
  32. server {
  33. workingDirectory project.file('run')
  34. // Recommended logging data for a userdev environment
  35. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  36. // Recommended logging level for the console
  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.3-27.0.13'
  48. }
  49. jar {
  50. manifest {
  51. attributes(["Specification-Title" : "examplemod",
  52. "Specification-Vendor" : "examplemodsareus",
  53. "Specification-Version" : "1", // We are version 1 of the modlauncher specification
  54. "Implementation-Title" : project.name,
  55. "Implementation-Version" : "${version}",
  56. "Implementation-Vendor" : "examplemodsareus",
  57. "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
  58. }
  59. }