public class GradleProjectType extends Object
| Constructor and Description |
|---|
GradleProjectType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(File directory) |
com.github.zafarkhaja.semver.Version |
getCurrentVersion(File directory,
ProcessHelper processHelper) |
void |
writeVersion(File directory,
com.github.zafarkhaja.semver.Version nextVersion,
ProcessHelper processHelper)
Write the new calculated version in the build.gradle file.
|
public boolean check(File directory)
public com.github.zafarkhaja.semver.Version getCurrentVersion(File directory, ProcessHelper processHelper) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void writeVersion(File directory, com.github.zafarkhaja.semver.Version nextVersion, ProcessHelper processHelper) throws IOException, InterruptedException
directory - The directory where find the build.gradle. MandatorynextVersion - The next version to write. MandatoryprocessHelper - Not used.IOException - If an error occurs when accessing to the build.gradleInterruptedException - Not used.Copyright © 2016–2021. All rights reserved.