mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 02:34:39 +00:00
fix: Resolve deprecated gradle function
This commit is contained in:
parent
85af94d810
commit
3c00a249c3
1 changed files with 2 additions and 7 deletions
|
@ -1,6 +1,5 @@
|
|||
import com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsPlugin
|
||||
import com.google.gms.googleservices.GoogleServicesPlugin
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.time.LocalDateTime
|
||||
import java.time.ZoneOffset
|
||||
import java.time.format.DateTimeFormatter
|
||||
|
@ -22,12 +21,8 @@ if (gradle.startParameter.taskRequests.toString().contains("standard", true)) {
|
|||
}
|
||||
|
||||
fun runCommand(command: String): String {
|
||||
val byteOut = ByteArrayOutputStream()
|
||||
project.exec {
|
||||
commandLine = command.split(" ")
|
||||
standardOutput = byteOut
|
||||
}
|
||||
return String(byteOut.toByteArray()).trim()
|
||||
val result = providers.exec { commandLine(command.split(" ")) }
|
||||
return result.standardOutput.asText.get().trim()
|
||||
}
|
||||
|
||||
val _versionName = "1.9.8"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue