Skip to content

Commit

Permalink
try fix ci
Browse files Browse the repository at this point in the history
Took 4 minutes
  • Loading branch information
xkball committed Oct 15, 2024
1 parent b33d798 commit 0db984b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TinTeaTechAnnotationProcessor/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

import java.nio.file.Files

plugins {
id 'java'
id 'maven-publish'
Expand All @@ -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
Expand Down

0 comments on commit 0db984b

Please sign in to comment.