Skip to content

Commit 5bceb88

Browse files
committed
调整配置,无关具体代码实现
1 parent b18e4cb commit 5bceb88

File tree

7 files changed

+28
-8
lines changed

7 files changed

+28
-8
lines changed

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ build/
33
!gradle/wrapper/gradle-wrapper.jar
44
!**/src/main/**/build/
55
!**/src/test/**/build/
6-
logs/
6+
/logs/
7+
/output/
8+
9+
/minecraftMod/
710
### IntelliJ IDEA ###
811
.idea/modules.xml
912
.idea/jarRepositories.xml
@@ -41,5 +44,4 @@ bin/
4144
### Mac OS ###
4245
.DS_Store
4346

44-
/output/
45-
/sc/
47+

.idea/copyright/profiles_settings.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import proguard.gradle.ProGuardTask
2+
13
buildscript {
24
repositories {
35
google()
@@ -12,6 +14,11 @@ plugins {
1214
id 'maven-publish'
1315
id 'com.github.johnrengelman.shadow' version '8.1.1'
1416
}
17+
java {
18+
toolchain {
19+
languageVersion = JavaLanguageVersion.of(17)
20+
}
21+
}
1522

1623
group = project_group
1724
version = project_version
@@ -30,7 +37,6 @@ dependencies {
3037
testImplementation platform('org.junit:junit-bom:5.10.0')
3138
testImplementation 'org.junit.jupiter:junit-jupiter'
3239
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.16'
33-
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl:2.20.0'
3440
}
3541
shadowJar {
3642
destinationDirectory = file('output')
@@ -52,7 +58,7 @@ jar {
5258
"FMLModType": "GAMELIBRARY"
5359
])
5460
}
55-
tasks.register('proguard', proguard.gradle.ProGuardTask) {
61+
tasks.register('proguard', ProGuardTask) {
5662
dependsOn shadowJar // 确保先构建 Shadow JAR 再混淆‌:ml-citation{ref="2,3" data="citationList"}
5763
configuration files('proguard.pro')
5864

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
21
project_group ='com.r3944realms.dg_lab'
32
project_version=2.2.8.16

src/main/java/com/r3944realms/dg_lab/api/msg/data/PulseWaveList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public List<PulseWave> getList() {
8080
}
8181

8282
/**
83-
* To list string string.
83+
* To list string.
8484
*
8585
* @return the string
8686
*/

src/test/java/com/r3944realms/dg_lab/test/demoCS/demoClient.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
import com.r3944realms.dg_lab.websocket.message.role.WebSocketClientRole;
1313
import com.r3944realms.dg_lab.websocket.sharedData.ClientPowerBoxSharedData;
1414
import com.r3944realms.dg_lab.websocket.sharedData.ISharedData;
15+
import org.slf4j.Logger;
16+
import org.slf4j.LoggerFactory;
1517

1618
import java.util.Scanner;
1719

1820
/**
1921
* The type Demo client.
2022
*/
2123
public class demoClient {
24+
static Logger logger = LoggerFactory.getLogger(demoClient.class);
2225
/**
2326
* The entry point of application.
2427
*
@@ -27,7 +30,7 @@ public class demoClient {
2730
public static void main(String[] args) {
2831
try {
2932
Class.forName("io.netty.handler.codec.http.HttpHeaders");
30-
System.out.println("HttpHeaders class is available");
33+
logger.info("HttpHeaders class is available");
3134
} catch (ClassNotFoundException e) {
3235
System.out.println("HttpHeaders class is not available");
3336
e.printStackTrace();
@@ -39,6 +42,7 @@ public static void main(String[] args) {
3942
.sharedData(sharedData)
4043
.role(new WebSocketClientRole("Cl"))
4144
.useRoleMsgMode(true)
45+
.addressAndPort("fe80::954a:a123:75b7:5a3b%5", 23111)
4246
.build();
4347
DGPBClientManager instance = new DGPBClientManager(powerBoxWSClient);
4448
IDGLabManager.setClientManagerInstance(instance);

0 commit comments

Comments
 (0)