43 lines
1.0 KiB
Kotlin
43 lines
1.0 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("java-gradle-plugin")
|
|
kotlin("jvm")
|
|
kotlin("kapt")
|
|
|
|
id("com.gradle.plugin-publish")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(kotlin("stdlib"))
|
|
implementation(kotlin("gradle-plugin-api"))
|
|
|
|
kapt("com.google.auto.service:auto-service:1.0-rc6")
|
|
compileOnly("com.google.auto.service:auto-service-annotations:1.0-rc6")
|
|
}
|
|
|
|
pluginBundle {
|
|
website = "https://github.com/bnorm/kotlin-power-assert"
|
|
vcsUrl = "https://github.com/bnorm/kotlin-power-assert.git"
|
|
tags = listOf("kotlin", "power-assert")
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
create("kotlinPowerAssert") {
|
|
id = "com.bnorm.power.kotlin-power-assert"
|
|
displayName = "Kotlin Power Assertion Plugin"
|
|
description = "Kotlin Compiler Plugin to add power to your assertions"
|
|
implementationClass = "com.bnorm.power.PowerAssertGradlePlugin"
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
tasks.register("publish") {
|
|
dependsOn("publishPlugins")
|
|
}
|