build.gradle 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 = '6.1.3'
  16. group = 'com.blamejared.controlling'
  17. archivesBaseName = 'Controlling'
  18. sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
  19. minecraft {
  20. mappings channel: 'snapshot', version: '20200409-1.15.1'
  21. accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
  22. runs {
  23. client {
  24. workingDirectory project.file('run')
  25. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  26. property 'forge.logging.console.level', 'debug'
  27. mods {
  28. examplemod {
  29. source sourceSets.main
  30. }
  31. }
  32. }
  33. server {
  34. workingDirectory project.file('run')
  35. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  36. property 'forge.logging.console.level', 'debug'
  37. mods {
  38. examplemod {
  39. source sourceSets.main
  40. }
  41. }
  42. }
  43. }
  44. }
  45. dependencies {
  46. minecraft 'net.minecraftforge:forge:1.15.2-31.1.43'
  47. }
  48. jar {
  49. manifest {
  50. attributes([
  51. "Specification-Title" : "controlling",
  52. "Specification-Vendor" : "BlameJared",
  53. "Specification-Version" : "1",
  54. "Implementation-Title" : project.name,
  55. "Implementation-Version" : "${version}",
  56. "Implementation-Vendor" : "controlling",
  57. "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
  58. }
  59. }