Note to update version number in files below:
object MyBuild extends Build {
val Organization = "gitbucket"
val Name = "gitbucket"
val Version = "3.2.0" // <---- update here!!
val ScalaVersion = "2.11.6"
val ScalatraVersion = "2.3.1"
object AutoUpdate {
/**
* The history of versions. A head of this sequence is the current BitBucket version.
*/
val versions = Seq(
new Version(3, 2), // <---- add this!!
new Version(3, 1),
...
#!/bin/sh ./sbt.sh assembly mvn deploy:deploy-file \ -DgroupId=gitbucket\ -DartifactId=gitbucket-assembly\ -Dversion=3.2.0\ # <---- update here!! -Dpackaging=jar\ -Dfile=../target/scala-2.11/gitbucket-assembly-x.x.x.jar\ # <---- update here!! -DrepositoryId=sourceforge.jp\ -Durl=scp://shell.sourceforge.jp/home/groups/a/am/amateras/htdocs/mvn/
Note: Release operation requires Ant and Maven.
Run ant with build.xml in the root directory. The release war file is generated into target/scala-2.11/gitbucket.war.
For plug-in development, we have to publish the assembly jar file to the public Maven repository.
cd deploy-assembly/ ./deploy-assembly-jar.sh
This script runs sbt assembly and mvn deploy.