forked from dchenbecker/scalajpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
90 lines (70 loc) · 2.79 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
88
89
90
import sbt._
import Keys._
name := "ScalaJPA"
organization := "org.scala-libs"
version := "1.5"
description := "This module provides some basic classes to simplify using JPA (Java Persistence) under Scala."
crossScalaVersions := Seq("2.12.0", "2.13.1")
// Only for RC releases
//scalaBinaryVersion <<= scalaVersion,
resolvers ++= Seq(
"Sonatype Release" at "https://oss.sonatype.org/content/repositories/releases/",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
"Jboss Public Repository" at "https://repository.jboss.org/nexus/content/groups/public-jboss/",
"Typesafe Repository" at "https://repo.typesafe.com/typesafe/releases/",
"Maven Repo 1" at "https://repo1.maven.org/maven2/",
"Guiceyfruit" at "https://guiceyfruit.googlecode.com/svn/repo/releases/",
"sbt-plugin-releases" at "https://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"
)
libraryDependencies ++= Seq(
// https://mvnrepository.com/artifact/javax.persistence/javax.persistence-api
"javax.persistence" % "javax.persistence-api" % "2.2" % "provided",
"geronimo-spec" % "geronimo-spec-jta" % "1.0-M1" % "provided",
"com.h2database" % "h2" % "1.4.200" % "test",
"org.hibernate" % "hibernate-entitymanager" % "5.2.18.Final" % "test",
"org.specs2" %% "specs2-core" % "4.9.4" % "test",
"ch.qos.logback" % "logback-classic" % "0.9.27" % "test"
)
publishMavenStyle := true
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
credentials += Credentials(Path.userHome / ".ivy2" / "sonatype.credentials")
publishArtifact in Test := false
pomExtra :=
<xml:group>
<inceptionYear>2008</inceptionYear>
<url>https://github.com/dchenbecker/scalajpa</url>
<licenses>
<license>
<name>Apache License, ASL Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>dchenbecker</id>
<name>Derek Chen-Becker</name>
<timezone>-7</timezone>
<email>java [at] chen-becker.org</email>
<roles>
<role>BDFL</role>
</roles>
</developer>
</developers>
<issueManagement>
<system>GitHub</system>
<url>http://github.com/dchenbecker/scalajpa/issues</url>
</issueManagement>
<scm>
<connection>scm:git:git@github.com:dchenbecker/scalajpa.git</connection>
<url>http://github.com/dchenbecker/scalajpa/tree/master</url>
</scm>
</xml:group>
val scalajpa = Project(id = "ScalaJPA", base = file("."))