Newer
Older
gitbucket_jkp / doc / release.md
@Naoki Takezoe Naoki Takezoe on 29 Apr 2017 1 KB Update docs

Release Operation

Update version number

Note to update version number in files below:

build.sbt

val Organization = "gitbucket"
val Name = "gitbucket"
val GitBucketVersion = "4.0.0" // <---- update version!!
val ScalatraVersion = "2.4.0"
val JettyVersion = "9.3.6.v20151106"

src/main/scala/gitbucket/core/GitBucketCoreModule.scala

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")
  )
)

Generate release files

Make release war file

Run sbt executable. The release war file and fingerprint are generated into target/executable/gitbucket.war.

$ sbt executable

Deploy assembly jar file

For plug-in development, we have to publish the GitBucket jar file to the Maven central repository as well. At first, hit following command to publish artifacts to the sonatype OSS repository:

$ sbt publish-signed

Then logged-in https://oss.sonatype.org/ and delete following files from the staging repository:

  • gitbucket_2.12-x.x.x.war
  • gitbucket_2.12-x.x.x.war.asc
  • gitbucket_2.12-x.x.x.war.asc.md5
  • gitbucket_2.12-x.x.x.war.asc.sha1
  • gitbucket_2.12-x.x.x.war.md5

At last, close and release the repository.