File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,27 @@ dependencies {
28
28
testImplementation deps. privateConstructor
29
29
}
30
30
31
- task delombok (dependsOn : compileJava) {
31
+ task delombok (type : JavaExec , dependsOn : compileJava) {
32
+ def buildConfigInputDir = " $buildDir /gen/buildconfig/src/main"
33
+
32
34
ext. outputDir = ' build/delombok'
35
+ outputs. dir(outputDir)
36
+ inputs. dir(buildConfigInputDir)
37
+
38
+ args + = " delombok"
33
39
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)
37
42
38
- ant. delombok(encoding : ' UTF-8' , from : ' src/main/java' , to : ext. outputDir,
39
- classpath : configurations. compileClasspath. asPath)
43
+ args + = it
40
44
}
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"
41
52
}
42
53
43
54
buildConfig {
You can’t perform that action at this time.
0 commit comments