As a plugin developer you can use this plugin as dependency of your plugin by adding a dependency tag to your POM.
To add the latest version of this plugin as a maven dependency, use the following:
<dependency> <groupId>io.jenkins.plugins</groupId> <artifactId>pipeline-as-yaml</artifactId> <version>242.vb_90a_b_f42ca_07</version> </dependency>