@@ -1076,11 +1076,30 @@ object Build {
1076
1076
case Bootstrapped => `scala3-presentation-compiler-bootstrapped`
1077
1077
}
1078
1078
1079
+ def scala3PresentationCompilerBuildInfo (implicit mode : Mode ) =
1080
+ Seq (
1081
+ ideTestsDependencyClasspath := {
1082
+ val dottyLib = (dottyLibrary / Compile / classDirectory).value
1083
+ val scalaLib =
1084
+ (dottyLibrary / Compile / dependencyClasspath)
1085
+ .value
1086
+ .map(_.data)
1087
+ .filter(_.getName.matches(" scala-library.*\\ .jar" ))
1088
+ .toList
1089
+ dottyLib :: scalaLib
1090
+ // Nil
1091
+ },
1092
+ Compile / buildInfoPackage := " dotty.tools.pc.util" ,
1093
+ Compile / buildInfoKeys := Seq (scalaVersion),
1094
+ Test / buildInfoKeys := Seq (scalaVersion, ideTestsDependencyClasspath)
1095
+ ) ++ BuildInfoPlugin .buildInfoScopedSettings(Compile ) ++
1096
+ BuildInfoPlugin .buildInfoScopedSettings(Test ) ++
1097
+ BuildInfoPlugin .buildInfoDefaultSettings
1098
+
1079
1099
lazy val presentationCompilerSettings = {
1080
1100
val mtagsVersion = " 0.11.12+45-45df705d-SNAPSHOT" // Will be set to stable release after 0.11.13 is published
1081
1101
1082
1102
Seq (
1083
- moduleName := " scala3-presentation-compiler" ,
1084
1103
libraryDependencies ++= Seq (
1085
1104
" org.lz4" % " lz4-java" % " 1.8.0" ,
1086
1105
" io.get-coursier" % " interface" % " 1.0.13" ,
@@ -1121,22 +1140,7 @@ object Build {
1121
1140
mtagsSharedSources
1122
1141
} (Set (mtagsSharedSourceJar)).toSeq
1123
1142
}.taskValue,
1124
- ideTestsDependencyClasspath := {
1125
- val dottyLib = (`scala3-library-bootstrapped` / Compile / classDirectory).value
1126
- val scalaLib =
1127
- (`scala3-library-bootstrapped` / Compile / dependencyClasspath)
1128
- .value
1129
- .map(_.data)
1130
- .filter(_.getName.matches(" scala-library.*\\ .jar" ))
1131
- .toList
1132
- dottyLib :: scalaLib
1133
- },
1134
- Compile / buildInfoPackage := " dotty.tools.pc.util" ,
1135
- Compile / buildInfoKeys := Seq (scalaVersion),
1136
- Test / buildInfoKeys := Seq (scalaVersion, ideTestsDependencyClasspath)
1137
- ) ++ BuildInfoPlugin .buildInfoScopedSettings(Compile ) ++
1138
- BuildInfoPlugin .buildInfoScopedSettings(Test ) ++
1139
- BuildInfoPlugin .buildInfoDefaultSettings
1143
+ )
1140
1144
}
1141
1145
1142
1146
lazy val `scala3-language-server` = project.in(file(" language-server" )).
@@ -1938,8 +1942,9 @@ object Build {
1938
1942
enablePlugins(JmhPlugin )
1939
1943
1940
1944
def asScala3PresentationCompiler (implicit mode : Mode ): Project = project.withCommonSettings.
1941
- dependsOn(dottyCompiler).
1942
- settings(presentationCompilerSettings)
1945
+ dependsOn(dottyCompiler, dottyLibrary).
1946
+ settings(presentationCompilerSettings).
1947
+ settings(scala3PresentationCompilerBuildInfo)
1943
1948
1944
1949
def asDist (implicit mode : Mode ): Project = project.
1945
1950
enablePlugins(PackPlugin ).
0 commit comments