build.gradle 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. version = "${version_minecraft}-${version_mod}"
  13. group = "${mod_group}.${mod_id}"
  14. archivesBaseName = "${mod_id}"
  15. sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
  16. minecraft {
  17. mappings channel: 'snapshot', version: '20180921-1.13'
  18. runs {
  19. client = {
  20. properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
  21. properties 'forge.logging.console.level': 'debug'
  22. workingDirectory project.file('run').canonicalPath
  23. source sourceSets.main
  24. }
  25. server = {
  26. properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
  27. properties 'forge.logging.console.level': 'debug'
  28. workingDirectory project.file('run').canonicalPath
  29. source sourceSets.main
  30. }
  31. }
  32. }
  33. dependencies {
  34. minecraft 'net.minecraftforge:forge:1.13.2-25.0.10'
  35. }
  36. sourceSets {
  37. main {
  38. resources {
  39. srcDirs += 'docs'
  40. }
  41. }
  42. }
  43. jar {
  44. manifest {
  45. attributes(["Specification-Title": "${archivesBaseName}",
  46. "Specification-Vendor": "C4",
  47. "Specification-Version": "24.0",
  48. "Implementation-Title": project.name,
  49. "Implementation-Version": "${version}",
  50. "Implementation-Vendor" :"C4",
  51. "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
  52. }
  53. }