File tree Expand file tree Collapse file tree 16 files changed +83
-44
lines changed
src/main/java/org/codehaus/plexus/compiler/manager
src/main/java/org/codehaus/plexus/compiler/ajc
src/main/java/org/codehaus/plexus/compiler/csharp
src/main/java/org/codehaus/plexus/compiler/eclipse
src/main/java/org/codehaus/plexus/compiler/j2objc
plexus-compiler-javac-errorprone
src/main/java/org/codehaus/plexus/compiler/javac/errorprone
src/main/java/org/codehaus/plexus/compiler/javac Expand file tree Collapse file tree 16 files changed +83
-44
lines changed Original file line number Diff line number Diff line change 18
18
<artifactId >plexus-compiler-api</artifactId >
19
19
</dependency >
20
20
<dependency >
21
- <groupId >org.codehaus.plexus </groupId >
22
- <artifactId >plexus-component-annotations </artifactId >
21
+ <groupId >javax.inject </groupId >
22
+ <artifactId >javax.inject </artifactId >
23
23
</dependency >
24
24
<dependency >
25
25
<groupId >org.junit.jupiter</groupId >
Original file line number Diff line number Diff line change 25
25
*/
26
26
27
27
import org .codehaus .plexus .compiler .Compiler ;
28
- import org .codehaus .plexus .component .annotations .Component ;
29
- import org .codehaus .plexus .component .annotations .Requirement ;
30
28
29
+ import javax .inject .Inject ;
30
+ import javax .inject .Named ;
31
31
import java .util .Map ;
32
32
33
33
/**
34
34
* @author <a href="mailto:[email protected] ">Trygve Laugstøl</a>
35
35
*/
36
- @ Component ( role = CompilerManager . class )
36
+ @ Named
37
37
public class DefaultCompilerManager
38
38
implements CompilerManager
39
39
{
40
- @ Requirement
40
+ @ Inject
41
41
private Map <String , Compiler > compilers ;
42
42
43
43
// ----------------------------------------------------------------------
Original file line number Diff line number Diff line change 19
19
20
20
<dependencies >
21
21
<dependency >
22
- <groupId >org.codehaus.plexus </groupId >
23
- <artifactId >plexus-component-annotations </artifactId >
22
+ <groupId >javax.inject </groupId >
23
+ <artifactId >javax.inject </artifactId >
24
24
</dependency >
25
25
<dependency >
26
26
<groupId >org.aspectj</groupId >
Original file line number Diff line number Diff line change 10
10
import org .aspectj .org .eclipse .jdt .internal .compiler .classfmt .ClassFileConstants ;
11
11
import org .aspectj .tools .ajc .Main ;
12
12
import org .codehaus .plexus .compiler .AbstractCompiler ;
13
- import org .codehaus .plexus .compiler .Compiler ;
14
13
import org .codehaus .plexus .compiler .CompilerConfiguration ;
15
14
import org .codehaus .plexus .compiler .CompilerException ;
16
15
import org .codehaus .plexus .compiler .CompilerMessage ;
17
16
import org .codehaus .plexus .compiler .CompilerOutputStyle ;
18
17
import org .codehaus .plexus .compiler .CompilerResult ;
19
- import org .codehaus .plexus .component .annotations .Component ;
20
18
import org .codehaus .plexus .util .DirectoryScanner ;
21
19
20
+ import javax .inject .Named ;
21
+ import javax .inject .Singleton ;
22
22
import java .io .File ;
23
23
import java .io .IOException ;
24
24
import java .net .MalformedURLException ;
287
287
*
288
288
* @author <a href="mailto:[email protected] ">Jason van Zyl</a>
289
289
*/
290
- @ Component ( role = Compiler . class , hint = "aspectj" )
290
+ @ Named ( "aspectj" )
291
291
public class AspectJCompiler
292
292
extends AbstractCompiler
293
293
{
Original file line number Diff line number Diff line change 15
15
16
16
<dependencies >
17
17
<dependency >
18
- <groupId >org.codehaus.plexus </groupId >
19
- <artifactId >plexus-component-annotations </artifactId >
18
+ <groupId >javax.inject </groupId >
19
+ <artifactId >javax.inject </artifactId >
20
20
</dependency >
21
21
<dependency >
22
22
<groupId >org.codehaus.plexus</groupId >
Original file line number Diff line number Diff line change 17
17
*/
18
18
19
19
import org .codehaus .plexus .compiler .AbstractCompiler ;
20
- import org .codehaus .plexus .compiler .Compiler ;
21
20
import org .codehaus .plexus .compiler .CompilerConfiguration ;
22
21
import org .codehaus .plexus .compiler .CompilerException ;
23
22
import org .codehaus .plexus .compiler .CompilerMessage ;
24
23
import org .codehaus .plexus .compiler .CompilerOutputStyle ;
25
24
import org .codehaus .plexus .compiler .CompilerResult ;
26
- import org .codehaus .plexus .component .annotations .Component ;
27
25
import org .codehaus .plexus .util .DirectoryScanner ;
28
26
import org .codehaus .plexus .util .IOUtil ;
29
27
import org .codehaus .plexus .util .Os ;
34
32
import org .codehaus .plexus .util .cli .StreamConsumer ;
35
33
import org .codehaus .plexus .util .cli .WriterStreamConsumer ;
36
34
35
+ import javax .inject .Named ;
37
36
import java .io .BufferedReader ;
38
37
import java .io .File ;
39
38
import java .io .FileWriter ;
57
56
* @author <a href="mailto:[email protected] ">Matthew Pocock</a>
58
57
* @author <a href="mailto:[email protected] ">Chris Stevenson</a>
59
58
*/
60
- @ Component ( role = Compiler . class , hint = "csharp" )
59
+ @ Named ( "csharp" )
61
60
public class CSharpCompiler
62
61
extends AbstractCompiler
63
62
{
Original file line number Diff line number Diff line change 32
32
<version >3.33.0</version >
33
33
</dependency >
34
34
<dependency >
35
- <groupId >org.codehaus.plexus </groupId >
36
- <artifactId >plexus-component-annotations </artifactId >
35
+ <groupId >javax.inject </groupId >
36
+ <artifactId >javax.inject </artifactId >
37
37
</dependency >
38
38
<dependency >
39
39
<groupId >org.junit.jupiter</groupId >
Original file line number Diff line number Diff line change 24
24
* SOFTWARE.
25
25
*/
26
26
27
+ import javax .inject .Named ;
28
+ import javax .inject .Singleton ;
27
29
import javax .tools .Diagnostic ;
28
30
import javax .tools .DiagnosticListener ;
29
31
import javax .tools .JavaCompiler ;
44
46
import java .util .Map .Entry ;
45
47
import java .util .ServiceLoader ;
46
48
import org .codehaus .plexus .compiler .AbstractCompiler ;
47
- import org .codehaus .plexus .compiler .Compiler ;
48
49
import org .codehaus .plexus .compiler .CompilerConfiguration ;
49
50
import org .codehaus .plexus .compiler .CompilerException ;
50
51
import org .codehaus .plexus .compiler .CompilerMessage ;
51
52
import org .codehaus .plexus .compiler .CompilerOutputStyle ;
52
53
import org .codehaus .plexus .compiler .CompilerResult ;
53
- import org .codehaus .plexus .component .annotations .Component ;
54
54
import org .codehaus .plexus .util .StringUtils ;
55
55
import org .eclipse .jdt .core .compiler .CompilationProgress ;
56
56
import org .eclipse .jdt .core .compiler .batch .BatchCompiler ;
57
57
58
58
/**
59
59
*
60
60
*/
61
- @ Component ( role = Compiler .class , hint = "eclipse" )
61
+ @ Named ( "eclipse" )
62
+ @ Singleton
62
63
public class EclipseJavaCompiler
63
64
extends AbstractCompiler
64
65
{
Original file line number Diff line number Diff line change 19
19
<artifactId >plexus-utils</artifactId >
20
20
</dependency >
21
21
<dependency >
22
- <groupId >org.codehaus.plexus </groupId >
23
- <artifactId >plexus-component-annotations </artifactId >
22
+ <groupId >javax.inject </groupId >
23
+ <artifactId >javax.inject </artifactId >
24
24
</dependency >
25
25
<dependency >
26
26
<groupId >org.junit.jupiter</groupId >
Original file line number Diff line number Diff line change 17
17
*/
18
18
19
19
import org .codehaus .plexus .compiler .AbstractCompiler ;
20
- import org .codehaus .plexus .compiler .Compiler ;
21
20
import org .codehaus .plexus .compiler .CompilerConfiguration ;
22
21
import org .codehaus .plexus .compiler .CompilerException ;
23
22
import org .codehaus .plexus .compiler .CompilerMessage ;
24
23
import org .codehaus .plexus .compiler .CompilerMessage .Kind ;
25
24
import org .codehaus .plexus .compiler .CompilerOutputStyle ;
26
25
import org .codehaus .plexus .compiler .CompilerResult ;
27
- import org .codehaus .plexus .component .annotations .Component ;
28
26
import org .codehaus .plexus .util .StringUtils ;
29
27
import org .codehaus .plexus .util .cli .CommandLineException ;
30
28
import org .codehaus .plexus .util .cli .CommandLineUtils ;
31
29
import org .codehaus .plexus .util .cli .Commandline ;
32
30
import org .codehaus .plexus .util .cli .StreamConsumer ;
33
31
import org .codehaus .plexus .util .cli .WriterStreamConsumer ;
34
32
33
+ import javax .inject .Named ;
35
34
import java .io .BufferedReader ;
36
35
import java .io .File ;
37
36
import java .io .IOException ;
51
50
* Maître</a>
52
51
*
53
52
*/
54
- @ Component ( role = Compiler . class , hint = "j2objc" )
53
+ @ Named ( "j2objc" )
55
54
public class J2ObjCCompiler
56
55
extends AbstractCompiler
57
56
{
You can’t perform that action at this time.
0 commit comments