2026-04-20-1
Some checks failed
Build and Release / build (push) Failing after 3m40s
Build and Release / release (push) Has been skipped

project_version=4.4.14.19
* 修复clear指令构建命令时抛出转型异常导致无法正确发送指令
* 修复ChangePolicy增加和减小index写反的问题
This commit is contained in:
叁玖领域 2026-04-20 23:26:41 +08:00
parent 4bb276a755
commit 05c5014829
8 changed files with 88 additions and 17 deletions

View File

@ -41,6 +41,7 @@ jobs:
release:
needs: build
runs-on: ubuntu-latest
if: github.ref_name == 'rebuild-release' # 仅在 release 分支执行 release job
steps:
# 下载构建产物

View File

@ -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'
}
}
}
}
}

View File

@ -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));

View File

@ -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'
}
}
}
}
}

View File

@ -20,14 +20,14 @@ package com.r3944realms.dg_lab.api.message.argType;
* 修改策略
*/
public enum ChangePolicy {
/**
* 增加
*/
INCREASE(0),
/**
* 减少
*/
DECREASE(1),
DECREASE(0),
/**
* 增加
*/
INCREASE(1),
/**
* 转变
*/

View File

@ -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') ?: ''
}
}
}
}
}

View File

@ -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

View File

@ -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接口