Source for Java SoftwareComponent used in publishing.publications

Hello, I’m trying to write a build script that can publish an Android library to Bintray. I cannot use from because I’m not using the java plugin. Is the source code for that class available anywhere? I’d like to consult it to know how it builds the pom dependencies node. I’ve tried searching the googles and the github repo but I can only find the SoftwareComponent interface and it’s basically empty.