From bb5f15798eafc8b318fd1832f718e9ed6517ccd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20W=C3=A4chter?= Date: Mon, 14 Jun 2021 07:29:01 +0200 Subject: [PATCH] restructure build.sbt according to latest sbt docs --- build.sbt | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/build.sbt b/build.sbt index df03737..8ef2c55 100644 --- a/build.sbt +++ b/build.sbt @@ -1,12 +1,16 @@ -name := "SpinalTemplateSbt" -version := "1.0" -scalaVersion := "2.12.14" -val spinalVersion = "1.4.3" +ThisBuild / version := "1.0" +ThisBuild / scalaVersion := "2.12.14" +ThisBuild / organization := "org.example" -libraryDependencies ++= Seq( - "com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion, - "com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion, - compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % spinalVersion) -) +val spinalVersion = "1.4.3" +val spinalCore = "com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion +val spinalLib = "com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion +val spinalIdslPlugin = compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % spinalVersion) + +lazy val mylib = (project in file(".")) + .settings( + name := "SpinalTemplateSbt", + libraryDependencies ++= Seq(spinalCore, spinalLib, spinalIdslPlugin) + ) fork := true