OSDN Git Service

Add POM metadata.
[mikumikustudio/MikuMikuStudio.git] / project / Common.scala
1 import sbt._
2 import sbt.Keys._
3
4 object Common {
5   lazy val settings = Seq(
6     organization := "info.projectkyoto"
7     , version := "1.0.0-SNAPSHOT"
8     //    , homepage := Some(url("https://github.com/chototsu/MikuMikuStudio"))
9     , startYear := Some(2010)
10     , description := "A game engine compatible with MikuMikuDance."
11     //    , licenses += "The BSD 3-Clause License" -> url("http://opensource.org/licenses/BSD-3-Clause")
12     , autoScalaLibrary := false
13     , crossPaths := false
14     , javacOptions ++= Seq("-encoding", "UTF-8", "-source", "1.6", "-target", "1.6")
15     , javacOptions in doc := Seq("-locale", "en_US", "-encoding", "UTF-8", "-source", "1.6")
16     , resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
17     , resolvers += "nifty-maven-repo.sourceforge.net" at "http://nifty-gui.sourceforge.net/nifty-maven-repo"
18     , pomExtra := (
19       <url>https://github.com/chototsu/MikuMikuStudio</url>
20         <licenses>
21           <license>
22             <name>BSD-style</name>
23             <url>http://www.opensource.org/licenses/bsd-license.php</url>
24             <distribution>repo</distribution>
25           </license>
26         </licenses>
27         <scm>
28           <url>git@github.com:chototsu/MikuMikuStudio.git</url>
29           <connection>scm:git:git@github.com:chototsu/MikuMikuStudio.git</connection>
30         </scm>
31         <developers>
32           <developer>
33             <id>chototsu</id>
34             <name>Kazuhiko Kobayashi</name>
35             <url>http://mms.projectkyoto.info/</url>
36           </developer>
37         </developers>)
38     , publishMavenStyle := true
39     , publishTo := {
40       val nexus = "https://oss.sonatype.org/"
41       if (isSnapshot.value)
42         Some("snapshots" at nexus + "content/repositories/snapshots")
43       else
44         Some("releases" at nexus + "service/local/staging/deploy/maven2")
45     }
46     , publishArtifact in Test := false
47   )
48 }
49