Some cleaning

This commit is contained in:
DBotThePony 2024-02-03 15:41:15 +07:00
parent 43c7fc093a
commit 54da716823
Signed by: DBot
GPG Key ID: DCC23B5715498507
10 changed files with 39 additions and 6 deletions

View File

@ -3,11 +3,23 @@
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<compositeConfiguration>
<compositeBuild compositeDefinitionSource="SCRIPT">
<builds>
<build path="$PROJECT_DIR$/buildSrc" name="buildSrc">
<projects>
<project path="$PROJECT_DIR$/buildSrc" />
</projects>
</build>
</builds>
</compositeBuild>
</compositeConfiguration>
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/buildSrc" />
<option value="$PROJECT_DIR$/collect" />
<option value="$PROJECT_DIR$/core" />
<option value="$PROJECT_DIR$/guava" />

View File

@ -0,0 +1,8 @@
plugins {
kotlin("jvm") version "1.8.0"
}
repositories {
mavenCentral()
}

View File

@ -5,6 +5,7 @@ plugins {
val collectVersion: String by project
val projectGroup: String by project
val specifyKotlinAsDependency: String by project
group = projectGroup
version = collectVersion
@ -32,7 +33,7 @@ publishing {
pom {
dependencies {
implementation(kotlin("stdlib"))
if (specifyKotlinAsDependency.toBoolean()) implementation(kotlin("stdlib"))
}
}
}

View File

@ -6,6 +6,7 @@ plugins {
val coreVersion: String by project
val projectGroup: String by project
val specifyKotlinAsDependency: String by project
group = projectGroup
version = coreVersion
@ -33,7 +34,7 @@ publishing {
pom {
dependencies {
implementation(kotlin("stdlib"))
if (specifyKotlinAsDependency.toBoolean()) implementation(kotlin("stdlib"))
}
}
}

View File

@ -1,6 +1,8 @@
kotlin.code.style=official
specifyKotlinAsDependency=false
projectGroup=ru.dbotthepony.kommons
guavaDepVersion=33.0.0

View File

@ -6,6 +6,7 @@ plugins {
val guavaVersion: String by project
val guavaDepVersion: String by project
val projectGroup: String by project
val specifyKotlinAsDependency: String by project
group = projectGroup
version = guavaVersion
@ -35,7 +36,8 @@ publishing {
pom {
dependencies {
implementation(kotlin("stdlib"))
if (specifyKotlinAsDependency.toBoolean()) implementation(kotlin("stdlib"))
implementation("com.google.guava:guava:[28,)")
}
}
}

View File

@ -5,6 +5,7 @@ plugins {
val kommonsVersion: String by project
val projectGroup: String by project
val specifyKotlinAsDependency: String by project
group = projectGroup
version = kommonsVersion
@ -34,7 +35,7 @@ publishing {
pom {
dependencies {
implementation(kotlin("stdlib"))
if (specifyKotlinAsDependency.toBoolean()) implementation(kotlin("stdlib"))
implementation(project(":io"))
implementation(project(":math"))
}

View File

@ -5,6 +5,7 @@ plugins {
val ioVersion: String by project
val projectGroup: String by project
val specifyKotlinAsDependency: String by project
group = projectGroup
version = ioVersion
@ -33,7 +34,7 @@ publishing {
pom {
dependencies {
implementation(kotlin("stdlib"))
if (specifyKotlinAsDependency.toBoolean()) implementation(kotlin("stdlib"))
implementation(project(":core"))
}
}

View File

@ -5,6 +5,7 @@ plugins {
val mathVersion: String by project
val projectGroup: String by project
val specifyKotlinAsDependency: String by project
group = projectGroup
version = mathVersion
@ -32,7 +33,7 @@ publishing {
pom {
dependencies {
implementation(kotlin("stdlib"))
if (specifyKotlinAsDependency.toBoolean()) implementation(kotlin("stdlib"))
}
}
}

View File

@ -104,6 +104,10 @@ sealed class Decimal : Number(), Comparable<Decimal> {
// "de-virtualize" generic method
abstract override fun compareTo(other: Decimal): Int
override fun toChar(): Char {
return toInt().toChar()
}
abstract operator fun unaryMinus(): Decimal
operator fun unaryPlus() = this