build.gradle.kts 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. plugins {
  2. `kotlin-dsl`
  3. kotlin("plugin.serialization") version embeddedKotlinVersion
  4. id("com.gradle.plugin-publish") version "1.2.1"
  5. /// id("org.sirekanyan.version-checker")
  6. }
  7. group = "org.sirekanyan"
  8. val appVersionName: String by properties
  9. version = appVersionName
  10. repositories {
  11. mavenCentral()
  12. }
  13. dependencies {
  14. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
  15. implementation("io.ktor:ktor-client-cio:2.3.7")
  16. implementation("io.ktor:ktor-client-content-negotiation:2.3.7")
  17. implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.7")
  18. implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.16.1")
  19. implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.16.1")
  20. }
  21. /// versionCheckerOptions {
  22. /// "org.gradle.kotlin.kotlin-dsl" atMost org.gradle.kotlin.dsl.support.expectedKotlinDslPluginsVersion
  23. /// "org.jetbrains.kotlin.plugin.serialization" atMost embeddedKotlinVersion
  24. /// "org.jetbrains.kotlin" atMost embeddedKotlinVersion
  25. /// }
  26. gradlePlugin {
  27. @Suppress("UnstableApiUsage")
  28. website.set("https://sirekanyan.org/projects/version-checker")
  29. @Suppress("UnstableApiUsage")
  30. vcsUrl.set("https://github.com/sirekanian/version-checker")
  31. plugins {
  32. create("versionCheckerPlugin") {
  33. id = "org.sirekanyan.version-checker"
  34. implementationClass = "org.sirekanyan.versionchecker.VersionCheckerPlugin"
  35. displayName = "Latest Version Checker"
  36. description = "A Gradle plugin for checking the latest versions of dependencies"
  37. @Suppress("UnstableApiUsage")
  38. tags.set(listOf("latest", "version", "check", "checker", "versions", "dependency", "dependencies"))
  39. }
  40. }
  41. }
  42. publishing {
  43. repositories {
  44. mavenLocal()
  45. }
  46. }
  47. kotlin {
  48. jvmToolchain(17)
  49. }
  50. java {
  51. sourceCompatibility = JavaVersion.VERSION_11
  52. targetCompatibility = JavaVersion.VERSION_11
  53. }
  54. tasks {
  55. compileKotlin {
  56. kotlinOptions {
  57. jvmTarget = "11"
  58. allWarningsAsErrors = true
  59. }
  60. }
  61. }