diff --git a/build.sbt b/build.sbt index f31d2cd..603c167 100644 --- a/build.sbt +++ b/build.sbt @@ -1,6 +1,6 @@ val Organization = "gitbucket" val Name = "gitbucket" -val GitBucketVersion = "3.14.0-SNAPSHOT" +val GitBucketVersion = "4.0.0-SNAPSHOT" val ScalatraVersion = "2.4.0" val JettyVersion = "9.3.6.v20151106" diff --git a/doc/release.md b/doc/release.md index 98ba383..d677a26 100644 --- a/doc/release.md +++ b/doc/release.md @@ -11,22 +11,24 @@ ```scala val Organization = "gitbucket" val Name = "gitbucket" -val GitBucketVersion = "3.12.0" // <---- update version!! +val GitBucketVersion = "4.0.0" // <---- update version!! val ScalatraVersion = "2.4.0" val JettyVersion = "9.3.6.v20151106" ``` -### src/main/scala/gitbucket/core/servlet/AutoUpdate.scala +### src/main/scala/gitbucket/core/GitBucketCoreModule.scala ```scala -object AutoUpdate { - - /** - * The history of versions. A head of this sequence is the current GitBucket version. - */ - val versions = Seq( - new Version(3, 12), // <---- add this line!! - new Version(3, 11), +object GitBucketCoreModule extends Module("gitbucket-core", + // add new version definition + new Version("4.1.0", + new LiquibaseMigration("update/gitbucket-core_4.1.xml") + ), + new Version("4.0.0", + new LiquibaseMigration("update/gitbucket-core_4.0.xml"), + new SqlMigration("update/gitbucket-core_4.0.sql") + ) +) ``` Generate release files