mirror of
https://github.com/LamGC/ScalaBot.git
synced 2025-04-30 14:47:31 +00:00
Compare commits
No commits in common. "c681ebc4c1177b1b04af22ba92a7d4760ba8b707" and "47d34b0fd879380a258647f883a0863c25f154bd" have entirely different histories.
c681ebc4c1
...
47d34b0fd8
@ -13,5 +13,5 @@ allprojects {
|
||||
|
||||
}
|
||||
group = "net.lamgc"
|
||||
version = "0.8.0"
|
||||
version = "0.7.0"
|
||||
}
|
||||
|
@ -51,6 +51,17 @@ 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,12 +13,6 @@ 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,9 +4,6 @@ import org.telegram.telegrambots.abilitybots.api.bot.BaseAbilityBot;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 一些开发扩展中可以用到的工具类.
|
||||
*/
|
||||
public final class AbilityBots {
|
||||
|
||||
private AbilityBots() {
|
||||
|
@ -60,6 +60,17 @@ 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user