2026-02-24 21:40:12 +08:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
|
2026-01-17 23:23:46 +08:00
|
|
|
plugins {
|
|
|
|
|
kotlin("jvm")
|
|
|
|
|
id("java-gradle-plugin")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gradlePlugin {
|
|
|
|
|
website = "https://github.com/RTAkland/kotlin-cloudflare-worker"
|
|
|
|
|
vcsUrl = "https://github.com/RTAkland/kotlin-cloudflare-worker.git"
|
|
|
|
|
plugins {
|
|
|
|
|
create("kotlin-cloudflare-worker") {
|
|
|
|
|
id = "kotlin-cloudflare-worker"
|
|
|
|
|
displayName = "kotlin cloudflare worker"
|
|
|
|
|
description = "Kotlin cloudflare worker gradle plugin"
|
|
|
|
|
tags = listOf("tool", "tasks")
|
|
|
|
|
implementationClass = "cn.rtast.cfworker.plugin.KotlinCloudflareWorkerPlugin"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.21")
|
2026-02-24 21:40:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.compileKotlin {
|
|
|
|
|
compilerOptions.jvmTarget = JvmTarget.JVM_11
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.compileJava {
|
|
|
|
|
sourceCompatibility = "11"
|
|
|
|
|
targetCompatibility = "11"
|
2026-01-17 23:23:46 +08:00
|
|
|
}
|