Skip to content

Commit

Permalink
Adde Gradle publish
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankoppier committed Apr 18, 2023
1 parent 74dc790 commit 7ca8e93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit" }

[plugins]
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version = "11.3.1" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version = "11.3.1" }
gradle-publish = { id = "com.gradle.plugin-publish", version = "1.2.0" }
7 changes: 7 additions & 0 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id("java-gradle-plugin")
id("maven-publish")
alias(libs.plugins.kotlin)
alias(libs.plugins.gradle.publish)
alias(libs.plugins.ktlint)
}

Expand All @@ -21,9 +22,15 @@ dependencies {
}

gradlePlugin {
website.set("https://github.com/stefankoppier/oasdiff-gradle")
vcsUrl.set("https://github.com/stefankoppier/oasdiff-gradle")

plugins {
create("oasdiff") {
id = "io.github.stefankoppier.oasdiff"
displayName = "oasdiff"
description = "Wrapper for the Tufin oasdiff OpenAPI breaking changes detection tool."
tags.set(listOf("oasdiff", "OpenAPI", "breaking changes", "api validation"))
implementationClass = "io.github.stefankoppier.oasdiff.OasdiffPlugin"
}
}
Expand Down

0 comments on commit 7ca8e93

Please sign in to comment.