mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-01-25 14:48:04 +00:00
start update dependencies
This commit is contained in:
@@ -44,6 +44,11 @@ allprojects {
|
|||||||
maven { url "https://nexus.inmo.dev/repository/maven-releases/" }
|
maven { url "https://nexus.inmo.dev/repository/maven-releases/" }
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
it.tasks.withType(AbstractTestTask).configureEach {
|
||||||
|
it.failOnNoDiscoveredTests = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "./extensions.gradle"
|
apply from: "./extensions.gradle"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ kotlin {
|
|||||||
|
|
||||||
project.parent.subprojects.forEach {
|
project.parent.subprojects.forEach {
|
||||||
if (
|
if (
|
||||||
it != project
|
it.name != project.name
|
||||||
&& it.hasProperty("kotlin")
|
&& it.hasProperty("kotlin")
|
||||||
&& it.kotlin.sourceSets.any { it.name.contains("commonMain") }
|
&& it.kotlin.sourceSets.any { it.name.contains("commonMain") }
|
||||||
&& it.kotlin.sourceSets.any { it.name.contains("jsMain") }
|
&& it.kotlin.sourceSets.any { it.name.contains("jsMain") }
|
||||||
@@ -44,7 +44,7 @@ kotlin {
|
|||||||
|
|
||||||
project.parent.subprojects.forEach {
|
project.parent.subprojects.forEach {
|
||||||
if (
|
if (
|
||||||
it != project
|
it.name != project.name
|
||||||
&& it.hasProperty("kotlin")
|
&& it.hasProperty("kotlin")
|
||||||
&& it.kotlin.sourceSets.any { it.name.contains("commonMain") }
|
&& it.kotlin.sourceSets.any { it.name.contains("commonMain") }
|
||||||
&& it.kotlin.sourceSets.any { it.name.contains("jsMain") }
|
&& it.kotlin.sourceSets.any { it.name.contains("jsMain") }
|
||||||
@@ -60,7 +60,7 @@ kotlin {
|
|||||||
|
|
||||||
project.parent.subprojects.forEach {
|
project.parent.subprojects.forEach {
|
||||||
if (
|
if (
|
||||||
it != project
|
it.name != project.name
|
||||||
&& it.hasProperty("kotlin")
|
&& it.hasProperty("kotlin")
|
||||||
&& it.kotlin.sourceSets.any { it.name.contains("commonMain") }
|
&& it.kotlin.sourceSets.any { it.name.contains("commonMain") }
|
||||||
&& it.kotlin.sourceSets.any { it.name.contains("jvmMain") }
|
&& it.kotlin.sourceSets.any { it.name.contains("jvmMain") }
|
||||||
@@ -76,7 +76,7 @@ kotlin {
|
|||||||
|
|
||||||
project.parent.subprojects.forEach {
|
project.parent.subprojects.forEach {
|
||||||
if (
|
if (
|
||||||
it != project
|
it.name != project.name
|
||||||
&& it.hasProperty("kotlin")
|
&& it.hasProperty("kotlin")
|
||||||
&& it.kotlin.sourceSets.any { it.name.contains("commonMain") }
|
&& it.kotlin.sourceSets.any { it.name.contains("commonMain") }
|
||||||
&& it.kotlin.sourceSets.any { it.name.contains("androidMain") }
|
&& it.kotlin.sourceSets.any { it.name.contains("androidMain") }
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
|
interface InjectedExecOps {
|
||||||
|
@Inject //@javax.inject.Inject
|
||||||
|
ExecOperations getExecOps()
|
||||||
|
}
|
||||||
private String getCurrentVersionChangelog() {
|
private String getCurrentVersionChangelog() {
|
||||||
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
||||||
exec {
|
|
||||||
|
def injected = project.objects.newInstance(InjectedExecOps)
|
||||||
|
injected.execOps.exec {
|
||||||
commandLine 'chmod', "+x", './changelog_parser.sh'
|
commandLine 'chmod', "+x", './changelog_parser.sh'
|
||||||
}
|
}
|
||||||
exec {
|
injected.execOps.exec {
|
||||||
standardOutput = changelogDataOS
|
standardOutput = changelogDataOS
|
||||||
commandLine './changelog_parser.sh', "${project.version}", 'CHANGELOG.md'
|
commandLine './changelog_parser.sh', "${project.version}", 'CHANGELOG.md'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[versions]
|
[versions]
|
||||||
|
|
||||||
kt = "2.2.21"
|
kt = "2.3.0"
|
||||||
kt-serialization = "1.9.0"
|
kt-serialization = "1.10.0"
|
||||||
kt-coroutines = "1.10.2"
|
kt-coroutines = "1.10.2"
|
||||||
|
|
||||||
kotlinx-browser = "0.5.0"
|
kotlinx-browser = "0.5.0"
|
||||||
@@ -11,7 +11,7 @@ kslog = "1.5.2"
|
|||||||
jb-compose = "1.10.0"
|
jb-compose = "1.10.0"
|
||||||
jb-compose-material3 = "1.10.0-alpha05"
|
jb-compose-material3 = "1.10.0-alpha05"
|
||||||
jb-compose-icons = "1.7.8"
|
jb-compose-icons = "1.7.8"
|
||||||
jb-exposed = "0.61.0"
|
jb-exposed = "1.0.0"
|
||||||
jb-dokka = "2.1.0"
|
jb-dokka = "2.1.0"
|
||||||
|
|
||||||
# 3.51.0.0 contains bug, checking with ./gradlew :micro_utils.repos.exposed:jvmTest
|
# 3.51.0.0 contains bug, checking with ./gradlew :micro_utils.repos.exposed:jvmTest
|
||||||
@@ -20,7 +20,7 @@ sqlite = "3.50.1.0"
|
|||||||
korlibs = "5.4.0"
|
korlibs = "5.4.0"
|
||||||
uuid = "0.8.4"
|
uuid = "0.8.4"
|
||||||
|
|
||||||
ktor = "3.3.3"
|
ktor = "3.4.0"
|
||||||
|
|
||||||
gh-release = "2.5.2"
|
gh-release = "2.5.2"
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ ksp = "2.3.4"
|
|||||||
kotlin-poet = "2.2.0"
|
kotlin-poet = "2.2.0"
|
||||||
|
|
||||||
versions = "0.53.0"
|
versions = "0.53.0"
|
||||||
nmcp = "1.2.0"
|
nmcp = "1.2.1"
|
||||||
|
|
||||||
android-gradle = "8.12.+"
|
android-gradle = "8.12.+"
|
||||||
dexcount = "4.0.0"
|
dexcount = "4.0.0"
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -23,7 +23,9 @@ dependencies {
|
|||||||
implementation libs.ktor.client.java
|
implementation libs.ktor.client.java
|
||||||
}
|
}
|
||||||
|
|
||||||
mainClassName="MainKt"
|
application {
|
||||||
|
mainClass = "MainKt"
|
||||||
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ kotlin {
|
|||||||
}
|
}
|
||||||
jvmMain {
|
jvmMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
api libs.jb.exposed
|
api libs.jb.exposed.jdbc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package dev.inmo.micro_utils.pagination
|
package dev.inmo.micro_utils.pagination
|
||||||
|
|
||||||
import org.jetbrains.exposed.sql.*
|
import org.jetbrains.exposed.v1.core.Expression
|
||||||
|
import org.jetbrains.exposed.v1.core.SortOrder
|
||||||
|
import org.jetbrains.exposed.v1.jdbc.Query
|
||||||
|
|
||||||
fun Query.paginate(with: Pagination, orderBy: Pair<Expression<*>, SortOrder>? = null) =
|
fun Query.paginate(with: Pagination, orderBy: Pair<Expression<*>, SortOrder>? = null) =
|
||||||
limit(with.size)
|
limit(with.size)
|
||||||
|
|||||||
Reference in New Issue
Block a user