Skip to content

Commit 87148b0

Browse files
authored
Merge pull request #56 from MetricsHub/feature/issue-55-rebrand-codebase-from-sentry-software-to-metricshub
Issue #55: Rebrand Codebase from Sentry Software to MetricsHub
2 parents 0210a1b + 9961ca8 commit 87148b0

File tree

90 files changed

+3142
-3163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+3142
-3163
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
jobs:
2020
build:
21-
uses: sentrysoftware/workflows/.github/workflows/maven-build.yml@v3
21+
uses: metricshub/workflows/.github/workflows/maven-build.yml@v2
2222
with:
2323
jdkVersion: "17"
2424
debug: ${{ github.event_name == 'workflow_dispatch' && inputs.debug }}

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
deploy:
13-
uses: sentrysoftware/workflows/.github/workflows/maven-central-deploy.yml@v3
13+
uses: metricshub/workflows/.github/workflows/maven-central-deploy.yml@v2
1414
with:
1515
jdkVersion: "17"
1616
secrets: inherit

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
jobs:
2020
release:
21-
uses: sentrysoftware/workflows/.github/workflows/maven-central-release.yml@v3
21+
uses: metricshub/workflows/.github/workflows/maven-central-release.yml@v2
2222
with:
2323
releaseVersion: ${{ inputs.releaseVersion }}
2424
developmentVersion: ${{ inputs.developmentVersion }}

.prettierrc.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
overrides:
2+
- files:
3+
- "**/*.java"
4+
options:
5+
trailingComma: none
6+
useTabs: true
7+
tabWidth: 2
8+
semi: false
9+
singleQuote: false
10+
printWidth: 120
11+
arrowParens: avoid
12+
endOfLine: auto

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# WinRM Java Client
22

3-
![GitHub release (with filter)](https://img.shields.io/github/v/release/sentrysoftware/winrm)
4-
![Build](https://img.shields.io/github/actions/workflow/status/sentrysoftware/winrm/deploy.yml)
5-
![GitHub top language](https://img.shields.io/github/languages/top/sentrysoftware/winrm)
6-
![License](https://img.shields.io/github/license/sentrysoftware/winrm)
3+
![GitHub release (with filter)](https://img.shields.io/github/v/release/metricshub/winrm-java)
4+
![Build](https://img.shields.io/github/actions/workflow/status/metricshub/winrm-java/deploy.yml)
5+
![GitHub top language](https://img.shields.io/github/languages/top/metricshub/winrm-java)
6+
![License](https://img.shields.io/github/license/metricshub/winrm-java)
77

88
This project uses [WS-Man Client](https://github.com/OpenNMS/wsman) and [winrm4j](https://github.com/cloudsoft/winrm4j/)
99

10-
See **[Project Documentation](https://sentrysoftware.org/winrm)** and the [Javadoc](https://sentrysoftware.org/winrm/apidocs) for more information on how to use this library in your code.
10+
See **[Project Documentation](https://metricshub.org/winrm-java)** and the [Javadoc](https://metricshub.org/winrm-java/apidocs) for more information on how to use this library in your code.
1111

1212
The Windows Remote Management (WinRM) Java Client is a library that enables to:
1313
* Connect to a remote Windows server using one of the two authentication types (NTLM, KERBEROS)

checkstyle.xml

Lines changed: 30 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
<?xml version="1.0"?>
2-
<!DOCTYPE module PUBLIC
3-
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
4-
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
5-
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
63
<!--
74
85
Custom Checkstyle configuration that checks coding conventions,
@@ -30,7 +27,6 @@
3027
Finally, it is worth reading the documentation.
3128
3229
-->
33-
3430
<module name="Checker">
3531
<!--
3632
If you set the basedir property below, then all reported file
@@ -46,31 +42,23 @@
4642

4743
<!-- Checks whether files end with a new line. -->
4844
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
49-
<!----><module name="NewlineAtEndOfFile"/>
45+
<!---->
46+
<module name="NewlineAtEndOfFile" />
5047

5148
<!-- Checks that property files contain the same keys. -->
5249
<!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
53-
<module name="Translation"/>
50+
<module name="Translation" />
5451

5552
<!-- Checks for Size Violations. -->
5653
<!-- See http://checkstyle.sf.net/config_sizes.html -->
57-
<module name="FileLength"/>
54+
<module name="FileLength" />
5855

56+
<!--<module name="LineLength">
57+
<property name="max" value="200" />
58+
</module>-->
5959
<!-- Checks for tab indentation -->
60-
<module name="RegexpSingleline">
61-
<property name="format" value="^\s* +\s*[^*]" />
62-
<property name="message" value="Indentation must use tab characters" />
63-
</module>
64-
6560
<!-- Miscellaneous other checks. -->
6661
<!-- See http://checkstyle.sf.net/config_misc.html -->
67-
<module name="RegexpSingleline">
68-
<property name="format" value="\s+$"/>
69-
<property name="minimum" value="0"/>
70-
<property name="maximum" value="0"/>
71-
<property name="message" value="Line has trailing spaces."/>
72-
</module>
73-
7462
<module name="TreeWalker">
7563

7664
<!-- Checks for Javadoc comments. -->
@@ -92,15 +80,15 @@
9280

9381
<!-- Checks for Naming Conventions. -->
9482
<!-- See http://checkstyle.sf.net/config_naming.html -->
95-
<module name="ConstantName"/>
96-
<module name="LocalFinalVariableName"/>
97-
<module name="LocalVariableName"/>
98-
<module name="MemberName"/>
99-
<module name="MethodName"/>
100-
<module name="PackageName"/>
101-
<module name="ParameterName"/>
102-
<module name="StaticVariableName"/>
103-
<module name="TypeName"/>
83+
<!--<module name="ConstantName" />-->
84+
<module name="LocalFinalVariableName" />
85+
<module name="LocalVariableName" />
86+
<module name="MemberName" />
87+
<module name="MethodName" />
88+
<module name="PackageName" />
89+
<module name="ParameterName" />
90+
<module name="StaticVariableName" />
91+
<module name="TypeName" />
10492

10593

10694
<!-- Checks for Headers -->
@@ -123,34 +111,28 @@
123111

124112
<!-- Checks for imports -->
125113
<!-- See http://checkstyle.sf.net/config_import.html -->
126-
<module name="AvoidStarImport"/>
127-
<module name="IllegalImport"/> <!-- defaults to sun.* packages -->
128-
<module name="RedundantImport"/>
129-
<module name="UnusedImports"/>
114+
<module name="AvoidStarImport" />
115+
<module name="IllegalImport" /> <!-- defaults to sun.* packages -->
116+
<module name="RedundantImport" />
117+
<module name="UnusedImports" />
130118

131119

132120
<!-- Checks for Size Violations. -->
133121
<!-- See http://checkstyle.sf.net/config_sizes.html -->
134122
<!--<module name="LineLength"/>-->
135123
<module name="MethodLength"/>
136-
<module name="ParameterNumber">
124+
<!--<module name="ParameterNumber">
137125
<property name="tokens" value="METHOD_DEF"/>
138-
</module>
126+
</module>-->
139127

140128

141129
<!-- Checks for whitespace -->
142130
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
143131
<module name="EmptyForIteratorPad"/>
144132
<module name="GenericWhitespace"/>
145133
<module name="MethodParamPad"/>
146-
<module name="NoWhitespaceAfter"/>
147-
<module name="NoWhitespaceBefore"/>
148-
<module name="OperatorWrap"/>
149134
<!--<module name="ParenPad"/>-->
150135
<module name="TypecastParenPad"/>
151-
<module name="WhitespaceAfter">
152-
<property name="tokens" value="COMMA, SEMI"/>
153-
</module>
154136
<module name="WhitespaceAround">
155137
<property name="tokens" value="ASSIGN, BAND_ASSIGN, BOR_ASSIGN, BSR_ASSIGN, BXOR_ASSIGN, COLON, DIV_ASSIGN, EQUAL, GE, GT, LE, LITERAL_RETURN, LT, MINUS_ASSIGN, MOD_ASSIGN, NOT_EQUAL, PLUS_ASSIGN, QUESTION, SL_ASSIGN, SR_ASSIGN, STAR_ASSIGN"/>
156138
</module>
@@ -159,17 +141,13 @@
159141
<!-- Modifier Checks -->
160142
<!-- See http://checkstyle.sf.net/config_modifiers.html -->
161143
<module name="ModifierOrder"/>
162-
<module name="RedundantModifier"/>
163-
164-
165144
<!-- Checks for blocks. You know, those {}'s -->
166145
<!-- See http://checkstyle.sf.net/config_blocks.html -->
167146
<module name="AvoidNestedBlocks"/>
168147
<!--<module name="EmptyBlock"/>-->
169148
<module name="LeftCurly">
170-
<property name="option" value="nlow"/>
149+
<property name="option" value="eol"/>
171150
</module>
172-
<module name="NeedBraces"/>
173151
<!--<module name="RightCurly">
174152
<property name="option" value="alone"/>
175153
</module>-->
@@ -180,10 +158,10 @@
180158
<!--<module name="AvoidInlineConditionals"/>-->
181159
<module name="EmptyStatement"/>
182160
<module name="EqualsHashCode"/>
183-
<module name="HiddenField">
161+
<!--<module name="HiddenField">
184162
<property name="ignoreConstructorParameter" value="true"/>
185163
<property name="ignoreSetter" value="true"/>
186-
</module>
164+
</module>>-->
187165
<module name="IllegalInstantiation"/>
188166
<module name="InnerAssignment"/>
189167
<!--<module name="MagicNumber"/>-->
@@ -194,16 +172,11 @@
194172
<!-- Checks for class design -->
195173
<!-- See http://checkstyle.sf.net/config_design.html -->
196174
<!--<module name="DesignForExtension"/>-->
197-
<module name="FinalClass"/>
198-
<module name="HideUtilityClassConstructor"/>
175+
<!--<module name="HideUtilityClassConstructor"/>-->
199176
<module name="InterfaceIsType"/>
200-
<module name="VisibilityModifier"/>
201-
202-
203177
<!-- Miscellaneous other checks. -->
204178
<!-- See http://checkstyle.sf.net/config_misc.html -->
205179
<module name="ArrayTypeStyle"/>
206-
<module name="FinalParameters"/>
207180
<module name="TodoComment">
208181
<property name="format" value="FIXME"/>
209182
</module>
@@ -215,7 +188,8 @@
215188
<property name="format" value="XXX"/>
216189
<property name="severity" value="warning"/>
217190
</module>
218-
<module name="UpperEll"/>
191+
<!-- <module name="UpperEll"/> -->
192+
219193

220194
</module>
221195

pom.xml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
<modelVersion>4.0.0</modelVersion>
33

44
<parent>
5-
<groupId>org.sentrysoftware</groupId>
5+
<groupId>org.metricshub</groupId>
66
<artifactId>oss-parent</artifactId>
77
<version>2</version>
88
</parent>
99

10-
<artifactId>winrm</artifactId>
10+
<artifactId>winrm-java</artifactId>
1111
<version>1.1.02-SNAPSHOT</version>
1212

1313
<name>WinRM Java Client</name>
1414
<description>WinRM Java Client</description>
1515

1616
<organization>
17-
<name>Sentry Software</name>
18-
<url>https://sentrysoftware.com</url>
17+
<name>Metricshub</name>
18+
<url>https://metricshub.com</url>
1919
</organization>
2020

21-
<url>https://sentrysoftware.org/winrm</url>
21+
<url>https://metricshub.org/winrm-java</url>
2222
<inceptionYear>2023</inceptionYear>
2323

2424
<licenses>
@@ -31,12 +31,12 @@
3131

3232
<issueManagement>
3333
<system>GitHub</system>
34-
<url>https://github.com/sentrysoftware/winrm/issues/</url>
34+
<url>https://github.com/metricshub/winrm-java/issues/</url>
3535
</issueManagement>
3636

3737
<scm>
38-
<connection>scm:git:https://github.com/sentrysoftware/winrm.git</connection>
39-
<url>https://github.com/sentrysoftware/winrm</url>
38+
<connection>scm:git:https://github.com/metricshub/winrm-java.git</connection>
39+
<url>https://github.com/metricshub/winrm-java</url>
4040
<tag>HEAD</tag>
4141
</scm>
4242

@@ -179,7 +179,30 @@
179179
</execution>
180180
</executions>
181181
</plugin>
182-
182+
183+
<!-- Prettier -->
184+
<plugin>
185+
<groupId>com.hubspot.maven.plugins</groupId>
186+
<artifactId>prettier-maven-plugin</artifactId>
187+
<version>0.21</version>
188+
<configuration>
189+
<prettierJavaVersion>2.5.0</prettierJavaVersion>
190+
<ignoreConfigFile>false</ignoreConfigFile>
191+
<ignoreEditorConfig>false</ignoreEditorConfig>
192+
<inputGlobs>
193+
<inputGlob>src/main/java/**/*.java</inputGlob>
194+
<inputGlob>src/test/java/**/*.java</inputGlob>
195+
</inputGlobs>
196+
</configuration>
197+
<executions>
198+
<execution>
199+
<phase>validate</phase>
200+
<goals>
201+
<goal>check</goal>
202+
</goals>
203+
</execution>
204+
</executions>
205+
</plugin>
183206

184207
</plugins>
185208
</build>

src/main/java/org/sentrysoftware/winrm/ShareRemoteDirectoryConsumer.java renamed to src/main/java/org/metricshub/winrm/ShareRemoteDirectoryConsumer.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package org.sentrysoftware.winrm;
1+
package org.metricshub.winrm;
22

33
/*-
44
* ╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲
55
* WinRM Java Client
66
* ჻჻჻჻჻჻
7-
* Copyright 2023 - 2024 Sentry Software
7+
* Copyright 2023 - 2024 Metricshub
88
* ჻჻჻჻჻჻
99
* Licensed under the Apache License, Version 2.0 (the "License");
1010
* you may not use this file except in compliance with the License.
@@ -22,7 +22,6 @@
2222

2323
@FunctionalInterface
2424
public interface ShareRemoteDirectoryConsumer<W extends WindowsRemoteExecutor, R, S, T> {
25-
2625
/**
2726
* Share the remote directory on the host.
2827
*
@@ -31,9 +30,5 @@ public interface ShareRemoteDirectoryConsumer<W extends WindowsRemoteExecutor, R
3130
* @param shareName The Share Name.
3231
* @param timeout Timeout in milliseconds.
3332
*/
34-
public void apply(
35-
final W windowsRemoteExecutor,
36-
final R remotePath,
37-
final S shareName,
38-
final T timeout);
33+
public void apply(final W windowsRemoteExecutor, final R remotePath, final S shareName, final T timeout);
3934
}

0 commit comments

Comments
 (0)