Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudS3c committed Jun 18, 2023
1 parent c73aa39 commit 14eb3f2
Show file tree
Hide file tree
Showing 14 changed files with 133 additions and 48 deletions.
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ allprojects {
version = "0.0.4"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(18))
vendor.set(JvmVendorSpec.ORACLE)
implementation.set(JvmImplementation.VENDOR_SPECIFIC)
}
}
kotlin{
jvmToolchain{
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(18))
vendor.set(JvmVendorSpec.ORACLE)
implementation.set(JvmImplementation.VENDOR_SPECIFIC)
}
Expand Down Expand Up @@ -64,23 +64,20 @@ allprojects {
}

tasks.compileJava {
sourceCompatibility = JavaVersion.VERSION_17.toString()
targetCompatibility = JavaVersion.VERSION_17.toString()
sourceCompatibility = JavaVersion.VERSION_18.toString()
targetCompatibility = JavaVersion.VERSION_18.toString()
}

tasks.withType<KotlinCompile>().all {
kotlinOptions {
languageVersion = "1.9"
jvmTarget = "17"
jvmTarget = "18"
freeCompilerArgs = listOf(
"-Xallow-any-scripts-in-source-roots" ,
"-Xjvm-default=all",
"-Xbackend-threads=4",
"-Xignore-const-optimization-errors",
)
}
}

}

tasks.register<Zip>("packageServer") {
Expand Down
3 changes: 1 addition & 2 deletions game-api/src/main/kotlin/org/alter/api/cfg/Items.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
package org.alter.api.cfg

object Items {

const val DWARF_REMAINS = 0
fun DWARF_REMAINS(): Int { return 0 }
const val TOOLKIT = 1
const val CANNONBALL = 2
const val NULODIONS_NOTES = 3
Expand Down
2 changes: 1 addition & 1 deletion game-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
description = "Alter Servers Plugins"

dependencies {
implementation(projects.gameApi)
implementation(projects.gameServer)
implementation(projects.util)
implementation(projects.net)
implementation(kotlin("script-runtime"))
implementation(project(":game-api"))
}

tasks.named<Jar>("jar") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
package org.alter.plugins.content.areas.alkharid.shops

import org.alter.plugins.content.mechanics.shops.CoinCurrency

create_shop("Dommik's Crafting Store.", CoinCurrency(), purchasePolicy = PurchasePolicy.BUY_STOCK) {
Expand All @@ -13,5 +11,4 @@ create_shop("Dommik's Crafting Store.", CoinCurrency(), purchasePolicy = Purchas
items[7] = ShopItem(Items.TIARA_MOULD, 10)
items[8] = ShopItem(Items.BOLT_MOULD, 10)
items[9] = ShopItem(Items.BRACELET_MOULD, 5)

}
61 changes: 30 additions & 31 deletions game-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,39 +34,38 @@ sourceSets {

tasks.register("install") {
description = "Install Alter"
doFirst {
val cacheList = listOf(
"/cache/main_file_cache.dat2",
"/cache/main_file_cache.idx0",
"/cache/main_file_cache.idx1",
"/cache/main_file_cache.idx2",
"/cache/main_file_cache.idx3",
"/cache/main_file_cache.idx4",
"/cache/main_file_cache.idx5",
"/cache/main_file_cache.idx7",
"/cache/main_file_cache.idx8",
"/cache/main_file_cache.idx9",
"/cache/main_file_cache.idx10",
"/cache/main_file_cache.idx11",
"/cache/main_file_cache.idx12",
"/cache/main_file_cache.idx13",
"/cache/main_file_cache.idx14",
"/cache/main_file_cache.idx15",
"/cache/main_file_cache.idx16",
"/cache/main_file_cache.idx17",
"/cache/main_file_cache.idx18",
"/cache/main_file_cache.idx19",
"/cache/main_file_cache.idx20",
"/cache/main_file_cache.idx255",
"xteas.json"
)
cacheList.forEach {
val file = File("${rootProject.projectDir}/data/$it")
if (!file.exists()) {
throw GradleException("\u001B[45m \u001B[30m Missing file! : $file. Go back to: https://github.com/AlterRSPS/Alter and read how to setup plz >____> It's so easy to set this up and you failed at it wtfff?!?!. \u001B[0m")
}
val cacheList = listOf(
"/cache/main_file_cache.dat2",
"/cache/main_file_cache.idx0",
"/cache/main_file_cache.idx1",
"/cache/main_file_cache.idx2",
"/cache/main_file_cache.idx3",
"/cache/main_file_cache.idx4",
"/cache/main_file_cache.idx5",
"/cache/main_file_cache.idx7",
"/cache/main_file_cache.idx8",
"/cache/main_file_cache.idx9",
"/cache/main_file_cache.idx10",
"/cache/main_file_cache.idx11",
"/cache/main_file_cache.idx12",
"/cache/main_file_cache.idx13",
"/cache/main_file_cache.idx14",
"/cache/main_file_cache.idx15",
"/cache/main_file_cache.idx16",
"/cache/main_file_cache.idx17",
"/cache/main_file_cache.idx18",
"/cache/main_file_cache.idx19",
"/cache/main_file_cache.idx20",
"/cache/main_file_cache.idx255",
"xteas.json"
)
cacheList.forEach {
val file = File("${rootProject.projectDir}/data/$it")
if (!file.exists()) {
throw GradleException("\u001B[45m \u001B[30m Missing file! : $file. Go back to: https://github.com/AlterRSPS/Alter and read how to setup plz >____> It's so easy to set this up and you failed at it wtfff?!?!. \u001B[0m")
}
}

doLast {
copy {
into("${rootProject.projectDir}/")
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ nettyAll = "_"
kotlinxSerializationCore = "_"
junit = "4.+"
kotlinTestJunit = "_"
kotlin = "1.9.0-Beta"
kotlin = "1.8.10"

[libraries]
fastutil = { group = "it.unimi.dsi", name = "fastutil", version.ref = "fastutil" }
Expand All @@ -37,7 +37,7 @@ jbcrypt = { group = "org.mindrot", name = "jbcrypt", version.ref = "jbcrypt" }
gson = { group = "com.google.code.gson", name = "gson", version.ref = "gson" }
cache = { group = "net.runelite", name = "cache", version.ref = "cache" }
netty-all = { group = "io.netty", name = "netty-all", version = "5.0.0.Alpha1" }
kotlin-scripting = {group = "org.jetbrains.kotlin", name = "kotlin-scripting-common", version.ref = "kotlin"}
kotlin-scripting = {group = "org.jetbrains.kotlin", name = "kotlin-scripting-common", version = "_"}
kotlin-script-runtime = { group = "org.jetbrains.kotlin", name = "kotlin-script-runtime", version.ref = "kotlin"}
kotlinx-coroutines = {group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version = "_"}
kotlinx-serialization-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-core", version.ref = "kotlinxSerializationCore" }
Expand Down
2 changes: 1 addition & 1 deletion versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version.io.netty..netty-all=4.1.93.Final
## # available=5.0.0.Alpha1
## # available=5.0.0.Alpha2

version.kotlin=1.8.20
version.kotlin=1.8.10
## # available=1.9.0-Beta

version.kotlinx.coroutines=1.7.1
Expand Down

0 comments on commit 14eb3f2

Please sign in to comment.