@@ -78,8 +78,8 @@ object MdocPlugin extends AutoPlugin {
78
78
79
79
override def projectSettings : Seq [Def .Setting [_]] =
80
80
List (
81
- mdocIn := baseDirectory.in (ThisBuild ).value / " docs" ,
82
- mdocOut := target.in (Compile ).value / " mdoc" ,
81
+ mdocIn := (ThisBuild / baseDirectory ).value / " docs" ,
82
+ mdocOut := (Compile / target ).value / " mdoc" ,
83
83
mdocVariables := Map .empty,
84
84
mdocExtraArguments := Nil ,
85
85
mdocJS := None ,
@@ -96,7 +96,7 @@ object MdocPlugin extends AutoPlugin {
96
96
parsed
97
97
).flatten.mkString(" " )
98
98
Def .taskDyn {
99
- runMain.in (Compile ).toTask(s " mdoc.SbtMain $args" )
99
+ (Compile / runMain ).toTask(s " mdoc.SbtMain $args" )
100
100
}
101
101
}.evaluated,
102
102
dependencyOverrides ++= List (
@@ -114,9 +114,9 @@ object MdocPlugin extends AutoPlugin {
114
114
List ()
115
115
}
116
116
},
117
- resourceGenerators.in (Compile ) += Def .task {
117
+ (Compile / resourceGenerators ) += Def .task {
118
118
val out =
119
- managedResourceDirectories.in (Compile ).value.head / " mdoc.properties"
119
+ (Compile / managedResourceDirectories ).value.head / " mdoc.properties"
120
120
val props = new java.util.Properties ()
121
121
mdocVariables.value.foreach { case (key, value) =>
122
122
props.put(key, value)
@@ -126,9 +126,9 @@ object MdocPlugin extends AutoPlugin {
126
126
}
127
127
def getJars (mid : ModuleID ) = {
128
128
129
- val depRes = dependencyResolution.in (update).value
130
- val updc = updateConfiguration.in (update).value
131
- val uwconfig = unresolvedWarningConfiguration.in (update).value
129
+ val depRes = (update / dependencyResolution ).value
130
+ val updc = (update / updateConfiguration ).value
131
+ val uwconfig = (update / unresolvedWarningConfiguration ).value
132
132
val modDescr = depRes.wrapDependencyInModule(mid)
133
133
134
134
depRes
@@ -190,21 +190,21 @@ object MdocPlugin extends AutoPlugin {
190
190
props.put(" out" , mdocOut.value.toString)
191
191
props.put(
192
192
" scalacOptions" ,
193
- scalacOptions.in (Compile ).value.mkString(" " )
193
+ (Compile / scalacOptions ).value.mkString(" " )
194
194
)
195
195
val classpath = ListBuffer .empty[File ]
196
196
// Can't use fullClasspath.value because it introduces cyclic dependency between
197
197
// compilation and resource generation.
198
- classpath ++= dependencyClasspath.in (Compile ).value.iterator.map(_.data)
199
- classpath += classDirectory.in (Compile ).value
198
+ classpath ++= (Compile / dependencyClasspath ).value.iterator.map(_.data)
199
+ classpath += (Compile / classDirectory ).value
200
200
props.put(
201
201
" classpath" ,
202
202
classpath.mkString(java.io.File .pathSeparator)
203
203
)
204
204
IO .write(props, " mdoc properties" , out)
205
205
val esVersion = props.clone().asInstanceOf [java.util.Properties ]
206
206
esVersion.put(" js-module-kind" , " ESModule" )
207
- val esOut = managedResourceDirectories.in (Compile ).value.head / " es.properties"
207
+ val esOut = (Compile / managedResourceDirectories ).value.head / " es.properties"
208
208
IO .write(
209
209
esVersion,
210
210
" mdoc esmoddule properties" ,
0 commit comments