2026-04-20-1
project_version=4.4.14.19 * 修复clear指令构建命令时抛出转型异常导致无法正确发送指令 * 修复ChangePolicy增加和减小index写反的问题
This commit is contained in:
parent
4bb276a755
commit
05c5014829
1
.github/workflows/build-and-release.yml
vendored
1
.github/workflows/build-and-release.yml
vendored
|
|
@ -41,6 +41,7 @@ jobs:
|
|||
release:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
if: github.ref_name == 'rebuild-release' # 仅在 release 分支执行 release job
|
||||
steps:
|
||||
# 下载构建产物
|
||||
|
|
|
|||
|
|
@ -21,6 +21,13 @@ base {
|
|||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
javadoc {
|
||||
options.encoding = 'UTF-8'
|
||||
options.charSet = 'UTF-8'
|
||||
// 添加以下选项以减少警告
|
||||
options.addBooleanOption('Xdoclint:none', true)
|
||||
options.addStringOption('Xmaxwarns', '10')
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Common 依赖 CommonApi
|
||||
|
|
@ -28,13 +35,13 @@ dependencies {
|
|||
}
|
||||
|
||||
// Sources JAR
|
||||
task sourcesJar(type: Jar) {
|
||||
tasks.register('sourcesJar', Jar) {
|
||||
from sourceSets.main.allSource
|
||||
archiveClassifier = 'sources'
|
||||
}
|
||||
|
||||
// Javadoc JAR
|
||||
task javadocJar(type: Jar) {
|
||||
tasks.register('javadocJar', Jar) {
|
||||
dependsOn javadoc
|
||||
from javadoc.destinationDir
|
||||
archiveClassifier = 'javadoc'
|
||||
|
|
@ -69,9 +76,22 @@ publishing {
|
|||
artifact shadowJar
|
||||
artifact sourcesJar
|
||||
artifact javadocJar
|
||||
groupId = project.group.toString()
|
||||
artifactId = base.archivesName.get()
|
||||
version = project.version.toString()
|
||||
pom {
|
||||
name = "${project_name}"
|
||||
description = "${project_name}"
|
||||
url = "https://github.com/3944Realms/DG_LAB_DEVELOP"
|
||||
|
||||
licenses {
|
||||
license {
|
||||
name = 'Apache License 2.0'
|
||||
url = 'https://www.apache.org/licenses/LICENSE-2.0.html'
|
||||
}
|
||||
}
|
||||
issueManagement {
|
||||
system = 'GitHub Issues'
|
||||
url = 'https://github.com/3944Realms/DG_LAB_DEVELOP/issues'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ public class ServerDLPBHandlerContextWrapper extends AbstractDgLabPowerBoxHandle
|
|||
case CLEAR -> {
|
||||
if (Connections().containsKey(targetId)) {
|
||||
ChannelHandlerContext client = Connections().get(targetId);
|
||||
String Channel = ((String[])argsArray)[0];
|
||||
Integer Channel = ((Integer[])argsArray)[0];
|
||||
String messageCommand = "clear-" + Channel;
|
||||
PowerBoxMessage strengthUpdate = PowerBoxMessage.createPowerBoxMessage("msg", clientId, targetId, messageCommand, role, new WebSocketApplicationRole("Ap" + targetId));
|
||||
TryCatch(n -> ((ServerOperation)operation).ClearMessageHandler(strengthUpdate));
|
||||
|
|
|
|||
|
|
@ -34,6 +34,14 @@ sourceSets {
|
|||
|
||||
dependencies {
|
||||
}
|
||||
javadoc {
|
||||
options.encoding = 'UTF-8'
|
||||
options.charSet = 'UTF-8'
|
||||
// 添加以下选项以减少警告
|
||||
options.addBooleanOption('Xdoclint:none', true)
|
||||
options.addStringOption('Xmaxwarns', '10')
|
||||
}
|
||||
|
||||
|
||||
tasks.register('sourcesJar', Jar) {
|
||||
archiveClassifier.set('sources')
|
||||
|
|
@ -71,6 +79,21 @@ publishing {
|
|||
from components.java
|
||||
artifact(tasks.named("sourcesJar"))
|
||||
artifact(tasks.named("javadocJar"))
|
||||
pom {
|
||||
name = "${project_name}"
|
||||
description = "The API for ${project_name}"
|
||||
url = "https://github.com/3944Realms/DG_LAB_DEVELOP"
|
||||
licenses {
|
||||
license {
|
||||
name = 'Apache License 2.0'
|
||||
url = 'https://www.apache.org/licenses/LICENSE-2.0.html'
|
||||
}
|
||||
}
|
||||
issueManagement {
|
||||
system = 'GitHub Issues'
|
||||
url = 'https://github.com/3944Realms/DG_LAB_DEVELOP/issues'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -20,14 +20,14 @@ package com.r3944realms.dg_lab.api.message.argType;
|
|||
* 修改策略
|
||||
*/
|
||||
public enum ChangePolicy {
|
||||
/**
|
||||
* 增加
|
||||
*/
|
||||
INCREASE(0),
|
||||
/**
|
||||
* 减少
|
||||
*/
|
||||
DECREASE(1),
|
||||
DECREASE(0),
|
||||
/**
|
||||
* 增加
|
||||
*/
|
||||
INCREASE(1),
|
||||
/**
|
||||
* 转变
|
||||
*/
|
||||
|
|
|
|||
26
build.gradle
26
build.gradle
|
|
@ -4,8 +4,8 @@ plugins {
|
|||
id("maven-publish")
|
||||
}
|
||||
|
||||
group = "top.r3944realms.superleadrope"
|
||||
version = "1.0-SNAPSHOT"
|
||||
group = "${project_version}"
|
||||
version = "${project_version}"
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
|
|
@ -16,6 +16,7 @@ allprojects {
|
|||
subprojects {
|
||||
apply {
|
||||
plugin('java')
|
||||
plugin("maven-publish")
|
||||
}
|
||||
|
||||
java {
|
||||
|
|
@ -42,4 +43,25 @@ subprojects {
|
|||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks.withType(PublishToMavenRepository) {
|
||||
dependsOn assemble
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = "local"
|
||||
url = layout.buildDirectory.dir("repo")
|
||||
}
|
||||
maven {
|
||||
name = 'LTDNexus'
|
||||
url = 'https://nexus.bot.leisuretimedock.top/repository/maven-releases/'
|
||||
credentials {
|
||||
username = System.getenv('LTDNexusUsername') ?: ''
|
||||
password = System.getenv('LTDNexusPassword') ?: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
# Gradle settings
|
||||
org.gradle.jvmargs=-Xmx3G
|
||||
org.gradle.daemon=true
|
||||
org.gradle.daemon=false
|
||||
org.gradle.configureondemand=true
|
||||
org.gradle.caching=true
|
||||
org.gradle.configuration-cache=true
|
||||
org.gradle.caching=false
|
||||
org.gradle.configuration-cache=false
|
||||
org.gradle.configuration-cache.problems=warn
|
||||
# ROOT
|
||||
project_name=DgLab
|
||||
project_version=4.4.14.18
|
||||
project_version=4.4.14.19
|
||||
project_group=top.r3944realms.dg_lab
|
||||
|
||||
# API
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
统一用4位版本,对于测试性更新统一在其后加-Beta。
|
||||
修复问题更新为加0.0.0.1,添加/移除新特性加0.0.1.0,小部分重构更新加0.1.0.0,大量重构加1.0.0.0
|
||||
|
||||
2026-04-20-1
|
||||
project_version=4.4.14.19
|
||||
* 修复clear指令构建命令时抛出转型异常导致无法正确发送指令
|
||||
* 修复ChangePolicy增加和减小index写反的问题
|
||||
|
||||
2025-09-29-1
|
||||
project_version=4.4.14.18
|
||||
* 提取Server/Client接口
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user