build.gradle.kts 2.0 KB

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