From 957a0a5f33bfebd76f5307009f3ef5160da5158d Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sun, 11 Jun 2023 15:26:02 +0200 Subject: [PATCH] fix: implemented autoservice --- build.gradle | 6 ++++-- src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 7c18fc6..2b3c16b 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { diff --git a/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java b/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java index 0fc6489..041fb2f 100644 --- a/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java +++ b/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java @@ -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 { /**