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.

74 lines
1.5KB

  1. buildscript {
  2. ext.kotlin_version = '1.3.61'
  3. ext.kotlin_version_old = '1.3.60'
  4. dependencies {
  5. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  6. }
  7. repositories {
  8. mavenCentral()
  9. jcenter()
  10. }
  11. }
  12. plugins {
  13. id 'fabric-loom' version '0.2.6-SNAPSHOT'
  14. }
  15. apply plugin: "kotlin"
  16. apply plugin: "idea"
  17. sourceCompatibility = JavaVersion.VERSION_1_8
  18. targetCompatibility = JavaVersion.VERSION_1_8
  19. archivesBaseName = project.archives_base_name
  20. version = project.mod_version
  21. group = project.maven_group
  22. configurations {
  23. compileAndInclude {
  24. extendsFrom compile
  25. extendsFrom include
  26. }
  27. }
  28. dependencies {
  29. // Base dependencies
  30. minecraft "com.mojang:minecraft:${project.minecraft_version}"
  31. mappings "net.fabricmc:yarn:${project.yarn_mappings}"
  32. modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
  33. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.api_version}" // Used for loading textures
  34. modImplementation "io.github.cottonmc.cotton:cotton-config:1.0.0-rc.4" // Used for configs
  35. }
  36. processResources {
  37. inputs.property "version", project.version
  38. from(sourceSets.main.resources.srcDirs) {
  39. include "fabric.mod.json"
  40. expand "version": project.version
  41. }
  42. from(sourceSets.main.resources.srcDirs) {
  43. exclude "fabric.mod.json"
  44. }
  45. }
  46. tasks.withType(JavaCompile) {
  47. options.encoding = "UTF-8"
  48. }
  49. jar {
  50. from "LICENSE"
  51. }
  52. repositories {
  53. mavenCentral()
  54. jcenter()
  55. maven {
  56. url "https://dl.bintray.com/kotlin/exposed"
  57. }
  58. maven {
  59. url 'http://server.bbkr.space:8081/artifactory/libs-release'
  60. }
  61. }