-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
66 lines (57 loc) · 2.05 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
`kotlin-dsl`
kotlin("plugin.serialization") version embeddedKotlinVersion
id("com.gradle.plugin-publish") version "1.3.0"
/// id("org.sirekanyan.version-checker")
}
group = "org.sirekanyan"
val appVersionName: String by properties
version = appVersionName
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
implementation("io.ktor:ktor-client-cio:3.0.2")
implementation("io.ktor:ktor-client-content-negotiation:3.0.2")
implementation("io.ktor:ktor-serialization-kotlinx-json:3.0.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.18.2")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.18.2")
testImplementation("junit:junit:4.13.2")
}
/// versionCheckerOptions {
/// "org.gradle.kotlin.kotlin-dsl" atMost org.gradle.kotlin.dsl.support.expectedKotlinDslPluginsVersion
/// "org.jetbrains.kotlin.plugin.serialization" atMost embeddedKotlinVersion
/// "org.jetbrains.kotlin" atMost embeddedKotlinVersion
/// }
gradlePlugin {
website.set("https://sirekanyan.org/projects/version-checker")
vcsUrl.set("https://github.com/sirekanian/version-checker")
plugins {
create("versionCheckerPlugin") {
id = "org.sirekanyan.version-checker"
implementationClass = "org.sirekanyan.versionchecker.VersionCheckerPlugin"
displayName = "Latest Version Checker"
description = "A Gradle plugin for checking the latest versions of dependencies"
@Suppress("UnstableApiUsage")
tags.set(listOf("latest", "version", "check", "checker", "versions", "dependency", "dependencies"))
}
}
}
publishing {
repositories {
mavenLocal()
}
}
kotlin {
jvmToolchain(17)
compilerOptions {
jvmTarget = JvmTarget.JVM_11
allWarningsAsErrors = true
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}