Skip to content

Commit

Permalink
Added a proper structure to the sbt project
Browse files Browse the repository at this point in the history
  • Loading branch information
rcardin committed Apr 26, 2024
1 parent e6cf61f commit 3a409b8
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 18 deletions.
62 changes: 45 additions & 17 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,25 +1,53 @@
inThisBuild(List(
organization := "in.rcard",
homepage := Some(url("https://github.com/rcardin")),
// Alternatively License.Apache2 see https://github.com/sbt/librarymanagement/blob/develop/core/src/main/scala/sbt/librarymanagement/License.scala
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"rcardin",
"Riccardo Cardin",
"riccardo DOT cardin AT gmail.com",
url("https://github.com/rcardin/raise4s")
inThisBuild(
List(
organization := "in.rcard",
homepage := Some(url("https://github.com/rcardin")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"rcardin",
"Riccardo Cardin",
"riccardo DOT cardin AT gmail.com",
url("https://github.com/rcardin/raise4s")
)
)
)
))
)

ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"

name := "raise4s"
//version := "0.0.1-SNAPSHOT"
scalaVersion := "3.4.1"
lazy val core = project
.settings(
name := "raise4s",
libraryDependencies ++= commonDependencies
)

lazy val ox = project
.settings(
name := "raise4s-ox",
libraryDependencies ++= commonDependencies ++ Seq(
dependencies.ox
)
)
.dependsOn(
core
)

ThisBuild / scalaVersion := "3.4.1"

lazy val dependencies =
new {
val scalatestVersion = "3.2.17"
val oxVersion = "0.1.0"
val ox = "com.softwaremill.ox" %% "core" % oxVersion
val scalatest = "org.scalatest" %% "scalatest" % scalatestVersion
}

lazy val commonDependencies = Seq(
dependencies.scalatest % Test
)

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.17" % Test
)
)
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.6.2
sbt.version=1.9.9

0 comments on commit 3a409b8

Please sign in to comment.