Skip to content

Instantly share code, notes, and snippets.

@LiewJunTung
Created July 29, 2019 16:24
Show Gist options
  • Save LiewJunTung/bc4254efd1a761ddbec808edbc5d6986 to your computer and use it in GitHub Desktop.
Save LiewJunTung/bc4254efd1a761ddbec808edbc5d6986 to your computer and use it in GitHub Desktop.
Gradle plugin tutorial
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.41"
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "0.10.0"
}
pluginBundle {
website = "<substitute your project website>"
vcsUrl = "<uri to project source repository>"
tags = listOf("symbolic link", "linux")
}
gradlePlugin {
plugins {
create("symbolicPlugin") {
id = "com.liewjuntung.symbolicPlugin"
implementationClass = "com.liewjuntung.symbolic_plugin.SymbolicPlugin"
displayName = "Symbolic Link Plugin"
description = "A plugin to do symbolic link"
}
}
}
group = "com.liewjuntung"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment