Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ManApart committed Dec 17, 2024
1 parent 0c79f0e commit 6104cdd
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@ bin/
.idea/
hidden-gradle.properties
kotlin-js-store/
mods/
mods/
.kotlin/
14 changes: 8 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@file:Suppress("UNUSED_VARIABLE")

plugins {
kotlin("multiplatform") version "1.8.10"
kotlin("plugin.serialization") version "1.8.10"
kotlin("multiplatform") version "2.0.0"
kotlin("plugin.serialization") version "2.0.0"
`maven-publish`
}

Expand All @@ -21,12 +21,14 @@ kotlin {
useJUnitPlatform()
}

sourceSets {

this@kotlin.sourceSets {
val jvmTestIntegration by creating {
dependsOn(sourceSets["jvmMain"])

dependsOn(this@sourceSets["jvmMain"])
}
val jvmTools by creating {
dependsOn(sourceSets["jvmMain"])
dependsOn(this@sourceSets["jvmMain"])
}
}
compilations {
Expand Down Expand Up @@ -115,7 +117,7 @@ kotlin {
}
}

tasks.getByName<Test>("test") {
tasks.getByName<Test>("jvmTest") {
testLogging {
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
Expand Down
3 changes: 2 additions & 1 deletion src/jsMain/kotlin/core/utility/LazyMutable.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package core.utility

import kotlinx.atomicfu.locks.synchronized
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty

Expand Down Expand Up @@ -27,4 +28,4 @@ actual class LazyMutable<T> actual constructor(val initializer: () -> T) : ReadW
prop = value
}
}
}
}
3 changes: 1 addition & 2 deletions src/jvmMain/kotlin/core/utility/LazyMutable.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package core.utility

import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty

/*
Expand All @@ -27,4 +26,4 @@ actual class LazyMutable<T> actual constructor(val initializer: () -> T) : ReadW
prop = value
}
}
}
}
4 changes: 3 additions & 1 deletion src/jvmMain/kotlin/core/utility/NameSearchableList.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package core.utility

import java.util.*

actual class NameSearchableList<N : Named> actual constructor() : MutableList<N>, ArrayList<N>() {
private val proxies = HashMap<String, N>()

Expand Down Expand Up @@ -229,4 +231,4 @@ actual class NameSearchableList<N : Named> actual constructor() : MutableList<N>
return super.remove(element)
}

}
}

0 comments on commit 6104cdd

Please sign in to comment.