-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
72 lines (67 loc) · 2.3 KB
/
build.sbt
File metadata and controls
72 lines (67 loc) · 2.3 KB
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
import sbt.ThisBuild
import org.jetbrains.sbtidea.Keys.*
import sbt.*
enablePlugins(OssumIncPlugin)
Global / onChangedBuildSource := ReloadOnSourceChanges
(Global / excludeLintKeys) ++= Set(mainClass)
lazy val developers: List[Developer] = List(
Developer(
"AlWein92",
"Alex Weinstein",
"alex.weinstein@improving.com",
url("https://github.com/AlWein92")
),
Developer(
id = "reid-spencer",
"Reid Spencer",
"reid.spencer@ossuminc.com",
url("https://github.com/reid-spencer")
)
)
resolvers += Resolver.githubPackages("ossuminc", "riddl")
lazy val riddlIdeaPlugin: Project =
Root(
ghRepoName = "riddl-idea-plugin",
ghOrgName = "ossuminc",
orgPackage = "com.ossuminc.riddl.plugins.idea",
orgName = "Ossum, Inc.",
orgPage = url("https://www.ossuminc.com/"),
startYr = 2024,
devs = developers,
spdx = "Apache-2.0"
).configure(
With.basic,
With.Scala3.configure(version = Some("3.7.4")),
With.Scalatest(V.scalatest),
With.coverage(0),
With.BuildInfo,
With.GithubPublishing
)
.enablePlugins(JavaAppPackaging)
.settings(
buildInfoPackage := (ThisBuild / organization).value,
buildInfoObject := "RiddlIDEAPluginBuildInfo",
description := "The plugin for supporting RIDDL in IntelliJ",
libraryDependencies ++= Seq(
Dep.minimalJson,
Dep.riddlCommands,
Dep.riddlLib,
Dep.junit,
Dep.opentest4j
),
Test / parallelExecution := false,
ThisBuild / intellijPluginName := "RIDDL4IDEA",
ThisBuild / intellijBuild := "253.29346.240",
ThisBuild / intellijPlatform := IntelliJPlatform.IdeaCommunity,
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always,
intellijPlugins ++= Seq("com.intellij.properties".toPlugin),
Global / intellijAttachSources := true,
Compile / javacOptions ++= "--release" :: "21" :: Nil,
Compile / unmanagedResourceDirectories += baseDirectory.value / "resources",
Test / unmanagedResourceDirectories += baseDirectory.value / "testResources",
runIDE / javaOptions
.withRank(
KeyRanks.Invisible
) += "-Didea.http.proxy.port=5432,-DurlSchemes=http://localhost",
unmanagedBase := baseDirectory.value / "lib"
)