mirror of
https://github.com/LamGC/oracle-manager.git
synced 2025-04-29 14:17:33 +00:00
110 lines
3.6 KiB
Plaintext
110 lines
3.6 KiB
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm") version "1.6.20"
|
|
`maven-publish`
|
|
}
|
|
|
|
group = "net.lamgc.scext"
|
|
version = "0.0.2-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
|
|
maven("https://nexus.kuku.me/repository/maven-releases/")
|
|
}
|
|
|
|
dependencies {
|
|
implementation("io.github.microutils:kotlin-logging:2.1.23")
|
|
compileOnly("net.lamgc:scalabot-extension:0.5.0")
|
|
|
|
val ociSdkVer = "2.43.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.5.0")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.20")
|
|
implementation("org.xerial:sqlite-jdbc:3.39.3.0")
|
|
|
|
implementation("com.esotericsoftware.kryo:kryo5:5.3.0")
|
|
|
|
implementation("com.google.code.gson:gson:2.9.0")
|
|
|
|
testImplementation(kotlin("test"))
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "11"
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
// 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()
|
|
// }
|
|
// }
|
|
// }
|
|
|
|
maven("https://git.lamgc.me/api/packages/LamGC/maven") {
|
|
credentials {
|
|
username = project.properties["repo.credentials.self-git.username"].toString()
|
|
password = project.properties["repo.credentials.self-git.password"].toString()
|
|
}
|
|
}
|
|
}
|
|
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
from(components["java"])
|
|
|
|
pom {
|
|
name.set("Oracle-manager")
|
|
description.set("在 Telegram 管理你的 Oracle.")
|
|
|
|
url.set("https://github.com/LamGC/oracle-manager")
|
|
licenses {
|
|
license {
|
|
name.set("The MIT License")
|
|
url.set("https://www.opensource.org/licenses/mit-license.php")
|
|
}
|
|
}
|
|
developers {
|
|
developer {
|
|
id.set("LamGC")
|
|
name.set("LamGC")
|
|
email.set("lam827@lamgc.net")
|
|
url.set("https://github.com/LamGC")
|
|
}
|
|
}
|
|
scm {
|
|
connection.set("scm:git:https://github.com/LamGC/oracle-manager.git")
|
|
developerConnection.set("scm:git:https://github.com/LamGC/oracle-manager.git")
|
|
url.set("https://github.com/LamGC/oracle-manager")
|
|
}
|
|
issueManagement {
|
|
url.set("https://github.com/LamGC/oracle-manager/issues")
|
|
system.set("Github Issues")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
} |