build.gradle.kts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * Copyright (c) Milan Jurkulák 2024.
  3. * Contact:
  4. * e: mimoccc@gmail.com
  5. * e: mj@mjdev.org
  6. * w: https://mjdev.org
  7. */
  8. @Suppress("DEPRECATION", "JcenterRepositoryObsolete")
  9. repositories {
  10. jcenter()
  11. google()
  12. mavenCentral()
  13. gradlePluginPortal()
  14. maven(url = "https://www.jitpack.io")
  15. maven(url = "https://plugins.gradle.org/m2/")
  16. maven(url = "https://oss.sonatype.org/content/repositories/public")
  17. maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
  18. }
  19. plugins {
  20. `kotlin-dsl`
  21. // id("com.github.ben-manes.versions") version "0.41.0"
  22. // id("nl.littlerobots.version-catalog-update") version "0.8.4"
  23. }
  24. //versionCatalogUpdate {
  25. // // sort the catalog by key (default is true)
  26. // sortByKey = true
  27. // // Referenced that are pinned are not automatically updated.
  28. // // They are also not automatically kept however (use keep for that).
  29. // pin {
  30. // // pins all libraries and plugins using the given versions
  31. // versions = ["my-version-name", "other-version"]
  32. // // pins specific libraries that are in the version catalog
  33. // libraries = [libs.my.library.reference, libs.my.other.library.reference]
  34. // // pins specific plugins that are in the version catalog
  35. // plugins = [libs.plugins.my.plugin, libs.plugins.my.other.plugin]
  36. // // pins all libraries (not plugins) for the given groups
  37. // groups = ["com.somegroup", "com.someothergroup"]
  38. // }
  39. // keep {
  40. // // keep has the same options as pin to keep specific entries
  41. // // note that for versions it will ONLY keep the specified version, not all
  42. // // entries that reference it.
  43. // versions = ["my-version-name", "other-version"]
  44. // libraries = [libs.my.library.reference, libs.my.other.library.reference]
  45. // plugins = [libs.plugins.my.plugin, libs.plugins.my.other.plugin]
  46. // groups = ["com.somegroup", "com.someothergroup"]
  47. //
  48. // // keep versions without any library or plugin reference
  49. // keepUnusedVersions = true
  50. // // keep all libraries that aren't used in the project
  51. // keepUnusedLibraries = true
  52. // // keep all plugins that aren't used in the project
  53. // keepUnusedPlugins = true
  54. // }
  55. //}
  56. dependencies {
  57. implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
  58. implementation(gradleApi())
  59. implementation(gradleKotlinDsl())
  60. implementation(kotlin("reflect"))
  61. implementation(libs.gradle.api)
  62. implementation(libs.gradle)
  63. implementation(libs.gradle.kotlin.plugin)
  64. implementation(libs.gradle.detekt.plugin)
  65. implementation(libs.gradle.dokka.plugin)
  66. implementation(libs.gradle.kotlinter)
  67. implementation(libs.jsoup)
  68. implementation(libs.kotlin.stdlib.jdk8)
  69. implementation(libs.detekt.formatting)
  70. implementation(libs.poet.java)
  71. implementation(libs.poet.kotlin)
  72. implementation(libs.eclipse.jgit)
  73. implementation(libs.okhttp3)
  74. implementation(libs.okhttp3.logging.interceptor)
  75. implementation(libs.moshi.kotlin)
  76. implementation(libs.kotlin.mockito)
  77. implementation(libs.junit)
  78. // implementation(libs.apk.parser)
  79. // implementation(libs.gradle.docker.plugin)
  80. // implementation(libs.korim.jvm)
  81. // implementation(libs.photofilter)
  82. // implementation(libs.dependency.analysis.gradle.plugin)
  83. // implementation(libs.google.api.services.androidpublisher)
  84. // implementation(libs.ini4j)
  85. // dokkaPlugin("org.jetbrains.dokka:android-documentation-plugin:1.9.20")
  86. }
  87. gradlePlugin {
  88. plugins {
  89. register("AppPlugin") {
  90. id = "AppPlugin"
  91. displayName = "AppPlugin"
  92. description = "Common application plugin to handle all stuffs needed."
  93. implementationClass = "org.mjdev.gradle.plugin.AppPlugin"
  94. }
  95. register("LibPlugin") {
  96. id = "LibPlugin"
  97. displayName = "LibPlugin"
  98. description = "Common library plugin to handle all stuffs needed."
  99. implementationClass = "org.mjdev.gradle.plugin.LibPlugin"
  100. }
  101. }
  102. }