fix: implemented autoservice

This commit is contained in:
zaaarf 2023-06-11 15:26:02 +02:00
parent e4f8a565f6
commit 957a0a5f33
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C
2 changed files with 7 additions and 2 deletions

View file

@ -3,7 +3,7 @@ plugins {
id 'com.palantir.git-version' version '0.13.0'
}
archivesBaseName = 'lll-mapper'
archivesBaseName = 'mapper'
version = gitVersion()
java {
@ -19,7 +19,9 @@ repositories {
}
dependencies {
implementation 'ftbsc:lll:0.4.1'
implementation 'ftbsc:lll:0.4.2'
implementation 'com.google.auto.service:auto-service-annotations:1.1.0'
annotationProcessor 'com.google.auto.service:auto-service:1.1.0'
}
jar {

View file

@ -1,5 +1,6 @@
package ftbsc.lll.mapper.impl;
import com.google.auto.service.AutoService;
import ftbsc.lll.exceptions.MappingNotFoundException;
import ftbsc.lll.mapper.IMapper;
import ftbsc.lll.mapper.tools.ClassData;
@ -11,6 +12,8 @@ import java.util.Map;
* Parses a .tsrg file into a mapper capable of converting from
* plain names to obfuscated ones and vice versa.
*/
@AutoService(IMapper.class)
public class TSRGMapper implements IMapper {
/**