mirror of
https://github.com/ProjectSWGCore/client-holocore.git
synced 2026-01-15 21:04:20 -05:00
Removed modularization dependency and increased JDK compatibility
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
plugins {
|
||||
idea
|
||||
java
|
||||
id("org.javamodularity.moduleplugin")
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
val javaVersion: String by ext
|
||||
val javaMajorVersion: String by ext
|
||||
val kotlinTargetJdk: String by ext
|
||||
|
||||
java {
|
||||
modularity.inferModulePath.set(true)
|
||||
}
|
||||
|
||||
idea {
|
||||
targetVersion = "12.0.1"
|
||||
targetVersion = javaVersion
|
||||
module {
|
||||
inheritOutputDirs = true
|
||||
}
|
||||
@@ -19,9 +26,11 @@ repositories {
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java.outputDir = File(java.outputDir.toString().replace("\\${File.separatorChar}java", ""))
|
||||
|
||||
dependencies {
|
||||
implementation(project(":pswgcommon"))
|
||||
implementation(kotlin("stdlib"))
|
||||
implementation(project(":pswgcommon"))
|
||||
api(group="me.joshlarson", name="jlcommon-network", version="1.0.0")
|
||||
}
|
||||
}
|
||||
@@ -34,6 +43,6 @@ sourceSets {
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
||||
kotlinOptions {
|
||||
jvmTarget = "12"
|
||||
jvmTarget = kotlinTargetJdk
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
include ':pswgcommon'
|
||||
1
settings.gradle.kts
Normal file
1
settings.gradle.kts
Normal file
@@ -0,0 +1 @@
|
||||
include(":pswgcommon")
|
||||
@@ -27,7 +27,7 @@ class HolocoreInputStream(private val stream: InputStream): Closeable {
|
||||
return protocol.disassemble() ?: continue
|
||||
} while (true)
|
||||
}
|
||||
throw AssertionError("unreachable code")
|
||||
throw AssertionError("unreachable")
|
||||
}
|
||||
|
||||
override fun close() {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.projectswg.holocore.client;
|
||||
|
||||
public enum ServerConnectionStatus {
|
||||
CONNECTING,
|
||||
CONNECTED,
|
||||
DISCONNECTING,
|
||||
DISCONNECTED
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package com.projectswg.holocore.client
|
||||
|
||||
enum class ServerConnectionStatus {
|
||||
CONNECTING,
|
||||
CONNECTED,
|
||||
DISCONNECTING,
|
||||
DISCONNECTED
|
||||
}
|
||||
Reference in New Issue
Block a user