Initial commit

This commit is contained in:
2025-04-28 23:25:29 +08:00
commit ca938a603e
22 changed files with 787 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/*
* Copyright © 2025 RTAkland
* Date: 2025/4/28 22:56
* Open Source Under Apache-2.0 License
* https://www.apache.org/licenses/LICENSE-2.0
*/
plugins {
kotlin("jvm")
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}

View File

@@ -0,0 +1,16 @@
/*
* Copyright © 2025 RTAkland
* Date: 2025/4/28 23:13
* Open Source Under Apache-2.0 License
* https://www.apache.org/licenses/LICENSE-2.0
*/
package cn.rtast.runbroker.common
data class JavaExecPath(
val path: String
) {
companion object {
val DEFAULT = JavaExecPath("-")
}
}

View File

@@ -0,0 +1,14 @@
/*
* Copyright © 2025 RTAkland
* Date: 2025/4/28 22:49
* Open Source Under Apache-2.0 License
* https://www.apache.org/licenses/LICENSE-2.0
*/
package cn.rtast.runbroker.common.util
import java.io.File
fun String.readBytesFromFile(): ByteArray {
return File(this).readBytes()
}