All checks were successful
Publish Project / build (push) Successful in 3m17s
- 将 item-nbt-api 从 2.15.1 更新至 2.15.3 - 将 adventure-platform-bukkit 从 4.3.2 更新至 4.4.1 - 将 adventure-text-minimessage 从 4.15.0 更新至 4.25.0 - 升级项目版本号从 1.4.2 至 1.4.3 - 在各模块配置文件中新增线程池大小配置项 - 根据配置动态设置普通任务和定时任务线程池大小 - 默认线程池大小分别为 10 和 5,并支持自定义配置
74 lines
2.0 KiB
Kotlin
74 lines
2.0 KiB
Kotlin
plugins {
|
|
id("java-library")
|
|
id("maven-publish")
|
|
id("com.gradleup.shadow") version "8.3.6"
|
|
}
|
|
|
|
group = "cn.hamster3.mc.plugin"
|
|
version = "1.4.3"
|
|
description = "叁只仓鼠的 Minecraft 插件开发通用工具包"
|
|
|
|
subprojects {
|
|
apply {
|
|
plugin("java-library")
|
|
plugin("maven-publish")
|
|
plugin("com.gradleup.shadow")
|
|
}
|
|
|
|
group = rootProject.group
|
|
version = rootProject.version
|
|
description = rootProject.description
|
|
|
|
repositories {
|
|
maven("https://maven.airgame.net/maven-public")
|
|
}
|
|
|
|
dependencies {
|
|
// https://mvnrepository.com/artifact/org.jetbrains/annotations
|
|
compileOnly("org.jetbrains:annotations:24.1.0")
|
|
// https://mvnrepository.com/artifact/org.projectlombok/lombok
|
|
compileOnly("org.projectlombok:lombok:1.18.30")
|
|
annotationProcessor("org.projectlombok:lombok:1.18.30")
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
withSourcesJar()
|
|
}
|
|
|
|
tasks {
|
|
processResources {
|
|
filesMatching("update.yml") {
|
|
expand(rootProject.properties)
|
|
}
|
|
}
|
|
withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
withType<Jar> {
|
|
from(rootProject.file("LICENSE"))
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("mavenJava") {
|
|
from(components["java"])
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
url = uri("https://maven.airgame.net/public")
|
|
credentials {
|
|
username = findProperty("MAVEN_AIRGAME_USERNAME")?.toString() ?: ""
|
|
password = findProperty("MAVEN_AIRGAME_PASSWORD")?.toString() ?: ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |