2023-09-20 15:13:33 -07:00
|
|
|
@file:Suppress("UnstableApiUsage")
|
2025-03-15 21:16:48 -07:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
2023-09-23 15:40:40 -07:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
2023-09-03 23:15:21 -07:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
2023-09-20 15:13:33 -07:00
|
|
|
embeddedKotlin("plugin.serialization")
|
2023-09-03 23:15:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2025-07-03 03:18:11 -07:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.0")
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-serialization:2.2.0")
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
|
|
|
|
implementation("com.charleskorn.kaml:kaml:0.83.0")
|
2023-09-03 23:15:21 -07:00
|
|
|
}
|
|
|
|
|
2023-09-23 15:40:40 -07:00
|
|
|
java {
|
2025-03-16 23:57:48 -07:00
|
|
|
val javaVersion = JavaVersion.toVersion(21)
|
|
|
|
sourceCompatibility = javaVersion
|
|
|
|
targetCompatibility = javaVersion
|
2023-09-23 15:40:40 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<KotlinCompile> {
|
2025-03-15 21:16:48 -07:00
|
|
|
compilerOptions {
|
2025-03-16 23:57:48 -07:00
|
|
|
jvmTarget.set(JvmTarget.JVM_21)
|
2025-03-15 21:16:48 -07:00
|
|
|
}
|
2023-09-23 15:40:40 -07:00
|
|
|
}
|
|
|
|
|
2023-09-03 23:15:21 -07:00
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
2023-09-23 15:40:40 -07:00
|
|
|
create("pork_root") {
|
|
|
|
id = "gay.pizza.pork.root"
|
|
|
|
implementationClass = "gay.pizza.pork.buildext.PorkRootPlugin"
|
|
|
|
|
|
|
|
displayName = "Pork Root"
|
|
|
|
description = "Root convention for pork"
|
|
|
|
}
|
|
|
|
|
2023-09-03 23:15:21 -07:00
|
|
|
create("pork_ast") {
|
|
|
|
id = "gay.pizza.pork.ast"
|
2023-09-04 21:50:27 -07:00
|
|
|
implementationClass = "gay.pizza.pork.buildext.PorkAstPlugin"
|
2023-09-03 23:15:21 -07:00
|
|
|
|
|
|
|
displayName = "Pork AST"
|
|
|
|
description = "AST generation code for pork"
|
|
|
|
}
|
2023-09-04 21:50:27 -07:00
|
|
|
|
|
|
|
create("pork_module") {
|
|
|
|
id = "gay.pizza.pork.module"
|
|
|
|
implementationClass = "gay.pizza.pork.buildext.PorkModulePlugin"
|
|
|
|
|
|
|
|
displayName = "Pork Module"
|
|
|
|
description = "Module convention for pork"
|
|
|
|
}
|
2023-09-10 20:47:50 -04:00
|
|
|
|
|
|
|
create("pork_stdlib") {
|
|
|
|
id = "gay.pizza.pork.stdlib"
|
|
|
|
implementationClass = "gay.pizza.pork.buildext.PorkStdlibPlugin"
|
|
|
|
|
|
|
|
displayName = "Pork Stdlib"
|
|
|
|
description = "Stdlib generation code for pork"
|
|
|
|
}
|
2023-09-03 23:15:21 -07:00
|
|
|
}
|
|
|
|
}
|