build.gradle.kts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. plugins {
  2. `kotlin-dsl`
  3. kotlin("plugin.serialization") version embeddedKotlinVersion
  4. id("com.gradle.plugin-publish") version "1.2.0"
  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.6.4")
  15. implementation("io.ktor:ktor-client-cio:2.3.0")
  16. implementation("io.ktor:ktor-client-content-negotiation:2.3.0")
  17. implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.0")
  18. implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.15.0")
  19. implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.15.0")
  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:kotlin-stdlib-jdk8" atMost embeddedKotlinVersion
  25. /// "org.jetbrains.kotlin:kotlin-reflect" atMost embeddedKotlinVersion
  26. /// }
  27. gradlePlugin {
  28. @Suppress("UnstableApiUsage")
  29. website.set("https://sirekanyan.org/projects/version-checker")
  30. @Suppress("UnstableApiUsage")
  31. vcsUrl.set("https://github.com/sirekanian/version-checker")
  32. plugins {
  33. create("versionCheckerPlugin") {
  34. id = "org.sirekanyan.version-checker"
  35. implementationClass = "org.sirekanyan.versionchecker.VersionCheckerPlugin"
  36. displayName = "Latest Version Checker"
  37. description = "A Gradle plugin for checking the latest versions of dependencies"
  38. @Suppress("UnstableApiUsage")
  39. tags.set(listOf("latest", "version", "check", "checker", "versions", "dependency", "dependencies"))
  40. }
  41. }
  42. }
  43. publishing {
  44. repositories {
  45. mavenLocal()
  46. }
  47. }
  48. kotlin {
  49. jvmToolchain(11)
  50. }
  51. tasks {
  52. compileKotlin {
  53. kotlinOptions {
  54. allWarningsAsErrors = true
  55. }
  56. }
  57. }