File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,18 @@ allprojects {
54
54
55
55
afterEvaluate {
56
56
android. applicationVariants. all { variant ->
57
- variant. javaCompiler. dependsOn(generateSources )
57
+ variant. javaCompiler. finalizedBy(jsoniterStaticCodgen )
58
58
}
59
59
}
60
60
61
- task generateSources (type :JavaExec ) {
61
+ task jsoniterStaticCodgen (type :JavaExec ) {
62
62
classpath configurations. getByName(android. sourceSets. main. compileConfigurationName)
63
+ classpath project. buildDir. toString() + ' /intermediates/classes/release'
63
64
classpath project. buildDir. toString() + ' /intermediates/classes/debug'
64
65
main = ' com.jsoniter.static_codegen.StaticCodegen'
65
66
args ' com.example.myapplication.DemoCodegenConfig'
66
67
workingDir = android. sourceSets. main. java. srcDirs[0 ]. toString()
67
68
standardOutput = System . out
68
69
errorOutput = System . err
69
- }
70
+ }
71
+
You can’t perform that action at this time.
0 commit comments