doc/release.md
Note to update version number in files below:
val Organization = "gitbucket"
val Name = "gitbucket"
val GitBucketVersion = "4.0.0" // <---- update version!!
val ScalatraVersion = "2.4.0"
val JettyVersion = "9.3.6.v20151106"
object GitBucketCoreModule extends Module("gitbucket-core",
new Version("4.0.0",
new LiquibaseMigration("update/gitbucket-core_4.0.xml"),
new SqlMigration("update/gitbucket-core_4.0.sql")
),
// add new version definition
new Version("4.1.0",
new LiquibaseMigration("update/gitbucket-core_4.1.xml")
)
)
For plugin development, we have to publish the GitBucket jar file to the Maven central repository before releasing GitBucket itself.
First, stage artifacts on your machine:
./sbt publishSigned
Next, upload artifacts to Sonatype's Central Portal with the following command:
./sbt sonaUpload
Then log in to https://central.sonatype.com/ and publish the deployment.
You need to wait up to a day for the default bundled plugins to be updated:
Run ./sbt executable. The release war file and fingerprint are generated into target/executable/gitbucket.war.
./sbt executable
Create new release from the corresponding tag on GitHub, then upload the generated jar file and fingerprints to the release.