File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,16 +28,27 @@ dependencies {
2828 testImplementation deps. privateConstructor
2929}
3030
31- task delombok (dependsOn : compileJava) {
31+ task delombok (type : JavaExec , dependsOn : compileJava) {
32+ def buildConfigInputDir = " $buildDir /gen/buildconfig/src/main"
33+
3234 ext. outputDir = ' build/delombok'
35+ outputs. dir(outputDir)
36+ inputs. dir(buildConfigInputDir)
37+
38+ args + = " delombok"
3339
34- doLast {
35- ant. taskdef(name : ' delombok' , classname : ' lombok.delombok.ant.Tasks$Delombok' ,
36- classpath : configurations. compileOnly. asPath)
40+ sourceSets. main. java. srcDirs. each {
41+ inputs. dir(it)
3742
38- ant. delombok(encoding : ' UTF-8' , from : ' src/main/java' , to : ext. outputDir,
39- classpath : configurations. compileClasspath. asPath)
43+ args + = it
4044 }
45+
46+ args + = buildConfigInputDir
47+ args + = " --target=$outputDir "
48+ args + = " --classpath=$configurations . compileClasspath . asPath "
49+
50+ classpath configurations. compileOnly. asPath
51+ main = " lombok.launch.Main"
4152}
4253
4354buildConfig {
You can’t perform that action at this time.
0 commit comments