Skip to content

Commit

Permalink
Licenses, scmInfo, etc. added to build.sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbanda committed Aug 25, 2021
1 parent 16a67f0 commit a13f294
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ name := "ada-web-highcharts"

version := "0.9.0"

isSnapshot := false

scalaVersion := "2.11.12"

lazy val root = (project in file(".")).enablePlugins(PlayScala, SbtWeb)
Expand Down Expand Up @@ -66,3 +68,26 @@ pipelineStages in Assets := Seq(uglify, digest, gzip)
includeFilter in digest := (includeFilter in digest).value && new SimpleFileFilter(f => f.getPath.contains("public/"))

excludeFilter in gzip := (excludeFilter in gzip).value || new SimpleFileFilter(file => new File(file.getAbsolutePath + ".gz").exists)

// POM settings for Sonatype
homepage := Some(url("https://ada-discovery.github.io"))

publishMavenStyle := true

scmInfo := Some(ScmInfo(url("https://github.com/ada-discovery/ada-web-highcharts"), "scm:[email protected]:ada-discovery/ada-web-highcharts.git"))

developers := List(
Developer("bnd", "Peter Banda", "[email protected]", url("https://peterbanda.net"))
)

licenses ++= Seq(
"Creative Commons Attribution-NonCommercial 3.0" -> url("http://creativecommons.org/licenses/by-nc/3.0"),
"Highcharts" -> url("https://shop.highsoft.com")
)

publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)

0 comments on commit a13f294

Please sign in to comment.