2023-09-20 22:13:33 +00:00
|
|
|
@file:Suppress("UnstableApiUsage")
|
2023-09-23 22:40:40 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
2023-09-04 06:15:21 +00:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
2023-09-20 22:13:33 +00:00
|
|
|
embeddedKotlin("plugin.serialization")
|
2023-09-04 06:15:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
gradlePluginPortal()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-12-01 00:48:07 +00:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0")
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-serialization:1.7.3")
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
|
|
|
|
implementation("com.charleskorn.kaml:kaml:0.66.0")
|
2023-09-04 06:15:21 +00:00
|
|
|
}
|
|
|
|
|
2023-09-23 22:40:40 +00:00
|
|
|
java {
|
2023-10-06 23:09:55 +00:00
|
|
|
sourceCompatibility = JavaVersion.toVersion(17)
|
|
|
|
targetCompatibility = JavaVersion.toVersion(17)
|
2023-09-23 22:40:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<KotlinCompile> {
|
2023-10-06 23:09:55 +00:00
|
|
|
kotlinOptions.jvmTarget = "17"
|
2023-09-23 22:40:40 +00:00
|
|
|
}
|
|
|
|
|
2023-09-04 06:15:21 +00:00
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
2023-09-23 22:40:40 +00: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-04 06:15:21 +00:00
|
|
|
create("pork_ast") {
|
|
|
|
id = "gay.pizza.pork.ast"
|
2023-09-05 04:50:27 +00:00
|
|
|
implementationClass = "gay.pizza.pork.buildext.PorkAstPlugin"
|
2023-09-04 06:15:21 +00:00
|
|
|
|
|
|
|
displayName = "Pork AST"
|
|
|
|
description = "AST generation code for pork"
|
|
|
|
}
|
2023-09-05 04:50:27 +00: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-11 00:47:50 +00: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-04 06:15:21 +00:00
|
|
|
}
|
|
|
|
}
|