forked from karma4u101/lift-jquery-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
93 lines (67 loc) · 2.47 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name := "Lift-JQuery-Module"
organization := "net.liftmodules"
liftVersion <<= liftVersion ?? "2.5-M1"
version <<= liftVersion apply { _ + "-1.0" }
scalaVersion := "2.9.2"
scalacOptions ++= Seq("-unchecked", "-deprecation")
crossScalaVersions := Seq("2.9.2", "2.9.1-1", "2.9.1")
logLevel := Level.Info
resolvers ++= Seq(
"CB Central Mirror" at "http://repo.cloudbees.com/content/groups/public",
"Java.net Maven2 Repository" at "http://download.java.net/maven/2/"
)
libraryDependencies <++= liftVersion { v =>
"net.liftweb" %% "lift-webkit" % v % "compile->default" ::
"net.liftweb" %% "lift-testkit" % v % "compile->default" ::
Nil
}
//################################################################
//#### THE YUI COMPRESSION BUILD
//##
//##
//##
//################################################################
seq(yuiSettings: _*)
excludeFilter in (Compile, YuiCompressorKeys.jsResources) := "*-debug.js" | "*-min.js"
excludeFilter in (Compile, YuiCompressorKeys.cssResources) := "*-debug.css" | "*-min.css"
YuiCompressorKeys.minSuffix := "-min"
//################################################################
//#### Publish to sonatype org
//##
//##
//##
//################################################################
credentials += Credentials(Path.userHome / ".sbt" / "liftmodules" /".credentials" )
//credentials += Credentials( file("/private/liftmodules/sonatype.credentials") )
//pgpPublicRing := file("/home/peter/.gnupg/mykey.asc")
publishTo <<= version { v: String =>
val sonatype = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at sonatype + "content/repositories/snapshots")
else
Some("releases" at sonatype + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>https://github.com/karma4u101/lift-jquery-module</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://maven.apache.org/ref/2.1.0/maven-profile/license.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:karma4u101/lift-jquery-module.git</url>
<connection>scm:git:[email protected]:karma4u101/lift-jquery-module.git</connection>
</scm>
<developers>
<developer>
<id>karma4u101</id>
<name>Peter Petersson</name>
<url>http://www.media4u101.se</url>
</developer>
</developers>
)