A bridge service between a Minecraft server and a Matrix room
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.1KB

  1. buildscript {
  2. ext.kotlin_version = '1.2.40'
  3. repositories {
  4. jcenter()
  5. maven {
  6. name = "forge"
  7. url = "https://files.minecraftforge.net/maven"
  8. }
  9. }
  10. dependencies {
  11. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  12. }
  13. }
  14. apply plugin: 'net.minecraftforge.gradle.forge'
  15. apply plugin: 'java'
  16. configurations {
  17. shade
  18. compile.extendsFrom shade
  19. }
  20. dependencies {
  21. shade 'net.freeutils:jlhttp:2.4'
  22. }
  23. jar {
  24. configurations.shade.each { dep ->
  25. from(project.zipTree(dep)){
  26. exclude 'META-INF', 'META-INF/**'
  27. }
  28. }
  29. }
  30. version = "0.0.1"
  31. group = "click.vpzom.mods.mcmatrix"
  32. archivesBaseName = "mcmatrix"
  33. minecraft {
  34. version = "1.12.2-14.23.2.2611"
  35. runDir = "run"
  36. mappings = "snapshot_20171003"
  37. }
  38. reobf {
  39. jar {
  40. extraLines "PK: net/freeutils/httpserver click/vpzom/mods/mcmatrix/repack/jlhttp"
  41. }
  42. }
  43. processResources {
  44. inputs.property "version", project.version
  45. inputs.property "mcversion", project.minecraft.version
  46. from(sourceSets.main.resources.srcDirs) {
  47. include 'mcmod.info'
  48. expand 'version':project.version, 'mcversion':project.minecraft.version
  49. }
  50. from(sourceSets.main.resources.srcDirs) {
  51. exclude 'mcmod.info'
  52. }
  53. }