From 0ae31a3d745c6cfff0998aaee37ce997069be76e Mon Sep 17 00:00:00 2001 From: LamGC Date: Wed, 3 Aug 2022 01:45:37 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E5=8D=87=E7=BA=A7=20OCI=20Sdk,=20?= =?UTF-8?q?=E5=B9=B6=E6=9A=82=E6=97=B6=E6=9B=B4=E6=94=B9=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=88=B0=20kuku=20repo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4c38e71..85b12a6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,28 +12,26 @@ repositories { mavenLocal() mavenCentral() - maven("https://raw.githubusercontent.com/LamGC/maven-repository/releases/") { - mavenContent { - releasesOnly() - } - } + maven("https://nexus.kuku.me/repository/maven-releases/") } dependencies { - implementation("io.github.microutils:kotlin-logging:2.1.21") - compileOnly("net.lamgc:scalabot-extension:0.2.0") + implementation("io.github.microutils:kotlin-logging:2.1.23") + compileOnly("net.lamgc:scalabot-extension:0.5.0") - val ociSdkVer = "2.24.0" + val ociSdkVer = "2.31.0" implementation("com.oracle.oci.sdk:oci-java-sdk-core:$ociSdkVer") implementation("com.oracle.oci.sdk:oci-java-sdk-identity:$ociSdkVer") implementation("com.oracle.oci.sdk:oci-java-sdk-objectstorage:$ociSdkVer") implementation("org.apache.httpcomponents.client5:httpclient5:5.1.3") - implementation("org.ktorm:ktorm-core:3.4.1") + implementation("org.ktorm:ktorm-core:3.5.0") implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.20") implementation("org.xerial:sqlite-jdbc:3.36.0.3") + implementation("com.esotericsoftware.kryo:kryo5:5.3.0") + implementation("com.google.code.gson:gson:2.9.0") testImplementation(kotlin("test")) @@ -44,12 +42,26 @@ tasks.test { } tasks.withType { - kotlinOptions.jvmTarget = "1.8" + kotlinOptions.jvmTarget = "11" } publishing { repositories { - mavenLocal() + if (project.version.toString().endsWith("-SNAPSHOT")) { + maven("https://nexus.kuku.me/repository/maven-snapshots/") { + credentials { + username = project.properties["repo.credentials.private.username"].toString() + password = project.properties["repo.credentials.private.password"].toString() + } + } + } else { + maven("https://nexus.kuku.me/repository/maven-releases/") { + credentials { + username = project.properties["repo.credentials.private.username"].toString() + password = project.properties["repo.credentials.private.password"].toString() + } + } + } } publications {