build.gradle 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "http://files.minecraftforge.net/maven" }
  5. }
  6. dependencies {
  7. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  8. classpath 'mysql:mysql-connector-java:5.1.42'
  9. }
  10. }
  11. apply plugin: 'net.minecraftforge.gradle.forge'
  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" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  15. archivesBaseName = "km"
  16. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  17. compileJava {
  18. sourceCompatibility = targetCompatibility = '1.8'
  19. }
  20. minecraft {
  21. version = "1.12.2-14.23.0.2537"
  22. runDir = "run"
  23. // the mappings can be changed at any time, and must be in the following format.
  24. // snapshot_YYYYMMDD snapshot are built nightly.
  25. // stable_# stables are built at the discretion of the MCP team.
  26. // Use non-default mappings at your own risk. they may not always work.
  27. // simply re-run your setup task after changing the mappings to update your workspace.
  28. mappings = "snapshot_20171003"
  29. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  30. }
  31. dependencies {
  32. // you may put jars on which you depend on in ./libs
  33. // or you may define them like so..
  34. //compile "some.group:artifact:version:classifier"
  35. //compile "some.group:artifact:version"
  36. // real examples
  37. //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
  38. //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  39. // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
  40. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  41. // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
  42. // except that these dependencies get remapped to your current MCP mappings
  43. //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  44. //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  45. // for more info...
  46. // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  47. // http://www.gradle.org/docs/current/userguide/dependency_management.html
  48. compile 'mysql:mysql-connector-java:5.1.42'
  49. compile files('./../../SnuviScriptRecoded/dist/SnuviScriptRecoded.jar')
  50. compile files('./../KajetansCoreMod/build/libs/kcm-1.0.jar')
  51. }
  52. processResources {
  53. // this will ensure that this task is redone when the versions change.
  54. inputs.property "version", project.version
  55. inputs.property "mcversion", project.minecraft.version
  56. // replace stuff in mcmod.info, nothing else
  57. from(sourceSets.main.resources.srcDirs) {
  58. include 'mcmod.info'
  59. // replace version and mcversion
  60. expand 'version':project.version, 'mcversion':project.minecraft.version
  61. }
  62. // copy everything else except the mcmod.info
  63. from(sourceSets.main.resources.srcDirs) {
  64. exclude 'mcmod.info'
  65. }
  66. }
  67. runClient
  68. {
  69. args '--username', 'kajetanjohannes'
  70. }