
net.researchgate.release.BaseScmAdapter.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-release Show documentation
Show all versions of gradle-release Show documentation
gradle-release is a plugin for providing a Maven-like release process to project using Gradle.
/*
* This file is part of the gradle-release plugin.
*
* (c) Eric Berry
* (c) ResearchGate GmbH
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package net.researchgate.release
import org.gradle.api.Project
abstract class BaseScmAdapter extends PluginHelper {
BaseScmAdapter(Project project, Map attributes) {
this.project = project
this.attributes = attributes
extension = project.extensions['release'] as ReleaseExtension
}
abstract Object createNewConfig()
abstract boolean isSupported(File directory)
abstract void init()
abstract void checkCommitNeeded()
abstract void checkUpdateNeeded()
abstract void createReleaseTag(String message)
abstract void add(File file)
abstract void commit(String message)
abstract void revert()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy