Build Logs
paulbutcher/scalamock • 12546848139
Errors
5
Warnings
48
Total Lines
666
1##################################
2Clonning https://github.com/paulbutcher/scalamock.git into repo using revision 6.0.0
3##################################
4Note: switching to '1f9ee41882bb4c6809f607c44999b12a1ab9313f'.
5
6You are in 'detached HEAD' state. You can look around, make experimental
7changes and commit them, and you can discard any commits you make in this
8state without impacting any branches by switching back to a branch.
9
10If you want to create a new branch to retain commits you create, you may
11do so (now or later) by using -c with the switch command. Example:
12
13 git switch -c <new-branch-name>
14
15Or undo this operation with:
16
17 git switch -
18
19Turn off this advice by setting config variable advice.detachedHead to false
20
21Migrating project using Scala 3.4.2
22----
23Preparing build for 3.4.2
24Scala binary version found: 3.4
25Implicitly using source version 3.4-migration
26Scala binary version found: 3.4
27Implicitly using source version 3.4-migration
28Would try to apply common scalacOption (best-effort, sbt/mill only):
29Append: -rewrite,-source:3.4-migration,-Wconf:msg=can be rewritten automatically under:s
30Remove: -indent,-no-indent,-new-syntax,,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
31----
32Starting build for 3.4.2
33Execute tests: false
34sbt project found:
35Try apply source patch:
36Path: jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala
37Pattern: m.simplePolymorphicMethod _
38Replacement: m.simplePolymorphicMethod[Int] _
39Checking https://github.com/coursier/jvm-index/raw/master/index.json
40Checked https://github.com/coursier/jvm-index/raw/master/index.json
41Downloading https://github.com/coursier/jvm-index/raw/master/index.json
42Downloaded https://github.com/coursier/jvm-index/raw/master/index.json
43Starting compilation server
44Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.4.2/scala3-compiler_3-3.4.2.pom
45Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.4.2/scala3-compiler_3-3.4.2.pom
46Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.4.2/scala3-interfaces-3.4.2.pom
47Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.4.2/scala3-library_3-3.4.2.pom
48Downloading https://repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.4.2/tasty-core_3-3.4.2.pom
49Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.4.2/scala3-interfaces-3.4.2.pom
50Downloaded https://repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.4.2/tasty-core_3-3.4.2.pom
51Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.4.2/scala3-library_3-3.4.2.pom
52Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.4.2/scala3-library_3-3.4.2.jar
53Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.4.2/scala3-compiler_3-3.4.2.jar
54Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.4.2/scala3-interfaces-3.4.2.jar
55Downloading https://repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.4.2/tasty-core_3-3.4.2.jar
56Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.4.2/scala3-interfaces-3.4.2.jar
57Downloaded https://repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.4.2/tasty-core_3-3.4.2.jar
58Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.4.2/scala3-library_3-3.4.2.jar
59Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.4.2/scala3-compiler_3-3.4.2.jar
60Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.4.2/scala3-sbt-bridge-3.4.2.pom
61Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.4.2/scala3-sbt-bridge-3.4.2.pom
62Downloading https://repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.4.2/scala3-sbt-bridge-3.4.2.jar
63Downloaded https://repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.4.2/scala3-sbt-bridge-3.4.2.jar
64Compiling project (Scala 3.4.2, JVM (11))
65Compiled project (Scala 3.4.2, JVM (11))
66Successfully applied pattern 'm.simplePolymorphicMethod _' in repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala
67Try apply source patch:
68Path: shared/src/main/scala/org/scalamock/MockFactoryBase.scala
69Pattern: callLog foreach expectationContext.verify _
70Replacement: callLog.foreach(expectationContext.verify(_))
71Successfully applied pattern 'callLog foreach expectationContext.verify _' in repo/shared/src/main/scala/org/scalamock/MockFactoryBase.scala
72Try apply source patch:
73Path: shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala
74Pattern: (m.oneParam _).expects(42)
75Replacement: (m.oneParam).expects(42)
76Successfully applied pattern '(m.oneParam _).expects(42)' in repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala
77Try apply source patch:
78Path: shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala
79Pattern: .oneParam _) shouldBe
80Replacement: .oneParam) shouldBe
81Successfully applied pattern '.oneParam _) shouldBe' in repo/shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala
82Try apply source patch:
83Path: shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala
84Pattern: val mockFun = mockFunction[String, Unit]("mockFun")
85Replacement: val mockFun = mockFunction[String, Unit](functionName("mockFun"))
86Successfully applied pattern 'val mockFun = mockFunction[String, Unit]("mockFun")' in repo/shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala
87No prepare script found for project paulbutcher/scalamock
88##################################
89Scala version: 3.4.2
90Targets: org.scalamock%scalamock
91Project projectConfig: { "projects": { "exclude": [], "overrides": {} }, "java": { "version": "11" }, "sbt": { "commands": [ "mapScalacOptions -experimental" ], "options": [] }, "mill": { "options": [] }, "tests": "compile-only", "migrationVersions": [ "3.4.2" ], "sourcePatches": [ { "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala", "pattern": "m.simplePolymorphicMethod _", "replaceWith": "m.simplePolymorphicMethod[Int] _" }, { "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala", "pattern": "callLog foreach expectationContext.verify _", "replaceWith": "callLog.foreach(expectationContext.verify(_))" }, { "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala", "pattern": "(m.oneParam _).expects(42)", "replaceWith": "(m.oneParam).expects(42)" }, { "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala", "pattern": ".oneParam _) shouldBe", "replaceWith": ".oneParam) shouldBe" }, { "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala", "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")", "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))" } ] }
92##################################
93Using extra scalacOptions: -rewrite,-source:3.4-migration,-Wconf:msg=can be rewritten automatically under:s
94Filtering out scalacOptions: -indent,-no-indent,-new-syntax,,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
95[sbt_options] declare -a sbt_options=()
96[process_args] java_version = '11'
97[copyRt] java9_rt = '/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_11_0_20/rt.jar'
98# Executing command line:
99java
100-Dfile.encoding=UTF-8
101-Dcommunitybuild.scala=3.4.2
102-Dcommunitybuild.project.dependencies.add=
103-Xmx7G
104-Xms4G
105-Xss8M
106-Dsbt.script=/root/.sdkman/candidates/sbt/current/bin/sbt
107-Dscala.ext.dirs=/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_11_0_20
108-jar
109/root/.sdkman/candidates/sbt/1.9.6/bin/sbt-launch.jar
110"setCrossScalaVersions 3.4.2"
111"++3.4.2 -v"
112"mapScalacOptions "-rewrite,-source:3.4-migration,-Wconf:msg=can be rewritten automatically under:s" "-indent,-no-indent,-new-syntax,,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,""
113"set every credentials := Nil"
114"mapScalacOptions -experimental"
115moduleMappings
116"runBuild 3.4.2 """{
117 "projects": {
118 "exclude": [],
119 "overrides": {}
120 },
121 "java": {
122 "version": "11"
123 },
124 "sbt": {
125 "commands": [
126 "mapScalacOptions -experimental"
127 ],
128 "options": []
129 },
130 "mill": {
131 "options": []
132 },
133 "tests": "compile-only",
134 "migrationVersions": [
135 "3.4.2"
136 ],
137 "sourcePatches": [
138 {
139 "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala",
140 "pattern": "m.simplePolymorphicMethod _",
141 "replaceWith": "m.simplePolymorphicMethod[Int] _"
142 },
143 {
144 "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala",
145 "pattern": "callLog foreach expectationContext.verify _",
146 "replaceWith": "callLog.foreach(expectationContext.verify(_))"
147 },
148 {
149 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala",
150 "pattern": "(m.oneParam _).expects(42)",
151 "replaceWith": "(m.oneParam).expects(42)"
152 },
153 {
154 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala",
155 "pattern": ".oneParam _) shouldBe",
156 "replaceWith": ".oneParam) shouldBe"
157 },
158 {
159 "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala",
160 "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")",
161 "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))"
162 }
163 ]
164}""" org.scalamock%scalamock"
165
166[info] [launcher] getting org.scala-sbt sbt 1.9.8 (this may take some time)...
167[info] welcome to sbt 1.9.8 (Eclipse Adoptium Java 11.0.20)
168[info] loading settings for project repo-build from plugins.sbt ...
169[info] loading project definition from /build/repo/project
170[info] compiling 2 Scala sources to /build/repo/project/target/scala-2.12/sbt-1.0/classes ...
171[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.18. Compiling...
172[info] Compilation completed in 8.753s.
173[info] done compiling
174[info] loading settings for project repo from build.sbt,publishing.sbt ...
175[info] set current project to repo (in build file:/build/repo/)
176Execute setCrossScalaVersions: 3.4.2
177OpenCB::Changing crossVersion 3.3.0 -> 3.4.2 in scalamockJVM/crossScalaVersions
178OpenCB::Changing crossVersion 3.3.0 -> 3.4.2 in examples/crossScalaVersions
179OpenCB::Changing crossVersion 3.3.0 -> 3.4.2 in scalamockJS/crossScalaVersions
180[info] set current project to repo (in build file:/build/repo/)
181[info] Setting Scala version to 3.4.2 on 3 projects.
182[info] Switching Scala version on:
183[info] scalamockJS (2.12.19, 2.13.12, 3.4.2)
184[info] scalamockJVM (2.12.19, 2.13.12, 3.4.2)
185[info] examples (2.12.19, 2.13.12, 3.4.2)
186[info] Excluding projects:
187[info] * repo (2.12.18)
188[info] Reapplying settings...
189[info] set current project to repo (in build file:/build/repo/)
190Execute mapScalacOptions: -rewrite,-source:3.4-migration,-Wconf:msg=can be rewritten automatically under:s -indent,-no-indent,-new-syntax,,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
191[info] Reapplying settings...
192[info] set current project to repo (in build file:/build/repo/)
193[info] Defining Global / credentials, credentials and 2 others.
194[info] The new values will be used by Global / pgpSelectPassphrase, Global / pgpSigningKey and 19 others.
195[info] Run `last` for details.
196[info] Reapplying settings...
197[info] set current project to repo (in build file:/build/repo/)
198Execute mapScalacOptions: -experimental
199[info] Reapplying settings...
200[info] set current project to repo (in build file:/build/repo/)
201[success] Total time: 0 s, completed Dec 30, 2024, 2:56:05 PM
202Build config: {
203 "projects": {
204 "exclude": [],
205 "overrides": {}
206 },
207 "java": {
208 "version": "11"
209 },
210 "sbt": {
211 "commands": [
212 "mapScalacOptions -experimental"
213 ],
214 "options": []
215 },
216 "mill": {
217 "options": []
218 },
219 "tests": "compile-only",
220 "migrationVersions": [
221 "3.4.2"
222 ],
223 "sourcePatches": [
224 {
225 "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala",
226 "pattern": "m.simplePolymorphicMethod _",
227 "replaceWith": "m.simplePolymorphicMethod[Int] _"
228 },
229 {
230 "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala",
231 "pattern": "callLog foreach expectationContext.verify _",
232 "replaceWith": "callLog.foreach(expectationContext.verify(_))"
233 },
234 {
235 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala",
236 "pattern": "(m.oneParam _).expects(42)",
237 "replaceWith": "(m.oneParam).expects(42)"
238 },
239 {
240 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala",
241 "pattern": ".oneParam _) shouldBe",
242 "replaceWith": ".oneParam) shouldBe"
243 },
244 {
245 "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala",
246 "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")",
247 "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))"
248 }
249 ]
250}
251Parsed config: Success(ProjectBuildConfig(ProjectsConfig(List(),Map()),CompileOnly,List()))
252Starting build...
253Projects: Set(scalamockJVM)
254Starting build for ProjectRef(file:/build/repo/,scalamockJVM) (scalamock)...
255OpenCB::Exclude Scala3 specific scalacOption `-rewrite` in Scala 2.12.18 module Global
256OpenCB::Exclude Scala3 specific scalacOption `-source:3.4-migration` in Scala 2.12.18 module Global
257OpenCB::Exclude Scala3 specific scalacOption `-experimental` in Scala 2.12.18 module Global
258OpenCB::Filter out '-deprecation', matches setting pattern '^-?-deprecation'
259OpenCB::Filter out '-feature', matches setting pattern '^-?-feature'
260OpenCB::Would not apply setting `-source:3.4-migration`: Project has predefined source version: Some(-source:3.4-migration)
261Compile scalacOptions: List(-unchecked, -release:8, -source:3.4-migration, -rewrite, -Wconf:msg=can be rewritten automatically under:s, -experimental)
262[info] compiling 56 Scala sources to /build/repo/jvm/target/scala-3.4.2/classes ...
263[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:35:10
264[warn] 35 | return r
265[warn] | ^^^^^^^^
266[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
267[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:38:10
268[warn] 38 | return None
269[warn] | ^^^^^^^^^^^
270[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
271[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:58:10
272[warn] 58 | return true
273[warn] | ^^^^^^^^^^^
274[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
275[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/UnorderedHandlers.scala:32:8
276[warn] 32 | return r
277[warn] | ^^^^^^^^
278[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
279[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/UnorderedHandlers.scala:41:8
280[warn] 41 | return true
281[warn] | ^^^^^^^^^^^
282[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
283[info] [patched file /build/repo/shared/src/main/scala/org/scalamock/scalatest/MixedMockFactory.scala]
284[info] [patched file /build/repo/shared/src/main/scala/org/scalamock/proxy/StubFunction.scala]
285[info] [patched file /build/repo/shared/src/main/scala/org/scalamock/matchers/MockParameter.scala]
286[info] [patched file /build/repo/shared/src/main/scala-3/org/scalamock/clazz/Utils.scala]
287[info] [patched file /build/repo/shared/src/main/scala/org/scalamock/context/MockContext.scala]
288[info] [patched file /build/repo/shared/src/main/scala/org/scalamock/handlers/CallHandler.scala]
289[info] [patched file /build/repo/shared/src/main/scala-3/org/scalamock/proxy/ProxyMockFactory.scala]
290[warn] there was 1 deprecation warning; re-run with -deprecation for details
291[warn] 6 warnings found
292[info] done compiling
293[info] compiling 7 Scala sources to /build/repo/jvm/target/scala-3.4.2/classes ...
294[info] done compiling
295[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.4.2/api...
296[warn] Flag -project set repeatedly
297[info] Scaladoc version 3.4.2 -- Copyright 2002-2024, LAMP/EPFL
298[info] Skipping unused scalacOptions: -Wconf, -source, -rewrite
299[info] Main Scala API documentation successful.
300[info] compiling 65 Scala sources and 5 Java sources to /build/repo/jvm/target/scala-3.4.2/test-classes ...
301[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/ErrorReportingTest.scala]
302[info] [patched file /build/repo/jvm/src/test/scala/org/scalamock/test/specs2/SuiteScopeMockParallelTest.scala]
303[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/FixtureContextTest.scala]
304[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/matchers/ArgCaptureTest.scala]
305[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MethodsWithDefaultParamsTest.scala]
306[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/specs2/BasicTest.scala]
307[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/matchers/MatchersTest.scala]
308[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/SuiteScopePresetMockParallelTest.scala]
309[info] [patched file /build/repo/jvm/src/test/scala/org/scalamock/test/specs2/ConcurrencyTest.scala]
310[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala]
311[info] [patched file /build/repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMockNamingTest.scala]
312[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/IsolatedSpec.scala]
313[info] [patched file /build/repo/jvm/src/test/scala/org/scalamock/test/scalatest/ConcurrencyTest.scala]
314[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/stub/StubTest.scala]
315[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/StackableSuitesTest.scala]
316[info] [patched file /build/repo/shared/src/test/scala-3/com/paulbutcher/test/Scala3Spec.scala]
317[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/specs2/FixtureContextTest.scala]
318[info] [patched file /build/repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala]
319[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala]
320[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/OverloadedMethodsTest.scala]
321[info] [patched file /build/repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTestManyParams.scala]
322[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/SuiteScopeMockParallelTest.scala]
323[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala]
324[info] [patched file /build/repo/jvm/src/test/scala/com.paulbutcher.test/proxy/ProxyMockTest.scala]
325[info] [patched file /build/repo/shared/src/test/scala-3/com/paulbutcher/test/PathDependentParamSpec.scala]
326[info] [patched file /build/repo/jvm/src/test/scala/org/scalamock/test/specs2/SuiteScopePresetMockParallelTest.scala]
327[info] [patched file /build/repo/shared/src/test/scala/org/scalamock/test/scalatest/BasicTest.scala]
328[info] done compiling
329[info] Wrote /build/repo/jvm/target/scala-3.4.2/scalamock_3-6.0.0.pom
330[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.4.2/api...
331[warn] Flag -project set repeatedly
332[info] Scaladoc version 3.4.2 -- Copyright 2002-2024, LAMP/EPFL
333[info] Skipping unused scalacOptions: -Wconf, -source, -rewrite
334[info] Main Scala API documentation successful.
335[info] :: delivering :: org.scalamock#scalamock_3;6.0.0 :: 6.0.0 :: release :: Mon Dec 30 14:56:49 CET 2024
336[info] delivering ivy file to /build/repo/jvm/target/scala-3.4.2/ivy-6.0.0.xml
337[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.0.0/poms/scalamock_3.pom
338[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.0.0/jars/scalamock_3.jar
339[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.0.0/srcs/scalamock_3-sources.jar
340[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.0.0/docs/scalamock_3-javadoc.jar
341[info] published ivy to /root/.ivy2/local/org.scalamock/scalamock_3/6.0.0/ivys/ivy.xml
342[info] compiling 27 Scala sources to /build/repo/jvm/target/scala-3.4.2/test-classes ...
343[info] done compiling
344
345************************
346Build summary:
347[{
348 "module": "scalamock",
349 "compile": {"status": "ok", "tookMs": 14484, "warnings": 5, "errors": 0, "sourceVersion": "3.4-migration"},
350 "doc": {"status": "ok", "tookMs": 1941, "files": 0, "totalSizeKb": 0},
351 "test-compile": {"status": "ok", "tookMs": 24046, "warnings": 0, "errors": 0, "sourceVersion": "3.4-migration"},
352 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
353 "publish": {"status": "ok", "tookMs": 520}
354}]
355************************
356[success] Total time: 56 s, completed Dec 30, 2024, 2:57:01 PM
357Checking patch shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala...
358error: while searching for:
359 }
360
361 it("can have expectations checked at the end of root suite") {
362 val mockFun = mockFunction[String, Unit](functionName("mockFun"))
363 mockFun expects "bottom-level"
364 val caught = intercept[TestFailedException] {
365 verifyExpectations()
366
367error: patch failed: shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala:51
368Checking patch shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala...
369Checking patch shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala...
370Checking patch shared/src/main/scala/org/scalamock/MockFactoryBase.scala...
371Checking patch jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala...
372error: while searching for:
373
374 it should "mock a Polymorhpic Java interface" in { // test for issue #24
375 val m = mock[PolymorphicJavaInterface]
376 (m.simplePolymorphicMethod[Int] _).expects("foo").returning(44)
377 assertResult(44) { m.simplePolymorphicMethod[Int]("foo") }
378 }
379
380
381error: patch failed: jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala:64
382Checking patch build.sbt...
383Applying patch shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala with 1 reject...
384Rejected hunk #1.
385Applied patch shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala cleanly.
386Applied patch shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala cleanly.
387Applied patch shared/src/main/scala/org/scalamock/MockFactoryBase.scala cleanly.
388Applying patch jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala with 1 reject...
389Rejected hunk #1.
390Applied patch build.sbt cleanly.
391Commit migration rewrites
392Switched to a new branch 'opencb/migrate-3.4.2'
393[opencb/migrate-3.4.2 e8c4edb] Apply Scala compiler rewrites for 3.4.2
394 34 files changed, 209 insertions(+), 209 deletions(-)
395----
396Preparing build for 3.6.3-RC1-20241230-376fc17-SNAPSHOT
397Scala binary version found: 3.6
398Implicitly using source version 3.6-migration
399Scala binary version found: 3.6
400Implicitly using source version 3.6-migration
401Would try to apply common scalacOption (best-effort, sbt/mill only):
402Append: ,-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s
403Remove: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
404----
405Starting build for 3.6.3-RC1-20241230-376fc17-SNAPSHOT
406Execute tests: false
407sbt project found:
408Try apply source patch:
409Path: jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala
410Pattern: m.simplePolymorphicMethod _
411Replacement: m.simplePolymorphicMethod[Int] _
412Failed to apply pattern 'm.simplePolymorphicMethod _' in repo/jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala
413Try apply source patch:
414Path: shared/src/main/scala/org/scalamock/MockFactoryBase.scala
415Pattern: callLog foreach expectationContext.verify _
416Replacement: callLog.foreach(expectationContext.verify(_))
417Successfully applied pattern 'callLog foreach expectationContext.verify _' in repo/shared/src/main/scala/org/scalamock/MockFactoryBase.scala
418Try apply source patch:
419Path: shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala
420Pattern: (m.oneParam _).expects(42)
421Replacement: (m.oneParam).expects(42)
422Successfully applied pattern '(m.oneParam _).expects(42)' in repo/shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala
423Try apply source patch:
424Path: shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala
425Pattern: .oneParam _) shouldBe
426Replacement: .oneParam) shouldBe
427Successfully applied pattern '.oneParam _) shouldBe' in repo/shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala
428Try apply source patch:
429Path: shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala
430Pattern: val mockFun = mockFunction[String, Unit]("mockFun")
431Replacement: val mockFun = mockFunction[String, Unit](functionName("mockFun"))
432Failed to apply pattern 'val mockFun = mockFunction[String, Unit]("mockFun")' in repo/shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala
433No prepare script found for project paulbutcher/scalamock
434##################################
435Scala version: 3.6.3-RC1-20241230-376fc17-SNAPSHOT
436Targets: org.scalamock%scalamock
437Project projectConfig: { "projects": { "exclude": [], "overrides": {} }, "java": { "version": "11" }, "sbt": { "commands": [ "mapScalacOptions -experimental" ], "options": [] }, "mill": { "options": [] }, "tests": "compile-only", "migrationVersions": [ "3.4.2" ], "sourcePatches": [ { "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala", "pattern": "m.simplePolymorphicMethod _", "replaceWith": "m.simplePolymorphicMethod[Int] _" }, { "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala", "pattern": "callLog foreach expectationContext.verify _", "replaceWith": "callLog.foreach(expectationContext.verify(_))" }, { "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala", "pattern": "(m.oneParam _).expects(42)", "replaceWith": "(m.oneParam).expects(42)" }, { "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala", "pattern": ".oneParam _) shouldBe", "replaceWith": ".oneParam) shouldBe" }, { "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala", "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")", "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))" } ] }
438##################################
439Using extra scalacOptions: ,-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s
440Filtering out scalacOptions: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
441[sbt_options] declare -a sbt_options=()
442[process_args] java_version = '11'
443[copyRt] java9_rt = '/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_11_0_20/rt.jar'
444# Executing command line:
445java
446-Dfile.encoding=UTF-8
447-Dcommunitybuild.scala=3.6.3-RC1-20241230-376fc17-SNAPSHOT
448-Dcommunitybuild.project.dependencies.add=
449-Xmx7G
450-Xms4G
451-Xss8M
452-Dsbt.script=/root/.sdkman/candidates/sbt/current/bin/sbt
453-Dscala.ext.dirs=/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_11_0_20
454-jar
455/root/.sdkman/candidates/sbt/1.9.6/bin/sbt-launch.jar
456"setCrossScalaVersions 3.6.3-RC1-20241230-376fc17-SNAPSHOT"
457"++3.6.3-RC1-20241230-376fc17-SNAPSHOT -v"
458"mapScalacOptions ",-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s" ",-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,""
459"set every credentials := Nil"
460"mapScalacOptions -experimental"
461moduleMappings
462"runBuild 3.6.3-RC1-20241230-376fc17-SNAPSHOT """{
463 "projects": {
464 "exclude": [],
465 "overrides": {}
466 },
467 "java": {
468 "version": "11"
469 },
470 "sbt": {
471 "commands": [
472 "mapScalacOptions -experimental"
473 ],
474 "options": []
475 },
476 "mill": {
477 "options": []
478 },
479 "tests": "compile-only",
480 "migrationVersions": [
481 "3.4.2"
482 ],
483 "sourcePatches": [
484 {
485 "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala",
486 "pattern": "m.simplePolymorphicMethod _",
487 "replaceWith": "m.simplePolymorphicMethod[Int] _"
488 },
489 {
490 "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala",
491 "pattern": "callLog foreach expectationContext.verify _",
492 "replaceWith": "callLog.foreach(expectationContext.verify(_))"
493 },
494 {
495 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala",
496 "pattern": "(m.oneParam _).expects(42)",
497 "replaceWith": "(m.oneParam).expects(42)"
498 },
499 {
500 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala",
501 "pattern": ".oneParam _) shouldBe",
502 "replaceWith": ".oneParam) shouldBe"
503 },
504 {
505 "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala",
506 "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")",
507 "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))"
508 }
509 ]
510}""" org.scalamock%scalamock"
511
512[info] welcome to sbt 1.9.8 (Eclipse Adoptium Java 11.0.20)
513[info] loading settings for project repo-build from plugins.sbt ...
514[info] loading project definition from /build/repo/project
515[info] loading settings for project repo from build.sbt,publishing.sbt ...
516[info] set current project to repo (in build file:/build/repo/)
517Execute setCrossScalaVersions: 3.6.3-RC1-20241230-376fc17-SNAPSHOT
518OpenCB::Changing crossVersion 3.3.0 -> 3.6.3-RC1-20241230-376fc17-SNAPSHOT in scalamockJVM/crossScalaVersions
519OpenCB::Changing crossVersion 3.3.0 -> 3.6.3-RC1-20241230-376fc17-SNAPSHOT in examples/crossScalaVersions
520OpenCB::Changing crossVersion 3.3.0 -> 3.6.3-RC1-20241230-376fc17-SNAPSHOT in scalamockJS/crossScalaVersions
521[info] set current project to repo (in build file:/build/repo/)
522[info] Setting Scala version to 3.6.3-RC1-20241230-376fc17-SNAPSHOT on 3 projects.
523[info] Switching Scala version on:
524[info] scalamockJS (2.12.19, 2.13.12, 3.6.3-RC1-20241230-376fc17-SNAPSHOT)
525[info] scalamockJVM (2.12.19, 2.13.12, 3.6.3-RC1-20241230-376fc17-SNAPSHOT)
526[info] examples (2.12.19, 2.13.12, 3.6.3-RC1-20241230-376fc17-SNAPSHOT)
527[info] Excluding projects:
528[info] * repo (2.12.18)
529[info] Reapplying settings...
530[info] set current project to repo (in build file:/build/repo/)
531Execute mapScalacOptions: ,-source:3.6-migration,-Wconf:msg=can be rewritten automatically under:s ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e,-migration,
532[info] Reapplying settings...
533[info] set current project to repo (in build file:/build/repo/)
534[info] Defining Global / credentials, credentials and 2 others.
535[info] The new values will be used by Global / pgpSelectPassphrase, Global / pgpSigningKey and 19 others.
536[info] Run `last` for details.
537[info] Reapplying settings...
538[info] set current project to repo (in build file:/build/repo/)
539Execute mapScalacOptions: -experimental
540[info] Reapplying settings...
541[info] set current project to repo (in build file:/build/repo/)
542[success] Total time: 0 s, completed Dec 30, 2024, 2:57:16 PM
543Build config: {
544 "projects": {
545 "exclude": [],
546 "overrides": {}
547 },
548 "java": {
549 "version": "11"
550 },
551 "sbt": {
552 "commands": [
553 "mapScalacOptions -experimental"
554 ],
555 "options": []
556 },
557 "mill": {
558 "options": []
559 },
560 "tests": "compile-only",
561 "migrationVersions": [
562 "3.4.2"
563 ],
564 "sourcePatches": [
565 {
566 "path": "jvm/src/test/scala/com.paulbutcher.test/mock/JavaMocksTest.scala",
567 "pattern": "m.simplePolymorphicMethod _",
568 "replaceWith": "m.simplePolymorphicMethod[Int] _"
569 },
570 {
571 "path": "shared/src/main/scala/org/scalamock/MockFactoryBase.scala",
572 "pattern": "callLog foreach expectationContext.verify _",
573 "replaceWith": "callLog.foreach(expectationContext.verify(_))"
574 },
575 {
576 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala",
577 "pattern": "(m.oneParam _).expects(42)",
578 "replaceWith": "(m.oneParam).expects(42)"
579 },
580 {
581 "path": "shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala",
582 "pattern": ".oneParam _) shouldBe",
583 "replaceWith": ".oneParam) shouldBe"
584 },
585 {
586 "path": "shared/src/test/scala/org/scalamock/test/scalatest/PathSpecTest.scala",
587 "pattern": "val mockFun = mockFunction[String, Unit](\"mockFun\")",
588 "replaceWith": "val mockFun = mockFunction[String, Unit](functionName(\"mockFun\"))"
589 }
590 ]
591}
592Parsed config: Success(ProjectBuildConfig(ProjectsConfig(List(),Map()),CompileOnly,List()))
593Starting build...
594Projects: Set(scalamockJVM)
595Starting build for ProjectRef(file:/build/repo/,scalamockJVM) (scalamock)...
596OpenCB::Exclude Scala3 specific scalacOption `-source:3.6-migration` in Scala 2.12.18 module Global
597OpenCB::Exclude Scala3 specific scalacOption `-experimental` in Scala 2.12.18 module Global
598OpenCB::Filter out '-deprecation', matches setting pattern '^-?-deprecation'
599OpenCB::Filter out '-feature', matches setting pattern '^-?-feature'
600OpenCB::Would not apply setting `-source:3.6-migration`: Project has predefined source version: Some(-source:3.6-migration)
601Compile scalacOptions: List(-unchecked, -release:8, -source:3.6-migration, -Wconf:msg=can be rewritten automatically under:s, -experimental)
602[info] compiling 56 Scala sources to /build/repo/jvm/target/scala-3.6.3-RC1-20241230-376fc17-SNAPSHOT/classes ...
603[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:35:10
604[warn] 35 | return r
605[warn] | ^^^^^^^^
606[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
607[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:38:10
608[warn] 38 | return None
609[warn] | ^^^^^^^^^^^
610[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
611[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/OrderedHandlers.scala:58:10
612[warn] 58 | return true
613[warn] | ^^^^^^^^^^^
614[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
615[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/UnorderedHandlers.scala:32:8
616[warn] 32 | return r
617[warn] | ^^^^^^^^
618[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
619[warn] -- Warning: /build/repo/shared/src/main/scala/org/scalamock/handlers/UnorderedHandlers.scala:41:8
620[warn] 41 | return true
621[warn] | ^^^^^^^^^^^
622[warn] |Non local returns are no longer supported; use `boundary` and `boundary.break` in `scala.util` instead
623[warn] there was 1 deprecation warning; re-run with -deprecation for details
624[warn] 6 warnings found
625[info] done compiling
626[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.6.3-RC1-20241230-376fc17-SNAPSHOT/api...
627[warn] Flag -project set repeatedly
628[info] Scaladoc version 3.6.3-RC1-20241230-376fc17-SNAPSHOT-git-376fc17 -- Copyright 2002-2024, LAMP/EPFL
629[info] Skipping unused scalacOptions: -Wconf, -source
630[info] Main Scala API documentation successful.
631[info] compiling 65 Scala sources and 5 Java sources to /build/repo/jvm/target/scala-3.6.3-RC1-20241230-376fc17-SNAPSHOT/test-classes ...
632[info] done compiling
633[info] Wrote /build/repo/jvm/target/scala-3.6.3-RC1-20241230-376fc17-SNAPSHOT/scalamock_3-6.1.0-SNAPSHOT.pom
634[info] Main Scala API documentation to /build/repo/jvm/target/scala-3.6.3-RC1-20241230-376fc17-SNAPSHOT/api...
635[warn] Flag -project set repeatedly
636[info] Scaladoc version 3.6.3-RC1-20241230-376fc17-SNAPSHOT-git-376fc17 -- Copyright 2002-2024, LAMP/EPFL
637[info] Skipping unused scalacOptions: -Wconf, -source
638[info] Main Scala API documentation successful.
639[info] :: delivering :: org.scalamock#scalamock_3;6.1.0-SNAPSHOT :: 6.1.0-SNAPSHOT :: integration :: Mon Dec 30 14:58:00 CET 2024
640[info] delivering ivy file to /build/repo/jvm/target/scala-3.6.3-RC1-20241230-376fc17-SNAPSHOT/ivy-6.1.0-SNAPSHOT.xml
641[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0-SNAPSHOT/poms/scalamock_3.pom
642[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0-SNAPSHOT/jars/scalamock_3.jar
643[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0-SNAPSHOT/srcs/scalamock_3-sources.jar
644[info] published scalamock_3 to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0-SNAPSHOT/docs/scalamock_3-javadoc.jar
645[info] published ivy to /root/.ivy2/local/org.scalamock/scalamock_3/6.1.0-SNAPSHOT/ivys/ivy.xml
646
647************************
648Build summary:
649[{
650 "module": "scalamock",
651 "compile": {"status": "ok", "tookMs": 14806, "warnings": 5, "errors": 0, "sourceVersion": "3.6-migration"},
652 "doc": {"status": "ok", "tookMs": 184, "files": 0, "totalSizeKb": 0},
653 "test-compile": {"status": "ok", "tookMs": 22959, "warnings": 0, "errors": 0, "sourceVersion": "3.6-migration"},
654 "test": {"status": "skipped", "tookMs": 0, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
655 "publish": {"status": "ok", "tookMs": 463}
656}]
657************************
658[success] Total time: 44 s, completed Dec 30, 2024, 2:58:00 PM
659Checking patch shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala...
660Checking patch shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala...
661Checking patch shared/src/main/scala/org/scalamock/MockFactoryBase.scala...
662Checking patch build.sbt...
663Applied patch shared/src/test/scala/com/paulbutcher/test/mock/MockTest.scala cleanly.
664Applied patch shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala cleanly.
665Applied patch shared/src/main/scala/org/scalamock/MockFactoryBase.scala cleanly.
666Applied patch build.sbt cleanly.