diff --git a/build.gradle b/build.gradle index eeeaa5a5..10b7d2fd 100644 --- a/build.gradle +++ b/build.gradle @@ -11,6 +11,10 @@ publishing { groupId = 'io.github.pseudomuto' artifactId = rootProject.name version = System.getenv("GITHUB_REF_NAME") + // Strip "v" from version number + if (version.startsWith("v")) { + version = version.substring(1) + } pom { name = groupId + ':' + rootProject.name diff --git a/examples/gradle/build.gradle b/examples/gradle/build.gradle index 0031af7e..0f0a3abe 100644 --- a/examples/gradle/build.gradle +++ b/examples/gradle/build.gradle @@ -9,7 +9,7 @@ protobuf { } plugins { doc { - artifact = "io.github.pseudomuto:protoc-gen-doc:v1.5.1" + artifact = "io.github.pseudomuto:protoc-gen-doc:1.5.1" } }