File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,18 @@ allprojects {
5454
5555afterEvaluate {
5656 android. applicationVariants. all { variant ->
57- variant. javaCompiler. dependsOn(generateSources )
57+ variant. javaCompiler. finalizedBy(jsoniterStaticCodgen )
5858 }
5959}
6060
61- task generateSources (type :JavaExec ) {
61+ task jsoniterStaticCodgen (type :JavaExec ) {
6262 classpath configurations. getByName(android. sourceSets. main. compileConfigurationName)
63+ classpath project. buildDir. toString() + ' /intermediates/classes/release'
6364 classpath project. buildDir. toString() + ' /intermediates/classes/debug'
6465 main = ' com.jsoniter.static_codegen.StaticCodegen'
6566 args ' com.example.myapplication.DemoCodegenConfig'
6667 workingDir = android. sourceSets. main. java. srcDirs[0 ]. toString()
6768 standardOutput = System . out
6869 errorOutput = System . err
69- }
70+ }
71+
You can’t perform that action at this time.
0 commit comments