|
4 | 4 |
|
5 | 5 | import io.bazel.rulesscala.io_utils.StreamCopy;
|
6 | 6 | import io.bazel.rulesscala.jar.JarCreator;
|
7 |
| -import io.bazel.rulesscala.jdeps.JdepsWriter; |
8 | 7 | import io.bazel.rulesscala.worker.Worker;
|
9 |
| -import java.io.File; |
10 |
| -import java.io.FileOutputStream; |
11 |
| -import java.io.IOException; |
12 |
| -import java.io.InputStream; |
13 |
| -import java.io.OutputStream; |
14 |
| -import java.nio.file.FileVisitResult; |
15 |
| -import java.nio.file.Files; |
16 |
| -import java.nio.file.Path; |
17 |
| -import java.nio.file.Paths; |
18 |
| -import java.nio.file.SimpleFileVisitor; |
| 8 | +import java.io.*; |
| 9 | +import java.nio.file.*; |
19 | 10 | import java.nio.file.attribute.BasicFileAttributes;
|
20 | 11 | import java.util.ArrayList;
|
21 | 12 | import java.util.Arrays;
|
@@ -70,8 +61,6 @@ public void work(String[] args) throws Exception {
|
70 | 61 | compileScalaSources(ops, scalaSources, classes);
|
71 | 62 | }
|
72 | 63 |
|
73 |
| - JdepsWriter.write(ops.jdepsFilePath, ops.currentTarget, ops.classpath); |
74 |
| - |
75 | 64 | /** Copy the resources */
|
76 | 65 | copyResources(ops.resourceSources, ops.resourceTargets, classes);
|
77 | 66 |
|
@@ -106,7 +95,7 @@ private static String[] collectSrcJarSources(
|
106 | 95 | }
|
107 | 96 |
|
108 | 97 | private static List<File> filterFilesByExtension(List<File> files, String extension) {
|
109 |
| - List<File> filtered = new ArrayList<>(); |
| 98 | + List<File> filtered = new ArrayList<File>(); |
110 | 99 | for (File f : files) {
|
111 | 100 | if (f.toString().endsWith(extension)) {
|
112 | 101 | filtered.add(f);
|
@@ -249,7 +238,7 @@ private static String[] getPluginParamsFrom(CompileOptions ops) {
|
249 | 238 | }
|
250 | 239 |
|
251 | 240 | private static void compileScalaSources(CompileOptions ops, String[] scalaSources, Path classes)
|
252 |
| - throws IOException { |
| 241 | + throws IllegalAccessException, IOException { |
253 | 242 |
|
254 | 243 | String[] pluginArgs = buildPluginArgs(ops.plugins);
|
255 | 244 | String[] pluginParams = getPluginParamsFrom(ops);
|
|
0 commit comments