jlleitschuh
03/03/2017, 5:33 PM@get:Input
override val configuration: CodegenConfigurator by lazy { project.extensions.getByType(CodegenConfigurator::class.java) }
This throws an exception because:
Could not add entry ':PlexxiSwagger:Spec:swagger' to cache taskHistory.bin (/Users/jonathanleitschuh/work/git/plexxicontrol/.gradle/3.5-20170217174236+0000/taskHistory/taskHistory.bin).
> Unable to store task input properties. Property 'configuration' with value 'io.swagger.codegen.config.CodegenConfigurator_Decorated@735e4fd' cannot be serialized.
I know that the undecorated CodegenConfigurator
is serializable because I made it so that it was:
https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/java/io/swagger/codegen/config/CodegenConfigurator.java#L38
Is this because of the extensions plugin?bamboo
03/03/2017, 5:54 PMbamboo
03/03/2017, 5:54 PMjlleitschuh
03/03/2017, 5:55 PMbamboo
03/03/2017, 5:57 PMbamboo
03/03/2017, 5:59 PMExtensionContainer#create
is implicitly subclassed and it’s that subclass that gets instantiatedbamboo
03/03/2017, 5:59 PMoehme
03/03/2017, 6:03 PMjlleitschuh
03/06/2017, 3:43 PMjlleitschuh
03/06/2017, 3:44 PMoehme
03/06/2017, 4:42 PMincrementalCompile
on the Java plugin extension, but instead the user configures it on the JavaCompile
tasks themselves. The Java plugin extension only provides things that are cross-cutting, e.g. SourceSet
declarations (which are used by several tasks).oehme
03/06/2017, 4:45 PMSerializable
blob. That way users will get better reporting like “Out of date because apiPackage
changed" instead of “out of date because configuration changed”.