Skip to content

Commit

Permalink
chore: setup release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
benny123tw committed Jun 18, 2024
1 parent c88e9cc commit 742ea16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import com.vanniktech.maven.publish.SonatypeHost
import net.researchgate.release.ReleaseExtension

plugins {
`java-library`
alias(libs.plugins.publish.maven)
alias(libs.plugins.dokka)
kotlin("jvm") version "2.0.0" apply false
alias(libs.plugins.release)
}

description = "Java library for Vite integration."
Expand Down Expand Up @@ -80,3 +82,12 @@ mavenPublishing {
}
}
}

configure<ReleaseExtension> {
ignoredSnapshotDependencies.set(listOf("net.researchgate:gradle-release"))

tagTemplate.set("v${version}")
preTagCommitMessage.set("chore: release v${version}")
tagCommitMessage.set("chore: release v${version}")
newVersionCommitMessage.set("chore: set version to v${version}")
}
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jre8_javax_servlet = "4.0.1"
jre8_javax_servlet_jsp = "2.3.3"

# JRE 17
dokka = "1.9.20"
springframework = "6.1.8"
springframework_boot = "3.3.0"
spring_dependency_management = "1.1.5"
Expand All @@ -18,7 +19,7 @@ junit = "5.10.2"
assertj = "3.26.0"
testcontainers = "1.19.8"
publish_maven_plugin = "0.28.0"
dokka = "1.9.20"
release_plugin = "3.0.2"

[libraries]
# JRE 8
Expand Down Expand Up @@ -55,4 +56,4 @@ spring_boot = { id = "org.springframework.boot", version.ref = "springframework_
spring_dependency_management = { id = "io.spring.dependency-management", version.ref = "spring_dependency_management" }
publish_maven = { id = "com.vanniktech.maven.publish", version.ref = "publish_maven_plugin" }
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }

release = { id = "net.researchgate.release", version.ref = "release_plugin" }

0 comments on commit 742ea16

Please sign in to comment.