解决JDK17编译报错的问题
更新hutool版本号为5.8.15
This commit is contained in:
linpeilie 2023-03-23 18:28:31 +08:00
parent 50269d6c5a
commit b0a2f34981
2 changed files with 7 additions and 3 deletions

View File

@ -60,7 +60,6 @@ import static javax.tools.Diagnostic.Kind.ERROR;
@SupportedAnnotationTypes({AUTO_MAPPER_ANNOTATION, AUTO_MAPPERS_ANNOTATION, AUTO_MAP_MAPPER_ANNOTATION,
MAPPER_CONFIG_ANNOTATION, COMPONENT_MODEL_CONFIG_ANNOTATION})
@SupportedSourceVersion(SourceVersion.RELEASE_8)
public class AutoMapperProcessor extends AbstractProcessor {
private static final ClassName MAPPING_DEFAULT_TARGET = ClassName.get("io.github.linpeilie", "DefaultMapping");
@ -539,4 +538,9 @@ public class AutoMapperProcessor extends AbstractProcessor {
.collect(Collectors.toList());
}
@Override
public SourceVersion getSupportedSourceVersion() {
return SourceVersion.latestSupported();
}
}

View File

@ -17,12 +17,12 @@
</modules>
<properties>
<mapstruct-plus.version>1.2.0</mapstruct-plus.version>
<mapstruct-plus.version>1.2.1</mapstruct-plus.version>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mapstruct.version>1.5.3.Final</mapstruct.version>
<hutool.version>5.8.9</hutool.version>
<hutool.version>5.8.15</hutool.version>
<projectUrl>https://github.com/linpeilie/mapstruct-plus.git</projectUrl>
</properties>