File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed
j2cl-tasks/src/main/java/com/vertispan/j2cl/build/provided Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 22
22
import java .nio .file .Path ;
23
23
24
24
/**
25
- * TODO implement using the ijar tool or the equivelent
26
- *
27
- * For now, this is just the same output, straight passthru
25
+ * Along with {@link JavacTask}, no longer used unless specifically requested by the user.
26
+ * See {@link TurbineTask} for the more efficient replacement.
27
+ * <p>
28
+ * To re-enable this, set task type stripped_bytecode_headers to "original-bytecode".
28
29
*/
30
+ @ Deprecated
29
31
@ AutoService (TaskFactory .class )
30
32
public class IJarTask extends TaskFactory {
31
33
@ Override
Original file line number Diff line number Diff line change 29
29
import java .util .stream .Collectors ;
30
30
import java .util .stream .Stream ;
31
31
32
+ /**
33
+ * Along with {@link IJarTask}, no longer used unless specifically requested by the user.
34
+ * See {@link TurbineTask} for the more efficient replacement. This class was an intermediate
35
+ * task, before IJarTask, re-enable that class through configuration to use this.
36
+ */
37
+ @ Deprecated
32
38
@ AutoService (TaskFactory .class )
33
39
public class JavacTask extends TaskFactory {
34
40
Original file line number Diff line number Diff line change 36
36
import java .util .zip .ZipInputStream ;
37
37
38
38
@ AutoService (TaskFactory .class )
39
- public class TurbineTask extends JavacTask {
39
+ public class TurbineTask extends TaskFactory {
40
40
41
41
public static final PathMatcher JAVA_SOURCES = withSuffix (".java" );
42
+ public static final PathMatcher JAVA_BYTECODE = withSuffix (".class" );
42
43
43
44
@ Override
44
45
public String getOutputType () {
@@ -57,11 +58,6 @@ public String getVersion() {
57
58
58
59
@ Override
59
60
public Task resolve (Project project , Config config ) {
60
- int version = SourceVersion .latestSupported ().ordinal ();
61
- if (version == 8 ) {
62
- return super .resolve (project , config );
63
- }
64
-
65
61
// emits only stripped bytecode, so we're not worried about anything other than .java files to compile and .class on the classpath
66
62
Input ownSources = input (project , OutputTypes .STRIPPED_SOURCES ).filter (JAVA_SOURCES );
67
63
You can’t perform that action at this time.
0 commit comments