build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. apply plugin: 'eclipse'
  14. apply plugin: 'maven-publish'
  15. version = '1.0'
  16. group = 'me.hammerle.km'
  17. archivesBaseName = 'km'
  18. sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  19. minecraft {
  20. mappings channel: 'snapshot', version: '20190719-1.14.3'
  21. runs {
  22. client {
  23. workingDirectory project.file('run')
  24. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  25. property 'forge.logging.console.level', 'info'
  26. args '--username', 'kajetanjohannes'
  27. }
  28. server {
  29. workingDirectory project.file('run')
  30. property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
  31. property 'forge.logging.console.level', 'info'
  32. }
  33. }
  34. }
  35. dependencies {
  36. minecraft 'net.minecraftforge:forge:1.14.4-28.0.91'
  37. compile 'mysql:mysql-connector-java:5.1.42'
  38. compile files('./libs/SnuviScriptRecoded.jar')
  39. compile files('./libs/kcm-1.0.jar')
  40. }