From 0db984b199d3ab7bfbfa564f27bd254d3ad3aadd Mon Sep 17 00:00:00 2001 From: xkball <45330674+xkball@users.noreply.github.com> Date: Wed, 16 Oct 2024 00:32:26 +0800 Subject: [PATCH] try fix ci Took 4 minutes --- TinTeaTechAnnotationProcessor/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TinTeaTechAnnotationProcessor/build.gradle b/TinTeaTechAnnotationProcessor/build.gradle index 6d800af..29a51e4 100644 --- a/TinTeaTechAnnotationProcessor/build.gradle +++ b/TinTeaTechAnnotationProcessor/build.gradle @@ -1,5 +1,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar +import java.nio.file.Files + plugins { id 'java' id 'maven-publish' @@ -17,8 +19,8 @@ tasks.register('generateAnnotationProcessorServicesFile'){ var classFiles = classesDir.getFiles().findAll { it.name.endsWith('.java') } classFiles.each { var path = it.path - var offset = path.indexOf("com\\xkball\\") - if(offset >= 0) target.text += path.substring(offset,path.length()-5).replace('\\','.') + '\n' + var offset = path.indexOf("xkball") + if(offset >= 0) target.text += path.substring(offset-4,path.length()-5).replace("\\",".").replace("/",".") + '\n' println path } println target.path