build.gradle 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.6"
  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: '20191019-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. repositories {
  47. maven { url 'https://jitpack.io' }
  48. }
  49. dependencies {
  50. minecraft 'net.minecraftforge:forge:1.14.4-28.1.61'
  51. implementation 'com.github.shedaniel:ClothConfig:c70da9769d'
  52. }
  53. jar {
  54. manifest {
  55. attributes(["Specification-Title" : "examplemod",
  56. "Specification-Vendor" : "examplemodsareus",
  57. "Specification-Version" : "1", // We are version 1 of the modlauncher specification
  58. "Implementation-Title" : project.name,
  59. "Implementation-Version" : "${version}",
  60. "Implementation-Vendor" : "examplemodsareus",
  61. "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
  62. }
  63. }