-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #283 from RSPSApp/plugin-system
Plugin System
- Loading branch information
Showing
557 changed files
with
9,054 additions
and
8,444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/target/ | ||
/build/ | ||
/game/build/ | ||
/plugin/build/ | ||
.gradle/ | ||
.classpath | ||
.settings/org.eclipse.jdt.core.prefs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,72 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
*/ | ||
|
||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { | ||
id("com.github.johnrengelman.shadow") version "7.1.2" | ||
java | ||
application | ||
alias(libs.plugins.kotlin.jvm) apply true | ||
alias(libs.plugins.kotlin.serialization) | ||
idea | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { | ||
url = uri("https://repo.maven.apache.org/maven2/") | ||
allprojects { | ||
apply(plugin = "idea") | ||
apply(plugin = "org.jetbrains.kotlin.jvm") | ||
apply(plugin = "org.jetbrains.kotlin.plugin.serialization") | ||
|
||
group = "com.elvarg" | ||
version = "0.0.1" | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation("io.netty:netty-all:4.1.72.Final") | ||
implementation("com.google.code.gson:gson:2.8.9") | ||
implementation("com.google.guava:guava:31.0.1-jre") | ||
implementation("commons-lang:commons-lang:2.6") | ||
implementation("com.password4j:password4j:1.6.0") | ||
implementation("software.amazon.awssdk:dynamodb:2.17.237") | ||
implementation("software.amazon.awssdk:dynamodb-enhanced:2.17.237") | ||
val lib = rootProject.project.libs | ||
dependencies { | ||
with(lib) { | ||
implementation(gson) | ||
implementation(guava) | ||
implementation(progress.bar) | ||
implementation(inline.loggerr) | ||
implementation(kotlin.logging) | ||
implementation(kotlinx.coroutines) | ||
implementation(kotlin.script.runtime) | ||
implementation(kotlin.scripting) | ||
implementation(kotlin.reflect) | ||
implementation("org.litote.kmongo:kmongo-coroutine-serialization:4.5.0") | ||
} | ||
} | ||
|
||
implementation(platform("com.squareup.okhttp3:okhttp-bom:4.10.0")) | ||
// define any required OkHttp artifacts without version | ||
implementation("com.squareup.okhttp3:okhttp") | ||
implementation("com.squareup.okhttp3:logging-interceptor") | ||
java { | ||
toolchain { | ||
languageVersion.set(JavaLanguageVersion.of(17)) | ||
} | ||
} | ||
kotlin{ | ||
jvmToolchain{ | ||
languageVersion.set(JavaLanguageVersion.of(17)) | ||
} | ||
} | ||
|
||
} | ||
idea { | ||
module { | ||
inheritOutputDirs = false | ||
outputDir = file("${project.buildDir}/classes/kotlin/main") | ||
testOutputDir = file("${project.buildDir}/classes/kotlin/test") | ||
} | ||
} | ||
|
||
application { | ||
mainClass.set("com.elvarg.Server") | ||
} | ||
tasks.compileJava { | ||
sourceCompatibility = JavaVersion.VERSION_17.toString() | ||
targetCompatibility = JavaVersion.VERSION_17.toString() | ||
} | ||
|
||
tasks.withType<ShadowJar> { | ||
archiveFileName.set("app.jar") | ||
tasks.withType<KotlinCompile>().all { | ||
kotlinOptions { | ||
jvmTarget = "17" | ||
freeCompilerArgs = listOf( | ||
"-Xallow-any-scripts-in-source-roots" , | ||
) | ||
} | ||
} | ||
} | ||
|
||
group = "Elvarg" | ||
version = "1.0-SNAPSHOT" | ||
description = "Elvarg-Game-Server" | ||
java.sourceCompatibility = JavaVersion.VERSION_17 | ||
java.targetCompatibility = JavaVersion.VERSION_17 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
plugins { | ||
application | ||
} | ||
|
||
application { | ||
apply(plugin = "maven-publish") | ||
mainClass.set("com.elvarg.Server") | ||
} | ||
|
||
val lib = rootProject.project.libs | ||
dependencies { | ||
with(lib) { | ||
implementation(commons) | ||
implementation(commons.lang) | ||
implementation(classgraph) | ||
implementation(slf4j.api) | ||
implementation(okhttp3) | ||
implementation(password4J) | ||
implementation(dynamodb) | ||
implementation(joda) | ||
implementation(dynamodb.enhanced) | ||
implementation(netty.all) | ||
} | ||
runtimeOnly(project(":plugin")) | ||
} | ||
|
||
tasks.named<Jar>("jar") { | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
} | ||
tasks.withType<ProcessResources> { | ||
duplicatesStrategy = DuplicatesStrategy.INCLUDE | ||
} | ||
|
||
tasks { | ||
|
||
build { | ||
this.finalizedBy(project(":plugin").tasks.getByName("build")) | ||
} | ||
|
||
buildNeeded { | ||
this.finalizedBy(project(":plugin").tasks.getByName("buildNeeded")) | ||
} | ||
|
||
compileKotlin { | ||
this.finalizedBy(project(":plugin").tasks.getByName("build")) | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.