build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
  13. version = '1.0'
  14. group = 'me.hammerle.km'
  15. archivesBaseName = 'km'
  16. minecraft {
  17. mappings channel: 'snapshot', version: '20201028-1.16.3'
  18. runs {
  19. client {
  20. workingDirectory project.file('runClient')
  21. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  22. property 'forge.logging.console.level', 'info'
  23. args '--username', 'kajetanjohannes'
  24. }
  25. server {
  26. workingDirectory project.file('runServer')
  27. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  28. property 'forge.logging.console.level', 'info'
  29. }
  30. }
  31. }
  32. apply plugin: 'java'
  33. compileJava {
  34. options.compilerArgs << '--release' << '8'
  35. }
  36. dependencies {
  37. minecraft 'net.minecraftforge:forge:1.16.4-35.1.13'
  38. compile 'mysql:mysql-connector-java:5.1.42'
  39. compile files('./libs/SnuviScriptRecoded.jar')
  40. compile files('./libs/kcm-1.0.jar')
  41. }