Tabnine Logo
MavenPom
Code IndexAdd Tabnine to your IDE (free)

How to use
MavenPom
in
org.gradle.api.publish.maven

Best Java code snippets using org.gradle.api.publish.maven.MavenPom (Showing top 9 results out of 315)

origin: spring-gradle-plugins/dependency-management-plugin

@Override
public void execute(MavenPublication mavenPublication) {
  mavenPublication.getPom().withXml(extension);
}
origin: gradle.plugin.com.xenoterracide.gradle/pluginbundle

pubs.create( "mavenJava", MavenPublication.class, pub -> {
  MavenPom pom = pub.getPom();
  pom.developers( devs -> {
    devs.developer( dev -> {
      dev.getName().set( "Caleb Cushing" );
origin: gradle.plugin.com.xenoterracide.gradle/gradle-plugin-bundle

pubs.create( "mavenJava", MavenPublication.class, pub -> {
  MavenPom pom = pub.getPom();
  pom.developers( devs -> {
    devs.developer( dev -> {
      dev.getName().set( "Caleb Cushing" );
origin: mockito/shipkit

/**
 * Customizes the pom. The method requires following properties on root project to function correctly:
 */
public static void customizePom(final Project project, final ShipkitConfiguration conf, final MavenPublication publication) {
  publication.getPom().withXml(new Action<XmlProvider>() {
    public void execute(XmlProvider xml) {
      String archivesBaseName = (String) project.getProperties().get("archivesBaseName");
      File contributorsFile = contributorsFile(project);
      LOG.info("  Read project contributors from file: " + contributorsFile.getAbsolutePath());
      // It can happens that contributorsFile doesn't exist e.g. when shipkit.team.contributors is NOT empty
      ProjectContributorsSet contributorsFromGitHub = new ProjectContributorsSerializer()
          .deserialize(IOUtil.readFullyOrDefault(contributorsFile, "[]"));
      LOG.info("  Customizing pom for publication " + publication.getName() + " in " + project.toString() +
          "\n   - Module name (project.archivesBaseName): " + archivesBaseName +
          "\n   - Description (project.description): " + project.getDescription() +
          "\n   - GitHub repository (project.rootProject.shipkit.gitHub.repository): "
              + conf.getGitHub().getRepository() +
          "\n   - Developers (project.rootProject.shipkit.team.developers): "
              + StringUtil.join(conf.getTeam().getDevelopers(), ", ") +
          "\n   - Contributors (project.rootProject.shipkit.team.contributors): "
              + StringUtil.join(conf.getTeam().getContributors(), ", ") +
          "\n   - Contributors read from GitHub: "
              + StringUtil.join(contributorsFromGitHub.toConfigNotation(), ", "));
      customizePom(xml.asNode(), conf, archivesBaseName, project.getDescription(), contributorsFromGitHub);
    }
  });
}
origin: gradle.plugin.com.xenoterracide/gradle-mirror

pubs.create( "mavenJava", MavenPublication.class, pub -> {
  MavenPom pom = pub.getPom();
  pom.developers( devs -> {
    devs.developer( dev -> {
      dev.getName().set( "Caleb Cushing" );
origin: org.shipkit/shipkit

/**
 * Customizes the pom. The method requires following properties on root project to function correctly:
 */
public static void customizePom(final Project project, final ShipkitConfiguration conf, final MavenPublication publication) {
  publication.getPom().withXml(new Action<XmlProvider>() {
    public void execute(XmlProvider xml) {
      String archivesBaseName = (String) project.getProperties().get("archivesBaseName");
      File contributorsFile = contributorsFile(project);
      LOG.info("  Read project contributors from file: " + contributorsFile.getAbsolutePath());
      // It can happens that contributorsFile doesn't exist e.g. when shipkit.team.contributors is NOT empty
      ProjectContributorsSet contributorsFromGitHub = new ProjectContributorsSerializer()
          .deserialize(IOUtil.readFullyOrDefault(contributorsFile, "[]"));
      LOG.info("  Customizing pom for publication " + publication.getName() + " in " + project.toString() +
          "\n   - Module name (project.archivesBaseName): " + archivesBaseName +
          "\n   - Description (project.description): " + project.getDescription() +
          "\n   - GitHub repository (project.rootProject.shipkit.gitHub.repository): "
              + conf.getGitHub().getRepository() +
          "\n   - Developers (project.rootProject.shipkit.team.developers): "
              + StringUtil.join(conf.getTeam().getDevelopers(), ", ") +
          "\n   - Contributors (project.rootProject.shipkit.team.contributors): "
              + StringUtil.join(conf.getTeam().getContributors(), ", ") +
          "\n   - Contributors read from GitHub: "
              + StringUtil.join(contributorsFromGitHub.toConfigNotation(), ", "));
      customizePom(xml.asNode(), conf, archivesBaseName, project.getDescription(), contributorsFromGitHub);
    }
  });
}
origin: gradle.plugin.org.shipkit/shipkit

/**
 * Customizes the pom. The method requires following properties on root project to function correctly:
 */
public static void customizePom(final Project project, final ReleaseConfiguration conf, final MavenPublication publication) {
  publication.getPom().withXml(new Action<XmlProvider>() {
    public void execute(XmlProvider xml) {
      String archivesBaseName = (String) project.getProperties().get("archivesBaseName");
      File contributorsFile = contributorsFile(project);
      LOG.info("  Read project contributors from file: " + contributorsFile.getAbsolutePath());
      // It can happens that contributorsFile doesn't exist e.g. when shipkit.team.contributors is NOT empty
      ProjectContributorsSet contributorsFromGitHub = new AllContributorsSerializer()
          .deserialize(IOUtil.readFullyOrDefault(contributorsFile, "[]"));
      LOG.info("  Customizing pom for publication " + publication.getName() + " in " + project.toString() +
          "\n   - Module name (project.archivesBaseName): " + archivesBaseName +
          "\n   - Description (project.description): " + project.getDescription() +
          "\n   - GitHub repository (project.rootProject.shipkit.gitHub.repository): "
              + conf.getGitHub().getRepository() +
          "\n   - Developers (project.rootProject.shipkit.team.developers): "
              + StringUtil.join(conf.getTeam().getDevelopers(), ", ") +
          "\n   - Contributors (project.rootProject.shipkit.team.contributors): "
              + StringUtil.join(conf.getTeam().getContributors(), ", ") +
          "\n   - Contributors read from GitHub: "
              + StringUtil.join(contributorsFromGitHub.toConfigNotation(), ", "));
      customizePom(xml.asNode(), conf, archivesBaseName, project.getDescription(), contributorsFromGitHub);
    }
  });
}
origin: gradle.plugin.me.seeber.gradle/gradle-project-config

    Validate.notNull(compileConfigurations), Validate.notNull(artifacts));
p.pom(pom -> pom.withXml(xml -> configurator.configurePom(Validate.notNull(xml))));
origin: me.seeber.gradle/gradle-project-config

    Validate.notNull(compileConfigurations), Validate.notNull(artifacts));
p.pom(pom -> pom.withXml(xml -> configurator.configurePom(Validate.notNull(xml))));
org.gradle.api.publish.mavenMavenPom

Most used methods

  • withXml
  • developers

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now