Skip to content

Commit 53b54fe

Browse files
Deploy
0 parents  commit 53b54fe

File tree

12 files changed

+688
-0
lines changed

12 files changed

+688
-0
lines changed

.github/workflows/macos.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: MacOS
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 11
19+
- name: Build with Maven
20+
run: mvn install

.github/workflows/ubuntu.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Ubuntu
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 11
19+
- name: Build with Maven
20+
run: mvn install

.github/workflows/windows.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Windows
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 11
19+
- name: Build with Maven and generate coverage report
20+
env:
21+
GITHUB_USERNAME: williamniemiec
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: mvn --file pom.xml jacoco:prepare-agent install jacoco:report
24+
- uses: codecov/codecov-action@v1
25+
with:
26+
file: ./**/target/site/jacoco/jacoco.xml
27+
name: codecov

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Project
2+
.settings/
3+
4+
# Maven
5+
target/
6+
pom.xml.tag
7+
pom.xml.releaseBackup
8+
pom.xml.versionsBackup
9+
pom.xml.next
10+
release.properties
11+
dependency-reduced-pom.xml
12+
buildNumber.properties
13+
.mvn/timing.properties
14+
.mvn/wrapper/maven-wrapper.jar

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 William Niemiec
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
![](https://github.com/wniemiec-util-data/string-utils/blob/master/docs/img/logo/logo.jpg)
2+
3+
<h1 align='center'>StringUtils</h1>
4+
<p align='center'>Contains methods that perform string manipulation.</p>
5+
<p align="center">
6+
<a href="https://github.com/wniemiec-util-data/string-utils/actions/workflows/windows.yml"><img src="https://github.com/wniemiec-util-data/string-utils/actions/workflows/windows.yml/badge.svg" alt=""></a>
7+
<a href="https://github.com/wniemiec-util-data/string-utils/actions/workflows/macos.yml"><img src="https://github.com/wniemiec-util-data/string-utils/actions/workflows/macos.yml/badge.svg" alt=""></a>
8+
<a href="https://github.com/wniemiec-util-data/string-utils/actions/workflows/ubuntu.yml"><img src="https://github.com/wniemiec-util-data/string-utils/actions/workflows/ubuntu.yml/badge.svg" alt=""></a>
9+
<a href="https://codecov.io/gh/wniemiec-util-data/string-utils"><img src="https://codecov.io/gh/wniemiec-util-data/string-utils/branch/master/graph/badge.svg?token=R2SFS4SP86" alt="Coverage status"></a>
10+
<a href="http://java.oracle.com"><img src="https://img.shields.io/badge/java-11+-D0008F.svg" alt="Java compatibility"></a>
11+
<a href="https://github.com/wniemiec-util-data/string-utils/releases"><img src="https://img.shields.io/github/v/release/wniemiec-util-data/string-utils" alt="Release"></a>
12+
<a href="https://github.com/wniemiec-util-data/string-utils/blob/master/LICENSE"><img src="https://img.shields.io/github/license/wniemiec-util-data/string-utils" alt="License"></a>
13+
</p>
14+
<hr />
15+
16+
## ❇ Introduction
17+
Methods package that perform string manipulation.
18+
19+
## ❓ How to use
20+
1. Add this to pom.xml:
21+
```
22+
<dependency>
23+
<groupId>wniemiec.util.data</groupId>
24+
<artifactId>string-utils</artifactId>
25+
<version>1.0.0</version>
26+
</dependency>
27+
```
28+
29+
2. Run
30+
```
31+
$ mvn install
32+
```
33+
34+
3. Use it
35+
```
36+
[...]
37+
38+
import wniemiec.util.data.StringUtils;
39+
40+
[...]
41+
42+
List<String> words = List.of("Hello", "World");
43+
44+
System.out.println( StringUtils.implode(words, " ") );
45+
```
46+
47+
## 📖 Documentation
48+
| Property |Type|Description|Default|
49+
|----------------|-------------------------------|-----------------------------|--------|
50+
|implode |`list: List<T>, delimiter: String: String`|Converts elements of a list into a string by separating each element with a delimiter| - |
51+
52+
53+
## 🚩 Changelog
54+
Details about each version are documented in the [releases section](https://github.com/williamniemiec/wniemiec-util-data/string-utils/releases).
55+
56+
## 🤝 Contribute!
57+
See the documentation on how you can contribute to the project [here](https://github.com/wniemiec-util-data/string-utils/blob/master/CONTRIBUTING.md).
58+
59+
## 📁 Files
60+
61+
### /
62+
| Name |Type|Description|
63+
|----------------|-------------------------------|-----------------------------|
64+
|dist |`Directory`|Released versions|
65+
|docs |`Directory`|Documentation files|
66+
|src |`Directory`| Source files|

dist/1.x/string-utils-1.0.0.jar

4.64 KB
Binary file not shown.

dist/1.x/stringutils-1.0.0.jar

4.64 KB
Binary file not shown.

pom-mavencentral.xml

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>io.github.wniemiec-util-data</groupId>
8+
<artifactId>string-utils</artifactId>
9+
<version>1.0.0</version>
10+
11+
<name>StringUtils</name>
12+
<description>Contains methods that perform string manipulation.</description>
13+
<url>https://github.com/wniemiec-util-data/string-utils</url>
14+
15+
<properties>
16+
<version.major>1</version.major>
17+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
<java.source-target.version>11</java.source-target.version>
19+
</properties>
20+
21+
<licenses>
22+
<license>
23+
<name>MIT License</name>
24+
<url>http://www.opensource.org/licenses/mit-license.php</url>
25+
</license>
26+
</licenses>
27+
28+
<developers>
29+
<developer>
30+
<id>williamniemiec</id>
31+
<name>William Niemiec</name>
32+
<email>[email protected]</email>
33+
</developer>
34+
</developers>
35+
36+
<scm>
37+
<connection>scm:git:[email protected]:wniemiec-util-data/string-utils.git</connection>
38+
<developerConnection>scm:git:ssh://github.com:wniemiec-util-data/string-utils.git</developerConnection>
39+
<url>https://github.com/wniemiec-util-data/string-utils/tree/main</url>
40+
</scm>
41+
42+
<distributionManagement>
43+
<snapshotRepository>
44+
<id>ossrh</id>
45+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
46+
</snapshotRepository>
47+
<repository>
48+
<id>ossrh</id>
49+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
50+
</repository>
51+
</distributionManagement>
52+
53+
<dependencies>
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<version>4.13.2</version>
58+
<scope>test</scope>
59+
</dependency>
60+
</dependencies>
61+
62+
<build>
63+
<resources>
64+
<resource>
65+
<directory>src/main/java</directory>
66+
<includes>
67+
<include>**/*.java</include>
68+
<include>**/*.gwt.xml</include>
69+
</includes>
70+
</resource>
71+
</resources>
72+
73+
<plugins>
74+
<plugin>
75+
<artifactId>maven-clean-plugin</artifactId>
76+
<version>3.1.0</version>
77+
</plugin>
78+
79+
<plugin>
80+
<artifactId>maven-resources-plugin</artifactId>
81+
<version>3.0.2</version>
82+
</plugin>
83+
84+
<plugin>
85+
<groupId>org.apache.maven.plugins</groupId>
86+
<artifactId>maven-compiler-plugin</artifactId>
87+
<version>3.8.0</version>
88+
<configuration>
89+
<source>${java.source-target.version}</source>
90+
<target>${java.source-target.version}</target>
91+
<useIncrementalCompilation>false</useIncrementalCompilation>
92+
</configuration>
93+
</plugin>
94+
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-surefire-plugin</artifactId>
98+
<version>2.22.2</version>
99+
</plugin>
100+
101+
<plugin>
102+
<artifactId>maven-jar-plugin</artifactId>
103+
<version>3.0.2</version>
104+
<configuration>
105+
<outputDirectory>${project.build.directory}/../dist/${version.major}.x</outputDirectory>
106+
</configuration>
107+
</plugin>
108+
109+
<plugin>
110+
<artifactId>maven-install-plugin</artifactId>
111+
<version>2.5.2</version>
112+
</plugin>
113+
114+
<plugin>
115+
<artifactId>maven-deploy-plugin</artifactId>
116+
<version>2.8.2</version>
117+
</plugin>
118+
119+
<plugin>
120+
<artifactId>maven-site-plugin</artifactId>
121+
<version>3.7.1</version>
122+
</plugin>
123+
124+
<plugin>
125+
<artifactId>maven-project-info-reports-plugin</artifactId>
126+
<version>3.0.0</version>
127+
</plugin>
128+
129+
<plugin>
130+
<groupId>org.apache.maven.plugins</groupId>
131+
<artifactId>maven-source-plugin</artifactId>
132+
<version>3.2.1</version>
133+
<executions>
134+
<execution>
135+
<id>attach-sources</id>
136+
<goals>
137+
<goal>jar-no-fork</goal>
138+
</goals>
139+
</execution>
140+
</executions>
141+
</plugin>
142+
143+
<plugin>
144+
<groupId>org.apache.maven.plugins</groupId>
145+
<artifactId>maven-javadoc-plugin</artifactId>
146+
<version>3.2.0</version>
147+
<executions>
148+
<execution>
149+
<id>attach-javadocs</id>
150+
<goals>
151+
<goal>jar</goal>
152+
</goals>
153+
</execution>
154+
</executions>
155+
</plugin>
156+
157+
<!-- Coverage -->
158+
<plugin>
159+
<groupId>org.jacoco</groupId>
160+
<artifactId>jacoco-maven-plugin</artifactId>
161+
<version>0.8.6</version>
162+
<executions>
163+
<execution>
164+
<id>jacoco-initialize</id>
165+
<goals>
166+
<goal>prepare-agent</goal>
167+
</goals>
168+
</execution>
169+
<execution>
170+
<id>jacoco-site</id>
171+
<phase>package</phase>
172+
<goals>
173+
<goal>report</goal>
174+
</goals>
175+
</execution>
176+
</executions>
177+
</plugin>
178+
</plugins>
179+
</build>
180+
181+
<profiles>
182+
<profile>
183+
<id>ci-cd</id>
184+
<build>
185+
<plugins>
186+
<plugin>
187+
<groupId>org.apache.maven.plugins</groupId>
188+
<artifactId>maven-gpg-plugin</artifactId>
189+
<version>1.6</version>
190+
<executions>
191+
<execution>
192+
<id>sign-artifacts</id>
193+
<phase>verify</phase>
194+
<goals>
195+
<goal>sign</goal>
196+
</goals>
197+
<configuration>
198+
<!-- Prevent gpg from using pinentry programs. Fixes: gpg: signing
199+
failed: Inappropriate ioctl for device -->
200+
<gpgArguments>
201+
<arg>--pinentry-mode</arg>
202+
<arg>loopback</arg>
203+
</gpgArguments>
204+
</configuration>
205+
</execution>
206+
</executions>
207+
</plugin>
208+
</plugins>
209+
</build>
210+
</profile>
211+
</profiles>
212+
</project>

0 commit comments

Comments
 (0)