build.gradle 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. plugins {
  12. id "com.wynprice.cursemaven" version "2.1.1"
  13. }
  14. apply plugin: 'net.minecraftforge.gradle'
  15. apply plugin: 'eclipse'
  16. version = "4.6.1"
  17. group = "me.shedaniel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  18. archivesBaseName = "LightOverlay"
  19. sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
  20. minecraft {
  21. mappings channel: 'snapshot', version: '20200408-1.15.1'
  22. runs {
  23. client {
  24. workingDirectory project.file('run')
  25. // Recommended logging data for a userdev environment
  26. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  27. // Recommended logging level for the console
  28. property 'forge.logging.console.level', 'debug'
  29. mods {
  30. examplemod {
  31. source sourceSets.main
  32. }
  33. }
  34. }
  35. server {
  36. workingDirectory project.file('run')
  37. // Recommended logging data for a userdev environment
  38. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  39. // Recommended logging level for the console
  40. property 'forge.logging.console.level', 'debug'
  41. mods {
  42. examplemod {
  43. source sourceSets.main
  44. }
  45. }
  46. }
  47. }
  48. }
  49. repositories {
  50. maven { url "https://files.minecraftforge.net/maven" }
  51. }
  52. dependencies {
  53. minecraft 'net.minecraftforge:forge:1.15.2-31.1.39'
  54. implementation fg.deobf("curse.maven:cloth-config-forge:2938583")
  55. }
  56. jar {
  57. manifest {
  58. attributes(["Specification-Title" : "examplemod",
  59. "Specification-Vendor" : "examplemodsareus",
  60. "Specification-Version" : "1", // We are version 1 of the modlauncher specification
  61. "Implementation-Title" : project.name,
  62. "Implementation-Version" : "${version}",
  63. "Implementation-Vendor" : "examplemodsareus",
  64. "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
  65. }
  66. }