All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.maven.plugins.externals.ReleaseMojo Maven / Gradle / Ivy

There is a newer version: 1.0.14
Show newest version
/**
 * Copyright 2011-2013 The Kuali Foundation
 *
 * Licensed under the Educational Community License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.opensource.org/licenses/ecl2.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.kuali.maven.plugins.externals;

import org.apache.maven.plugin.MojoExecutionException;

/**
 * Perform a release of a multi-module Maven project that contains svn:externals. The release process creates a separate tag for each module
 * defined as an svn:external after trimming SNAPSHOT off the version number. It then increments the version number in the root poms and
 * re-appends the SNAPSHOT qualifier before committing the altered poms.
 *
 * @goal release
 */
public class ReleaseMojo extends AbstractTagMojo {

	@Override
	public TagStyle getTagStyle() {
		return TagStyle.RELEASE;
	}

	@Override
	public void execute() throws MojoExecutionException {
		helper.createAndUpdateTags(this);
		getLog().info("Release has been successfully tagged.");
		getLog().info("Incrementing version numbers for the next development iteration");
		helper.incrementVersions(this);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy