Skip to content

Commit

Permalink
#1 Add basic SBT structure (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakipatryk committed Dec 15, 2023
1 parent 46867a7 commit 9366f08
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
27 changes: 27 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2023 ABSA Group Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import Dependencies._

ThisBuild / organization := "za.co.absa"
ThisBuild / scalaVersion := Versions.scala212
ThisBuild / versionScheme := Some("early-semver")

lazy val root = (project in file("."))
.settings(
name := "springdoc-openapi-scala",
libraryDependencies ++= dependencyList(scalaVersion.value)
)
39 changes: 39 additions & 0 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Copyright 2023 ABSA Group Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import sbt._

object Dependencies {

object Versions {
val scala212 = "2.12.18"
val scala213 = "2.13.12"

val scalatest = "3.2.15"

val springdocOpenapi = "1.7.0"
}

def dependencyList(scalaVersion: String): Seq[ModuleID] = {
List(
"org.scala-lang" % "scala-reflect" % scalaVersion,
"org.springdoc" % "springdoc-openapi-webmvc-core" % Versions.springdocOpenapi % Provided,
"org.scalatest" %% "scalatest" % Versions.scalatest % Test,
"org.scalatest" %% "scalatest-flatspec" % Versions.scalatest % Test
)
}

}
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version = 1.9.7
17 changes: 17 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright 2023 ABSA Group Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

addSbtPlugin("org.jetbrains.scala" % "sbt-ide-settings" % "1.1.1")

0 comments on commit 9366f08

Please sign in to comment.