Simple gradle plugin written in kotlin.
This commit is contained in:
parent
44db2e93be
commit
a5e2fb9e22
11 changed files with 472 additions and 0 deletions
47
2024/11/gradle_plugin_demo1/build.gradle.kts
Normal file
47
2024/11/gradle_plugin_demo1/build.gradle.kts
Normal file
|
@ -0,0 +1,47 @@
|
|||
plugins {
|
||||
id("pl.polgrabia.demos.plugins.gradle_plugin_demo1") version "1.0-SNAPSHOT"
|
||||
// id("java")
|
||||
// id("com.gradle.plugin-publish") version "1.2.1"
|
||||
id("maven-publish")
|
||||
id("java-gradle-plugin")
|
||||
kotlin("jvm") version "2.0.20"
|
||||
}
|
||||
|
||||
group = "pl.polgrabia.demos.plugins"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation(kotlin("test"))
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(21)
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
create("gradle_plugin_demo1") {
|
||||
id = "pl.polgrabia.demos.plugins.gradle_plugin_demo1"
|
||||
implementationClass = "pl.polgrabia.demos.plugins.DemoPlugin"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
}
|
||||
}
|
||||
|
||||
gradle_demo_plugin {
|
||||
inputParameter = "Hoi"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue