Add generation id to package and artifact name
This commit is contained in:
parent
953af111b4
commit
131dd44d38
@ -15,7 +15,7 @@ buildscript {
|
||||
}
|
||||
|
||||
group = "ru.landgrafhomyak.utility"
|
||||
version = "1.0"
|
||||
version = "0"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
rootProject.name = "closeable-state"
|
||||
rootProject.name = "closeable-state-1"
|
||||
|
||||
includeBuild("./highlevel-try-finally")
|
||||
@ -1,4 +1,4 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.jvm.JvmField
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
public interface CloseableState : AutoCloseable {
|
||||
public fun throwClosed(): Nothing
|
||||
@ -1,8 +1,8 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import ru.landgrafhomyak.utility.closeable_state.internal.compareAndExchange
|
||||
import ru.landgrafhomyak.utility.closeable_state.internal.get
|
||||
import ru.landgrafhomyak.utility.closeable_state.internal.newAtomicRef
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.internal.compareAndExchange
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.internal.get
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.internal.newAtomicRef
|
||||
|
||||
public open class ErrorOnConcurrentAccessState : CloseableState.ExternallySynchronized {
|
||||
private enum class State {
|
||||
@ -1,4 +1,4 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
@RequiresOptIn(
|
||||
message = "Manual state control is unsafe, are you sure to do this",
|
||||
@ -1,6 +1,6 @@
|
||||
@file:OptIn(ExperimentalContracts::class)
|
||||
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.contracts.ExperimentalContracts
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
@file:OptIn(ExperimentalContracts::class)
|
||||
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.contracts.ExperimentalContracts
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
@file:OptIn(ExperimentalContracts::class)
|
||||
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.contracts.ExperimentalContracts
|
||||
import ru.landgrafhomyak.utility.closeable_state.internal.AtomicLong
|
||||
import ru.landgrafhomyak.utility.closeable_state.internal.Misc
|
||||
import ru.landgrafhomyak.utility.closeable_state.internal.compareAndExchange
|
||||
import ru.landgrafhomyak.utility.closeable_state.internal.get
|
||||
import ru.landgrafhomyak.utility.closeable_state.internal.newAtomicLong
|
||||
import ru.landgrafhomyak.utility.closeable_state.internal.update
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.internal.AtomicLong
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.internal.Misc
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.internal.compareAndExchange
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.internal.get
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.internal.newAtomicLong
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.internal.update
|
||||
|
||||
public open class UsagesCounter : CloseableState.AllowsConcurrency {
|
||||
private val _value: AtomicLong = newAtomicLong(0L)
|
||||
@ -1,6 +1,6 @@
|
||||
@file:JvmName("ChildrenScopesKt")
|
||||
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.contracts.InvocationKind
|
||||
import kotlin.contracts.contract
|
||||
@ -1,4 +1,4 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state.internal
|
||||
package ru.landgrafhomyak.utility.closeable_state_1.internal
|
||||
|
||||
import kotlin.jvm.JvmStatic
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
@file:JvmName("AtomicsKt")
|
||||
|
||||
package ru.landgrafhomyak.utility.closeable_state.internal
|
||||
package ru.landgrafhomyak.utility.closeable_state_1.internal
|
||||
|
||||
import kotlin.jvm.JvmName
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
@file:JvmName("UsageScopesKt")
|
||||
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.contracts.InvocationKind
|
||||
import kotlin.contracts.contract
|
||||
@ -1,4 +1,4 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.test.Test
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
internal class TestThrowable: Throwable("If this throwable isn't caught then test is bad written") {
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.test.Test
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.test.Test
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.test.Test
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state
|
||||
package ru.landgrafhomyak.utility.closeable_state_1
|
||||
|
||||
import kotlin.test.Test
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
@file:Suppress("USELESS_CAST", "NOTHING_TO_INLINE")
|
||||
@file:JvmName("AtomicsKt")
|
||||
|
||||
package ru.landgrafhomyak.utility.closeable_state.internal
|
||||
package ru.landgrafhomyak.utility.closeable_state_1.internal
|
||||
|
||||
import java.util.concurrent.atomic.AtomicLong as jAtomicLong
|
||||
import java.util.concurrent.atomic.AtomicReference as jAtomicReference
|
||||
@ -1,10 +1,10 @@
|
||||
package ru.landgrafhomyak.utility.closeable_state.tests
|
||||
package ru.landgrafhomyak.utility.closeable_state_1.tests
|
||||
|
||||
import org.testng.annotations.Test
|
||||
import ru.landgrafhomyak.utility.highlevel_try_finally.safeAutoClose1
|
||||
import ru.landgrafhomyak.utility.closeable_state.ManualStateManipulation
|
||||
import ru.landgrafhomyak.utility.closeable_state.UsagesCounter
|
||||
import ru.landgrafhomyak.utility.closeable_state.withUse
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.ManualStateManipulation
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.UsagesCounter
|
||||
import ru.landgrafhomyak.utility.closeable_state_1.withUse
|
||||
|
||||
@Test(enabled = false)
|
||||
class KotlinStdlibDependencyTest {
|
||||
@ -1,7 +1,7 @@
|
||||
@file:Suppress("USELESS_CAST", "NOTHING_TO_INLINE")
|
||||
@file:JvmName("AtomicsKt")
|
||||
|
||||
package ru.landgrafhomyak.utility.closeable_state.internal
|
||||
package ru.landgrafhomyak.utility.closeable_state_1.internal
|
||||
|
||||
import kotlin.jvm.JvmName
|
||||
import kotlinx.atomicfu.atomic
|
||||
Loading…
Reference in New Issue
Block a user