mirror of
https://github.com/ethauvin/version-processor.git
synced 2025-04-25 07:57:12 -07:00
Update
This commit is contained in:
parent
ebb8c3503a
commit
72ed28c902
7 changed files with 32 additions and 17 deletions
|
@ -8,6 +8,5 @@
|
|||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
|
||||
</component>
|
||||
</module>
|
|
@ -2,11 +2,16 @@ package com.beust.apt.processor;
|
|||
|
||||
import javax.annotation.processing.AbstractProcessor;
|
||||
import javax.annotation.processing.RoundEnvironment;
|
||||
import javax.lang.model.SourceVersion;
|
||||
import javax.lang.model.element.TypeElement;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
public class MainProcessor extends AbstractProcessor {
|
||||
public MainProcessor() {
|
||||
System.out.println("Instantiating MainProcessor");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
|
||||
System.out.println("Processing annotations $annotations");
|
||||
|
@ -18,4 +23,9 @@ public class MainProcessor extends AbstractProcessor {
|
|||
result.add("Version");
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SourceVersion getSupportedSourceVersion() {
|
||||
return SourceVersion.RELEASE_7;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue