from
Provides the software component that should be published.
- Any artifacts declared by the component will be included in the publication.
- The dependencies declared by the component will be included in the published meta-data.
plugins {
    id 'java'
    id 'maven-publish'
}
publishing {
  publications {
    maven(MavenPublication) {
      from components.java
    }
  }
}
Content copied to clipboard
Parameters
component
The software component to publish.