mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2026-11-23 19:53:00 +00:00
update dependencies and gradle wrapper
This commit is contained in:
1 parent
950a8bccc3
commit
029739a90f
5 files changed
+18
-11
No files matched your search
@@ -1,11 +1,17 @@
|
||||
interface InjectedExecOps {
|
||||
@Inject //@javax.inject.Inject
|
||||
ExecOperations getExecOps()
|
||||
}
|
||||
private String getCurrentVersionChangelog(String version) {
|
||||
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
||||
exec {
|
||||
|
||||
def injected = project.objects.newInstance(InjectedExecOps)
|
||||
injected.execOps.exec {
|
||||
commandLine 'chmod', "+x", './changelog_parser.sh'
|
||||
}
|
||||
exec {
|
||||
injected.execOps.exec {
|
||||
standardOutput = changelogDataOS
|
||||
commandLine './changelog_parser.sh', "$version", 'CHANGELOG.md'
|
||||
commandLine './changelog_parser.sh', version, 'CHANGELOG.md'
|
||||
}
|
||||
|
||||
return changelogDataOS.toString().trim()
|
||||
|
||||
Reference in new issue
Block a user