File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,7 @@ object SbtModulePatcher extends AutoPlugin {
32
32
val classpath = dependencyClasspath.value
33
33
val jarFiles =
34
34
classpath.map(_.data).filter(_.getName.endsWith(" .jar" ))
35
-
36
- jarFiles.foreach { jarFile =>
37
- if (! isModule(jarFile, log)) {
38
- modifyJar(jarFile, log)
39
- updateChecksums(jarFile, log)
40
- }
41
- }
35
+ patchJars(jarFiles, log)
42
36
},
43
37
compile := (compile dependsOn patchDependencies).value
44
38
)
@@ -53,6 +47,15 @@ object SbtModulePatcher extends AutoPlugin {
53
47
}
54
48
)
55
49
50
+ def patchJars (jarFiles : Seq [File ], log : Logger ): Unit = {
51
+ jarFiles.foreach { jarFile =>
52
+ if (! isModule(jarFile, log)) {
53
+ modifyJar(jarFile, log)
54
+ updateChecksums(jarFile, log)
55
+ }
56
+ }
57
+ }
58
+
56
59
private def isModule (jarFile : File , log : Logger ): Boolean = {
57
60
// Support both Scala 2.12 and 2.13
58
61
if (! jarFile.getName.contains(" _2.12" ) && ! jarFile.getName.contains(" _2.13" )) {
You can’t perform that action at this time.
0 commit comments