build.gradle 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 = '4.0.1'
  16. group = 'com.blamejared.controlling'
  17. archivesBaseName = 'Controlling'
  18. sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
  19. minecraft {
  20. mappings channel: 'snapshot', version: '20180921-1.13'
  21. runs {
  22. client = {
  23. // recommended logging data for a userdev environment
  24. properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
  25. // recommended logging level for the console
  26. properties 'forge.logging.console.level': 'debug'
  27. workingDirectory project.file('run').canonicalPath
  28. source sourceSets.main
  29. }
  30. server = {
  31. // recommended logging data for a userdev environment
  32. properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
  33. // recommended logging level for the console
  34. properties 'forge.logging.console.level': 'debug'
  35. workingDirectory project.file('run').canonicalPath
  36. source sourceSets.main
  37. }
  38. }
  39. }
  40. dependencies {
  41. minecraft 'net.minecraftforge:forge:1.13.2-25.0.10'
  42. }
  43. jar {
  44. manifest {
  45. attributes(["Specification-Title" : "controlling",
  46. "Specification-Vendor" : "BlameJared",
  47. "Specification-Version" : "24.0", // We are version 1 of the modlauncher specification
  48. "Implementation-Title" : project.name,
  49. "Implementation-Version" : "${version}",
  50. "Implementation-Vendor" : "controlling",
  51. "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
  52. }
  53. }