mirror of
https://github.com/LamGC/ScalaBot.git
synced 2025-07-01 12:57:24 +00:00
Compare commits
6 Commits
v0.8.0
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
c1af7c277e | |||
d160fa7ee5 | |||
b053388f82 | |||
818cb21df7
|
|||
c681ebc4c1
|
|||
44b7b5122f
|
@ -13,5 +13,5 @@ allprojects {
|
||||
|
||||
}
|
||||
group = "net.lamgc"
|
||||
version = "0.8.0"
|
||||
version = "0.8.0-1"
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ dependencies {
|
||||
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
|
||||
implementation("org.jetbrains.kotlin:kotlin-reflect:2.1.0")
|
||||
implementation("com.google.code.gson:gson:2.10.1")
|
||||
implementation("com.google.code.gson:gson:2.11.0")
|
||||
|
||||
implementation("org.jdom:jdom2:2.0.6.1")
|
||||
|
||||
|
@ -5,7 +5,7 @@ plugins {
|
||||
dependencies {
|
||||
compileOnly(project(":scalabot-extension"))
|
||||
|
||||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.1")
|
||||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ dependencies {
|
||||
api("org.telegram:telegrambots-abilities:8.0.0")
|
||||
api(project(":scalabot-meta"))
|
||||
|
||||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.1")
|
||||
testImplementation("org.mockito:mockito-core:5.11.0")
|
||||
testImplementation("org.telegram:telegrambots-client:8.0.0")
|
||||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
|
||||
@ -51,17 +51,6 @@ publishing {
|
||||
password = project.properties["repo.credentials.self-git.password"].toString()
|
||||
}
|
||||
}
|
||||
val kukuRepoUrl = if (project.version.toString().endsWith("-SNAPSHOT", ignoreCase = true)) {
|
||||
"https://nexus.kuku.me/repository/maven-snapshots/"
|
||||
} else {
|
||||
"https://nexus.kuku.me/repository/maven-releases/"
|
||||
}
|
||||
maven(kukuRepoUrl) {
|
||||
credentials {
|
||||
username = project.properties["repo.credentials.kuku-repo.username"].toString()
|
||||
password = project.properties["repo.credentials.kuku-repo.password"].toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publications {
|
||||
|
@ -13,6 +13,12 @@ public class BotExtensionCreateOptions {
|
||||
private final long botAccountId;
|
||||
private final ProxyConfig proxy;
|
||||
|
||||
/**
|
||||
* 构造新的 BotExtensionCreateOptions.
|
||||
*
|
||||
* @param botAccountId 创建扩展的 Bot 账户 Id.
|
||||
* @param proxy Bot 所使用的代理配置.
|
||||
*/
|
||||
public BotExtensionCreateOptions(long botAccountId, ProxyConfig proxy) {
|
||||
this.botAccountId = botAccountId;
|
||||
this.proxy = proxy;
|
||||
|
@ -4,6 +4,9 @@ import org.telegram.telegrambots.abilitybots.api.bot.BaseAbilityBot;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 一些开发扩展中可以用到的工具类.
|
||||
*/
|
||||
public final class AbilityBots {
|
||||
|
||||
private AbilityBots() {
|
||||
|
@ -16,14 +16,14 @@ dependencies {
|
||||
|
||||
implementation("org.telegram:telegrambots-meta:8.0.0")
|
||||
|
||||
api("com.google.code.gson:gson:2.10.1")
|
||||
api("com.google.code.gson:gson:2.11.0")
|
||||
|
||||
testImplementation(kotlin("test"))
|
||||
testImplementation("io.mockk:mockk:1.13.13")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
|
||||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.1")
|
||||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
|
||||
|
||||
dokkaHtmlPlugin("org.jetbrains.dokka:javadoc-plugin:1.9.10")
|
||||
dokkaHtmlPlugin("org.jetbrains.dokka:javadoc-plugin:2.0.0")
|
||||
}
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
||||
@ -60,17 +60,6 @@ publishing {
|
||||
password = project.properties["repo.credentials.self-git.password"].toString()
|
||||
}
|
||||
}
|
||||
val kukuRepoUrl = if (project.version.toString().endsWith("-SNAPSHOT", ignoreCase = true)) {
|
||||
"https://nexus.kuku.me/repository/maven-snapshots/"
|
||||
} else {
|
||||
"https://nexus.kuku.me/repository/maven-releases/"
|
||||
}
|
||||
maven(kukuRepoUrl) {
|
||||
credentials {
|
||||
username = project.properties["repo.credentials.kuku-repo.username"].toString()
|
||||
password = project.properties["repo.credentials.kuku-repo.password"].toString()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publications {
|
||||
|
Reference in New Issue
Block a user