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: release:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref_name == 'rebuild-release' # 仅在 release 分支执行 release job if: github.ref_name == 'rebuild-release' # 仅在 release 分支执行 release job
steps: steps:
# 下载构建产物 # 下载构建产物

View File

@ -21,6 +21,13 @@ base {
repositories { repositories {
mavenCentral() mavenCentral()
} }
javadoc {
options.encoding = 'UTF-8'
options.charSet = 'UTF-8'
//
options.addBooleanOption('Xdoclint:none', true)
options.addStringOption('Xmaxwarns', '10')
}
dependencies { dependencies {
// Common CommonApi // Common CommonApi
@ -28,13 +35,13 @@ dependencies {
} }
// Sources JAR // Sources JAR
task sourcesJar(type: Jar) { tasks.register('sourcesJar', Jar) {
from sourceSets.main.allSource from sourceSets.main.allSource
archiveClassifier = 'sources' archiveClassifier = 'sources'
} }
// Javadoc JAR // Javadoc JAR
task javadocJar(type: Jar) { tasks.register('javadocJar', Jar) {
dependsOn javadoc dependsOn javadoc
from javadoc.destinationDir from javadoc.destinationDir
archiveClassifier = 'javadoc' archiveClassifier = 'javadoc'
@ -69,9 +76,22 @@ publishing {
artifact shadowJar artifact shadowJar
artifact sourcesJar artifact sourcesJar
artifact javadocJar artifact javadocJar
groupId = project.group.toString() pom {
artifactId = base.archivesName.get() name = "${project_name}"
version = project.version.toString() 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 -> { case CLEAR -> {
if (Connections().containsKey(targetId)) { if (Connections().containsKey(targetId)) {
ChannelHandlerContext client = Connections().get(targetId); ChannelHandlerContext client = Connections().get(targetId);
String Channel = ((String[])argsArray)[0]; Integer Channel = ((Integer[])argsArray)[0];
String messageCommand = "clear-" + Channel; String messageCommand = "clear-" + Channel;
PowerBoxMessage strengthUpdate = PowerBoxMessage.createPowerBoxMessage("msg", clientId, targetId, messageCommand, role, new WebSocketApplicationRole("Ap" + targetId)); PowerBoxMessage strengthUpdate = PowerBoxMessage.createPowerBoxMessage("msg", clientId, targetId, messageCommand, role, new WebSocketApplicationRole("Ap" + targetId));
TryCatch(n -> ((ServerOperation)operation).ClearMessageHandler(strengthUpdate)); TryCatch(n -> ((ServerOperation)operation).ClearMessageHandler(strengthUpdate));

View File

@ -34,6 +34,14 @@ sourceSets {
dependencies { dependencies {
} }
javadoc {
options.encoding = 'UTF-8'
options.charSet = 'UTF-8'
//
options.addBooleanOption('Xdoclint:none', true)
options.addStringOption('Xmaxwarns', '10')
}
tasks.register('sourcesJar', Jar) { tasks.register('sourcesJar', Jar) {
archiveClassifier.set('sources') archiveClassifier.set('sources')
@ -71,6 +79,21 @@ publishing {
from components.java from components.java
artifact(tasks.named("sourcesJar")) artifact(tasks.named("sourcesJar"))
artifact(tasks.named("javadocJar")) 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 { public enum ChangePolicy {
/**
* 增加
*/
INCREASE(0),
/** /**
* 减少 * 减少
*/ */
DECREASE(1), DECREASE(0),
/**
* 增加
*/
INCREASE(1),
/** /**
* 转变 * 转变
*/ */

View File

@ -4,8 +4,8 @@ plugins {
id("maven-publish") id("maven-publish")
} }
group = "top.r3944realms.superleadrope" group = "${project_version}"
version = "1.0-SNAPSHOT" version = "${project_version}"
allprojects { allprojects {
repositories { repositories {
@ -16,6 +16,7 @@ allprojects {
subprojects { subprojects {
apply { apply {
plugin('java') plugin('java')
plugin("maven-publish")
} }
java { java {
@ -42,4 +43,25 @@ subprojects {
tasks.test { tasks.test {
useJUnitPlatform() 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 # Gradle settings
org.gradle.jvmargs=-Xmx3G org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=true org.gradle.daemon=false
org.gradle.configureondemand=true org.gradle.configureondemand=true
org.gradle.caching=true org.gradle.caching=false
org.gradle.configuration-cache=true org.gradle.configuration-cache=false
org.gradle.configuration-cache.problems=warn org.gradle.configuration-cache.problems=warn
# ROOT # ROOT
project_name=DgLab project_name=DgLab
project_version=4.4.14.18 project_version=4.4.14.19
project_group=top.r3944realms.dg_lab project_group=top.r3944realms.dg_lab
# API # API

View File

@ -2,6 +2,11 @@
统一用4位版本对于测试性更新统一在其后加-Beta。 统一用4位版本对于测试性更新统一在其后加-Beta。
修复问题更新为加0.0.0.1,添加/移除新特性加0.0.1.0小部分重构更新加0.1.0.0大量重构加1.0.0.0 修复问题更新为加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 2025-09-29-1
project_version=4.4.14.18 project_version=4.4.14.18
* 提取Server/Client接口 * 提取Server/Client接口