Newer
Older
gitbucket_jkp / doc / release.md
@Naoki Takezoe Naoki Takezoe on 26 Jan 2016 1 KB Fix document

Release Operation

Update version number

Note to update version number in files below:

project/build.scala

object MyBuild extends Build {
  val Organization = "gitbucket"
  val Name = "gitbucket"
  val Version = "3.3.0" // <---- update version!!
  val ScalaVersion = "2.11.6"
  val ScalatraVersion = "2.3.1"

src/main/scala/gitbucket/core/servlet/AutoUpdate.scala

object AutoUpdate {

  /**
   * The history of versions. A head of this sequence is the current GitBucket version.
   */
  val versions = Seq(
    new Version(3, 3), // <---- add this line!!
    new Version(3, 2),

Generate release files

Note: Release operation requires Ant and Maven.

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 assembly jar file to the public Maven repository by release/deploy-assembly-jar.sh.

$ cd release/
$ ./deploy-assembly-jar.sh