|
|
|
@ -76,7 +76,7 @@ class BuildFile(Validateable):
|
|
|
|
|
)
|
|
|
|
|
version_str = version_string.group()
|
|
|
|
|
except:
|
|
|
|
|
raise Exception(f"Version not found in file {self.file_path}")
|
|
|
|
|
raise RuntimeError(f"Version not found in file {self.file_path}")
|
|
|
|
|
|
|
|
|
|
result = Version.from_str(version_str, self.get_default_suffix())
|
|
|
|
|
result.throw_if_invalid()
|
|
|
|
@ -115,7 +115,7 @@ class BuildFile(Validateable):
|
|
|
|
|
)
|
|
|
|
|
self.content = substitute
|
|
|
|
|
except:
|
|
|
|
|
raise Exception(f"Version not found in file {self.file_path}")
|
|
|
|
|
raise RuntimeError(f"Version not found in file {self.file_path}")
|
|
|
|
|
|
|
|
|
|
def get_default_suffix(self) -> str:
|
|
|
|
|
result = "SNAPSHOT"
|
|
|
|
|