@@ -91,8 +91,8 @@ class MillBuildRootModule()(implicit
9191 Agg .from(
9292 MillIvy .processMillIvyDepSignature(parseBuildFiles().ivyDeps)
9393 .map(mill.scalalib.Dep .parse)
94- ) ++
95- Agg (ivy " com.lihaoyi::mill-moduledefs: ${Versions .millModuledefsVersion}" )
94+ ) /* ++
95+ Agg(ivy"com.lihaoyi::mill-moduledefs:${Versions.millModuledefsVersion}")*/
9696 }
9797
9898 override def runIvyDeps = T {
@@ -219,8 +219,9 @@ class MillBuildRootModule()(implicit
219219 * We exclude them to avoid incompatible or duplicate artifacts on the classpath.
220220 */
221221 protected def resolveDepsExclusions : T [Seq [(String , String )]] = T {
222- Lib .millAssemblyEmbeddedDeps.toSeq.map(d =>
223- (d.dep.module.organization.value, d.dep.module.name.value)
222+ Lib .millAssemblyEmbeddedDeps.toSeq.flatMap(d =>
223+ if d.dep.module.name.value == " scala-library" && scalaVersion().startsWith(" 3." ) then None
224+ else Some ((d.dep.module.organization.value, d.dep.module.name.value))
224225 )
225226 }
226227
@@ -233,26 +234,27 @@ class MillBuildRootModule()(implicit
233234 }
234235
235236 override def scalacPluginIvyDeps : T [Agg [Dep ]] = Agg (
236- ivy " com.lihaoyi:::scalac-mill-moduledefs-plugin: ${Versions .millModuledefsVersion}"
237+ // ivy"com.lihaoyi:::scalac-mill-moduledefs-plugin:${Versions.millModuledefsVersion}"
237238 )
238239
239240 override def scalacOptions : T [Seq [String ]] = T {
240241 super .scalacOptions() ++
241242 Seq (
242- " -Xplugin:" + lineNumberPluginClasspath().map(_.path).mkString(" ," ),
243+ // "-Xplugin:" + lineNumberPluginClasspath().map(_.path).mkString(","),
243244 " -deprecation" ,
244245 // Make sure we abort of the plugin is not found, to ensure any
245246 // classpath/plugin-discovery issues are surfaced early rather than
246247 // after hours of debugging
247- " -Xplugin-require:mill-linenumber-plugin"
248+ // "-Xplugin-require:mill-linenumber-plugin"
248249 )
249250 }
250251
251252 override def scalacPluginClasspath : T [Agg [PathRef ]] =
252253 super .scalacPluginClasspath() ++ lineNumberPluginClasspath()
253254
254255 def lineNumberPluginClasspath : T [Agg [PathRef ]] = T {
255- millProjectModule(" mill-runner-linenumbers" , repositoriesTask())
256+ // millProjectModule("mill-runner-linenumbers", repositoriesTask())
257+ Agg .empty
256258 }
257259
258260 /** Used in BSP IntelliJ, which can only work with directories */
0 commit comments