Compare commits

..

2 commits

Author SHA1 Message Date
2d944f31c5
fix: support every source version 2024-05-31 20:21:37 +02:00
85b3aeea1a
fix: updated to new mapper library 2024-05-31 19:36:42 +02:00
8 changed files with 23 additions and 15 deletions

View file

@ -26,7 +26,7 @@ repositories {
dependencies {
implementation 'com.squareup:javapoet:1.13.0'
implementation 'org.ow2.asm:asm-commons:9.5'
implementation 'ftbsc:lll:0.5.0'
implementation 'ftbsc.lll:mapper:0.3.0'
implementation 'org.ow2.asm:asm-commons:9.7'
implementation 'ftbsc:lll:0.5.1'
implementation 'ftbsc.lll:mapper:0.4.1'
}

View file

@ -1,2 +1,2 @@
rootProject.name = 'lillero-processor'
rootProject.name = 'processor'

View file

@ -36,7 +36,6 @@ import static ftbsc.lll.processor.utils.JavaPoetUtils.*;
* It (implicitly) implements the {@link Processor} interface by extending {@link AbstractProcessor}.
*/
@SupportedAnnotationTypes({"ftbsc.lll.processor.annotations.Patch", "ftbsc.lll.processor.annotations.BareInjector"})
@SupportedSourceVersion(SourceVersion.RELEASE_8)
public class LilleroProcessor extends AbstractProcessor {
/**
* A {@link Set} of {@link String}s that will contain the fully qualified names
@ -58,6 +57,15 @@ public class LilleroProcessor extends AbstractProcessor {
return ProcessorOptions.SUPPORTED;
}
/**
* Always returns the latest version since this should never break.
* @return the latest version
*/
@Override
public SourceVersion getSupportedSourceVersion() {
return SourceVersion.latest();
}
/**
* Returns the {@link ProcessorOptions} for this instance, creating the object if
* it hasn't been already.

View file

@ -2,7 +2,7 @@ package ftbsc.lll.processor;
import ftbsc.lll.IInjector;
import ftbsc.lll.mapper.MapperProvider;
import ftbsc.lll.mapper.tools.Mapper;
import ftbsc.lll.mapper.utils.Mapper;
import javax.annotation.processing.ProcessingEnvironment;
import java.util.Arrays;

View file

@ -1,7 +1,7 @@
package ftbsc.lll.processor.containers;
import ftbsc.lll.exceptions.TargetNotFoundException;
import ftbsc.lll.mapper.tools.data.ClassData;
import ftbsc.lll.mapper.data.ClassData;
import ftbsc.lll.processor.annotations.Find;
import ftbsc.lll.processor.annotations.Patch;
import ftbsc.lll.processor.ProcessorOptions;

View file

@ -1,8 +1,8 @@
package ftbsc.lll.processor.containers;
import ftbsc.lll.exceptions.AmbiguousDefinitionException;
import ftbsc.lll.mapper.tools.MappingUtils;
import ftbsc.lll.mapper.tools.data.FieldData;
import ftbsc.lll.mapper.utils.MappingUtils;
import ftbsc.lll.mapper.data.FieldData;
import ftbsc.lll.processor.annotations.Find;
import ftbsc.lll.processor.annotations.Patch;
import ftbsc.lll.processor.ProcessorOptions;

View file

@ -2,8 +2,8 @@ package ftbsc.lll.processor.containers;
import ftbsc.lll.exceptions.AmbiguousDefinitionException;
import ftbsc.lll.exceptions.TargetNotFoundException;
import ftbsc.lll.mapper.tools.MappingUtils;
import ftbsc.lll.mapper.tools.data.MethodData;
import ftbsc.lll.mapper.utils.MappingUtils;
import ftbsc.lll.mapper.data.MethodData;
import ftbsc.lll.processor.annotations.Find;
import ftbsc.lll.processor.annotations.Patch;
import ftbsc.lll.processor.annotations.Target;

View file

@ -4,10 +4,10 @@ import ftbsc.lll.exceptions.AmbiguousDefinitionException;
import ftbsc.lll.exceptions.MappingNotFoundException;
import ftbsc.lll.exceptions.NotAProxyException;
import ftbsc.lll.exceptions.TargetNotFoundException;
import ftbsc.lll.mapper.tools.Mapper;
import ftbsc.lll.mapper.tools.data.ClassData;
import ftbsc.lll.mapper.tools.data.FieldData;
import ftbsc.lll.mapper.tools.data.MethodData;
import ftbsc.lll.mapper.utils.Mapper;
import ftbsc.lll.mapper.data.ClassData;
import ftbsc.lll.mapper.data.FieldData;
import ftbsc.lll.mapper.data.MethodData;
import ftbsc.lll.processor.annotations.Target;
import ftbsc.lll.processor.containers.ClassContainer;
import ftbsc.lll.proxies.ProxyType;