Skip to content

Commit

Permalink
Merge pull request #22 from sanshengshui/develop-0.7.3
Browse files Browse the repository at this point in the history
=new merge
  • Loading branch information
sanshengshui authored Jan 11, 2025
2 parents 634334f + f6247b7 commit 7e53c3e
Show file tree
Hide file tree
Showing 244 changed files with 384 additions and 467 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 90

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Commands:
publish, pub 向代理发布消息
subscribe, sub 从MQTT Broker(代理)订阅更新

Copyright (c) 2019-2023, 物联网技术指南
Copyright (c) 2019-2025, 物联网技术指南
Developed by mushuwei
```

Expand Down
2 changes: 1 addition & 1 deletion bin/add-zsh-completion-osx.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Copyright © 2019-2023 The Toolkit Authors
# Copyright © 2019-2025 The Toolkit Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
Copyright © 2019-2023 The Toolkit Authors
Copyright © 2019-2025 The Toolkit Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion etc/license/license-header-template.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © ${project.inceptionYear}-2023 ${owner}
Copyright © ${project.inceptionYear}-2025 ${owner}

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Copyright © 2019-2023 The Toolkit Authors
Copyright © 2019-2025 The Toolkit Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -69,7 +69,7 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<picocli.version>4.7.5</picocli.version>
<picocli.version>4.7.6</picocli.version>
<netty.version>4.1.94.Final</netty.version>
<slf4j.version>1.7.36</slf4j.version>
<jackson.version>2.14.0-rc1</jackson.version>
Expand Down
44 changes: 22 additions & 22 deletions toolkit-app/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Copyright © 2019-2023 The Toolkit Authors
Copyright © 2019-2025 The Toolkit Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -224,26 +224,26 @@
</buildArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>compress-binary</id>
<goals>
<goal>exec</goal>
</goals>
<phase>package</phase>
<configuration combine.self="override">
<executable>upx</executable>
<skip>${skipCompress}</skip>
<arguments>
<argument>${project.build.directory}/toolkit${executable-suffix}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.codehaus.mojo</groupId>-->
<!-- <artifactId>exec-maven-plugin</artifactId>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>compress-binary</id>-->
<!-- <goals>-->
<!-- <goal>exec</goal>-->
<!-- </goals>-->
<!-- <phase>package</phase>-->
<!-- <configuration combine.self="override">-->
<!-- <executable>upx</executable>-->
<!-- <skip>${skipCompress}</skip>-->
<!-- <arguments>-->
<!-- <argument>${project.build.directory}/toolkit${executable-suffix}</argument>-->
<!-- </arguments>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
Expand Down Expand Up @@ -278,7 +278,6 @@
</activation>
<properties>
<executable-suffix>.exe</executable-suffix>
<skipCompress>true</skipCompress>
</properties>
</profile>

Expand All @@ -291,6 +290,7 @@
</activation>
<properties>
<assembly-suffix>-osx</assembly-suffix>
<skipCompress>true</skipCompress>
</properties>
<build>
<plugins>
Expand Down
2 changes: 1 addition & 1 deletion toolkit-app/src/main/assembly/assembly-java.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright © 2019-2023 The Toolkit Authors
Copyright © 2019-2025 The Toolkit Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion toolkit-app/src/main/assembly/assembly-native-osx.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!--
Copyright © 2019-2023 The Toolkit Authors
Copyright © 2019-2025 The Toolkit Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion toolkit-app/src/main/assembly/assembly-native.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright © 2019-2023 The Toolkit Authors
Copyright © 2019-2025 The Toolkit Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -51,7 +51,7 @@
synopsisSubcommandLabel = "{ config | mqtt | coap | nb }",
descriptionHeading = "%n",
requiredOptionMarker = '*',
footerHeading = "%nCopyright (c) 2019-2023, ${bundle:general.copyright}",
footerHeading = "%nCopyright (c) 2019-2025, ${bundle:general.copyright}",
footer = "%nDeveloped by mushuwei",
subcommands = {
AutoComplete.GenerateCompletion.class,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,7 +38,7 @@
synopsisHeading = "%n@|bold ${bundle:general.usage}|@%n",
commandListHeading = "%n@|bold ${bundle:general.commands}|@%n",
descriptionHeading = "%n",
footerHeading = "%nCopyright (c) 2019-2023, ${bundle:general.copyright}",
footerHeading = "%nCopyright (c) 2019-2025, ${bundle:general.copyright}",
footer = "%nDeveloped by mushuwei",
versionProvider = iot.technology.client.toolkit.common.constants.VersionInfo.class
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,7 +19,6 @@
import iot.technology.client.toolkit.common.utils.ColorUtils;
import iot.technology.client.toolkit.common.utils.StringUtils;

import java.util.Locale;
import java.util.ResourceBundle;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion toolkit-coap/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
Copyright © 2019-2023 The Toolkit Authors
Copyright © 2019-2025 The Toolkit Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -45,7 +45,7 @@
CoapPutCommand.class,
CoapDeleteCommand.class,
},
footerHeading = "%nCopyright (c) 2019-2023, ${bundle:general.copyright}",
footerHeading = "%nCopyright (c) 2019-2025, ${bundle:general.copyright}",
footer = "%nDeveloped by mushuwei")
public class CoapCommand implements Callable<Integer> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package iot.technology.client.toolkit.coap.command.sub;

import iot.technology.client.toolkit.common.utils.Assert;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -35,7 +35,7 @@
commandListHeading = "%n@|bold ${bundle:general.commands}|@%n",
optionListHeading = "%n@|bold ${bundle:general.option}|@%n",
descriptionHeading = "%n",
footerHeading = "%nCopyright (c) 2019-2023, ${bundle:general.copyright}",
footerHeading = "%nCopyright (c) 2019-2025, ${bundle:general.copyright}",
footer = "%nDeveloped by mushuwei"
)
public class CoapDeleteCommand extends AbstractCoapContext implements Callable<Integer> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -33,7 +33,7 @@
commandListHeading = "%n@|bold ${bundle:general.commands}|@%n",
optionListHeading = "%n@|bold ${bundle:general.option}|@%n",
descriptionHeading = "%n",
footerHeading = "%nCopyright (c) 2019-2023, ${bundle:general.copyright}",
footerHeading = "%nCopyright (c) 2019-2025, ${bundle:general.copyright}",
footer = "%nDeveloped by mushuwei"
)
public class CoapDescribeCommand implements Callable<Integer> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -41,7 +41,7 @@
commandListHeading = "%n@|bold ${bundle:general.commands}|@%n",
optionListHeading = "%n@|bold ${bundle:general.option}|@%n",
descriptionHeading = "%n",
footerHeading = "%nCopyright (c) 2019-2023, ${bundle:general.copyright}",
footerHeading = "%nCopyright (c) 2019-2025, ${bundle:general.copyright}",
footer = "%nDeveloped by mushuwei"
)
public class CoapDiscoverCommand extends AbstractCoapContext implements Callable<Integer> {
Expand All @@ -58,7 +58,6 @@ public class CoapDiscoverCommand extends AbstractCoapContext implements Callable
description = "${bundle:coap.uri.description}")
private URI uri;

/* ********************************** Identity Section ******************************** */
/* ********************************** Identity Section ******************************** */
@CommandLine.ArgGroup(exclusive = false,
heading = "%n@|bold,underline PSK Options|@ %n%n"//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -36,7 +36,7 @@
commandListHeading = "%n@|bold ${bundle:general.commands}|@%n",
optionListHeading = "%n@|bold ${bundle:general.option}|@%n",
descriptionHeading = "%n",
footerHeading = "%nCopyright (c) 2019-2023, ${bundle:general.copyright}",
footerHeading = "%nCopyright (c) 2019-2025, ${bundle:general.copyright}",
footer = "%nDeveloped by mushuwei"
)
public class CoapGetCommand extends AbstractCoapContext implements Callable<Integer> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package iot.technology.client.toolkit.coap.command.sub;

import picocli.CommandLine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,7 +37,7 @@
commandListHeading = "%n@|bold ${bundle:general.commands}|@%n",
optionListHeading = "%n@|bold ${bundle:general.option}|@%n",
descriptionHeading = "%n",
footerHeading = "%nCopyright (c) 2019-2023, ${bundle:general.copyright}",
footerHeading = "%nCopyright (c) 2019-2025, ${bundle:general.copyright}",
footer = "%nDeveloped by mushuwei"
)
public class CoapMediaTypesCommand implements Callable<Integer> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,7 +37,7 @@
commandListHeading = "%n@|bold ${bundle:general.commands}|@%n",
optionListHeading = "%n@|bold ${bundle:general.option}|@%n",
descriptionHeading = "%n",
footerHeading = "%nCopyright (c) 2019-2023, ${bundle:general.copyright}",
footerHeading = "%nCopyright (c) 2019-2025, ${bundle:general.copyright}",
footer = "%nDeveloped by mushuwei"
)
public class CoapPostCommand extends AbstractCoapContext implements Callable<Integer> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,7 +37,7 @@
commandListHeading = "%n@|bold ${bundle:general.commands}|@%n",
optionListHeading = "%n@|bold ${bundle:general.option}|@%n",
descriptionHeading = "%n",
footerHeading = "%nCopyright (c) 2019-2023, ${bundle:general.copyright}",
footerHeading = "%nCopyright (c) 2019-2025, ${bundle:general.copyright}",
footer = "%nDeveloped by mushuwei"
)
public class CoapPutCommand extends AbstractCoapContext implements Callable<Integer> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2023 The Toolkit Authors
* Copyright © 2019-2025 The Toolkit Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 7e53c3e

Please sign in to comment.