Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ project/boot/

# sbt specific
.lib/
.bsp/
dist/*
project/plugins/project/

Expand All @@ -106,4 +107,4 @@ gradle-app.setting
.gradletasknamecache

# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties
# gradle/wrapper/gradle-wrapper.properties
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
#Update-changes
# Update-changes

##TODO
Document it
## TODO

Document it

## Installing

```
resolvers += "Agilogy GitLab" at "https://gitlab.com/api/v4/groups/583742/-/packages/maven"

libraryDependencies += "com.agilogy" %% "update-changes" % "1.2"
```

## Publishing

To publish this package to Agilogy's Package Registry, set the `GITLAB_DEPLOY_TOKEN` environment variable and then run the following command in sbt:

```
sbt:update-changes> +publish
```
32 changes: 24 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,22 +1,38 @@
import com.gilcloud.sbt.gitlab.{GitlabCredentials,GitlabPlugin}

organization := "com.agilogy"

name := "update-changes"

scalaVersion := "2.11.8"

crossScalaVersions := Seq("2.10.6","2.11.8")
scalaVersion := "2.11.12"

bintrayRepository := "scala"

bintrayOrganization := Some("agilogy")
crossScalaVersions := Seq("2.10.6", "2.11.12")

licenses += ("GPL-2.0", url("https://www.gnu.org/licenses/old-licenses/gpl-2.0.html"))
licenses += ("MPL-2.0", url("https://www.mozilla.org/en-US/MPL/2.0/"))

libraryDependencies ++= Seq(
"com.typesafe.play" %% "play-json" % "2.4.6"
"com.typesafe.play" %% "play-json" % "2.4.11"
)

// --> gitlab

GitlabPlugin.autoImport.gitlabGroupId := None
GitlabPlugin.autoImport.gitlabProjectId := Some(26236490)
GitlabPlugin.autoImport.gitlabDomain := "gitlab.com"

GitlabPlugin.autoImport.gitlabCredentials := {
val token = sys.env.get("GITLAB_DEPLOY_TOKEN") match {
case Some(token) => token
case None =>
sLog.value.warn(s"Environment variable GITLAB_DEPLOY_TOKEN is undefined, 'publish' will fail.")
""
}
Some(GitlabCredentials("Deploy-Token", token))
}

// <-- gitlab

enablePlugins(GitVersioning)

git.useGitDescribe := true
git.useGitDescribe := true
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 0.13.8
sbt.version = 1.4.9
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
logLevel := Level.Warn

addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0")

addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.8.5")
addSbtPlugin("com.gilcloud" % "sbt-gitlab" % "0.0.6")