mirror of
https://github.com/SpinalHDL/SpinalTemplateSbt.git
synced 2025-10-22 23:58:44 +08:00
restructure build.sbt according to latest sbt docs
This commit is contained in:
22
build.sbt
22
build.sbt
@@ -1,12 +1,16 @@
|
|||||||
name := "SpinalTemplateSbt"
|
ThisBuild / version := "1.0"
|
||||||
version := "1.0"
|
ThisBuild / scalaVersion := "2.12.14"
|
||||||
scalaVersion := "2.12.14"
|
ThisBuild / organization := "org.example"
|
||||||
val spinalVersion = "1.4.3"
|
|
||||||
|
|
||||||
libraryDependencies ++= Seq(
|
val spinalVersion = "1.4.3"
|
||||||
"com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion,
|
val spinalCore = "com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion
|
||||||
"com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion,
|
val spinalLib = "com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion
|
||||||
compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % 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
|
fork := true
|
||||||
|
Reference in New Issue
Block a user