https://pantsbuild.org/ logo
#general
Title
# general
e

elegant-engineer-38436

08/23/2018, 4:56 PM
Hey all, hopefully a qq for folks here. I'm writing a pants plugin to generate code from an OpenAPI spec. I have my basic task (and custom target) defined and it works, running in the 'gen' phase and placing generated Java code into a specified repo directory. However, I have some java_library targets that depend on my custom target and my first build of those targets always fails as if the generated code is not there. Subsequent builds DO work, however, but I'm worried that each build is using the output of the previous build, which is not desired. I've been staring at the existing thrift and antlr codegen plugins for awhile and I'm not seeing what those plugins might be doing to avoid this problem. Anyone recognize what I might be missing here to get my codegen plugin working properly?