mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-02 12:50:55 +00:00
65 lines
1.6 KiB
Plaintext
65 lines
1.6 KiB
Plaintext
@file:Suppress("UnstableApiUsage")
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
`kotlin-dsl`
|
|
embeddedKotlin("plugin.serialization")
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
|
|
dependencies {
|
|
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")
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.toVersion(17)
|
|
targetCompatibility = JavaVersion.toVersion(17)
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "17"
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
create("pork_root") {
|
|
id = "gay.pizza.pork.root"
|
|
implementationClass = "gay.pizza.pork.buildext.PorkRootPlugin"
|
|
|
|
displayName = "Pork Root"
|
|
description = "Root convention for pork"
|
|
}
|
|
|
|
create("pork_ast") {
|
|
id = "gay.pizza.pork.ast"
|
|
implementationClass = "gay.pizza.pork.buildext.PorkAstPlugin"
|
|
|
|
displayName = "Pork AST"
|
|
description = "AST generation code for pork"
|
|
}
|
|
|
|
create("pork_module") {
|
|
id = "gay.pizza.pork.module"
|
|
implementationClass = "gay.pizza.pork.buildext.PorkModulePlugin"
|
|
|
|
displayName = "Pork Module"
|
|
description = "Module convention for pork"
|
|
}
|
|
|
|
create("pork_stdlib") {
|
|
id = "gay.pizza.pork.stdlib"
|
|
implementationClass = "gay.pizza.pork.buildext.PorkStdlibPlugin"
|
|
|
|
displayName = "Pork Stdlib"
|
|
description = "Stdlib generation code for pork"
|
|
}
|
|
}
|
|
}
|