Removed modularization dependency and increased JDK compatibility

This commit is contained in:
Obique PSWG
2021-04-12 11:53:12 -05:00
parent 38abddab1a
commit 242066cbb5
6 changed files with 23 additions and 14 deletions

View File

@@ -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
}
}

View File

@@ -1 +0,0 @@
include ':pswgcommon'

1
settings.gradle.kts Normal file
View File

@@ -0,0 +1 @@
include(":pswgcommon")

View File

@@ -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() {

View File

@@ -0,0 +1,8 @@
package com.projectswg.holocore.client;
public enum ServerConnectionStatus {
CONNECTING,
CONNECTED,
DISCONNECTING,
DISCONNECTED
}

View File

@@ -1,8 +0,0 @@
package com.projectswg.holocore.client
enum class ServerConnectionStatus {
CONNECTING,
CONNECTED,
DISCONNECTING,
DISCONNECTED
}