diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index 24412fa..a4b7ffe 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -3,6 +3,7 @@ plugins { id("org.jlleitschuh.gradle.ktlint") version "11.6.0" id("maven-publish") id("java-gradle-plugin") + id("net.researchgate.release") version "3.0.2" } repositories { @@ -20,7 +21,7 @@ gradlePlugin { create("com.strumenta.kolasu.language-server-plugin") { group = "com.strumenta.kolasu" id = "com.strumenta.kolasu.language-server-plugin" - version = "0.0.0" + version = project.version implementationClass = "com.strumenta.kolasu.languageserver.plugin.LanguageServerPlugin" } } @@ -37,3 +38,11 @@ publishing { } } } + +release { + buildTasks.set(listOf(":publish")) + git { + requireBranch.set("") + pushToRemote.set("origin") + } +} \ No newline at end of file diff --git a/plugin/gradle.properties b/plugin/gradle.properties new file mode 100644 index 0000000..583ef68 --- /dev/null +++ b/plugin/gradle.properties @@ -0,0 +1 @@ +version=0.0.1-SNAPSHOT \ No newline at end of file