Added updates
This commit is contained in:
parent
6c36751d05
commit
6e61f165de
|
@ -145,12 +145,12 @@ tasks.jar.get().apply {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("stdlib-jdk8"))
|
|
||||||
// https://github.com/MicroUtils/kotlin-logging
|
// https://github.com/MicroUtils/kotlin-logging
|
||||||
implementation("io.github.microutils:kotlin-logging:2.0.6") // slick kotlin wrapper for slf4j
|
implementation("io.github.microutils:kotlin-logging:2.0.6") // slick kotlin wrapper for slf4j
|
||||||
implementation("org.slf4j:slf4j-api:1.7.30")
|
implementation("org.slf4j:slf4j-api:1.7.30")
|
||||||
|
|
||||||
implementation("com.dorkbox:Executor:3.0")
|
implementation("com.dorkbox:Executor:3.1")
|
||||||
|
implementation("com.dorkbox:Updates:1.0")
|
||||||
|
|
||||||
val jnaVersion = "5.8.0"
|
val jnaVersion = "5.8.0"
|
||||||
implementation("net.java.dev.jna:jna:$jnaVersion")
|
implementation("net.java.dev.jna:jna:$jnaVersion")
|
||||||
|
|
|
@ -12,6 +12,11 @@ import java.security.PrivilegedAction
|
||||||
* Network Utilities. MAC, IP, NameSpace, etc
|
* Network Utilities. MAC, IP, NameSpace, etc
|
||||||
*/
|
*/
|
||||||
internal object Common {
|
internal object Common {
|
||||||
|
/**
|
||||||
|
* Gets the version number.
|
||||||
|
*/
|
||||||
|
const val version = "2.3"
|
||||||
|
|
||||||
val OS_LINUX: Boolean
|
val OS_LINUX: Boolean
|
||||||
val OS_WINDOWS: Boolean
|
val OS_WINDOWS: Boolean
|
||||||
val OS_MAC: Boolean
|
val OS_MAC: Boolean
|
||||||
|
@ -41,6 +46,9 @@ internal object Common {
|
||||||
OS_WINDOWS = false
|
OS_WINDOWS = false
|
||||||
OS_MAC = false
|
OS_MAC = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add this project to the updates system, which verifies this class + UUID + version information
|
||||||
|
dorkbox.updates.Updates.add(Common::class.java, "956b308f207944af95928ef6282a46d7", version)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue