Skip to content

Commit a413581

Browse files
Deploy
0 parents  commit a413581

File tree

9 files changed

+612
-0
lines changed

9 files changed

+612
-0
lines changed

.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: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
![](https://github.com/wniemiec-task-java/process-manager/blob/master/docs/img/logo/logo.jpg)
2+
3+
<h1 align='center'>Process Manager</h1>
4+
<p align='center'>Cross-platform process manager.</p>
5+
<p align="center">
6+
<a href="https://github.com/wniemiec-task-java/process-manager/actions/workflows/windows.yml"><img src="https://github.com/wniemiec-task-java/process-manager/actions/workflows/windows.yml/badge.svg" alt=""></a>
7+
<a href="https://github.com/wniemiec-task-java/process-manager/actions/workflows/macos.yml"><img src="https://github.com/wniemiec-task-java/process-manager/actions/workflows/macos.yml/badge.svg" alt=""></a>
8+
<a href="https://github.com/wniemiec-task-java/process-manager/actions/workflows/ubuntu.yml"><img src="https://github.com/wniemiec-task-java/process-manager/actions/workflows/ubuntu.yml/badge.svg" alt=""></a>
9+
<a href="https://codecov.io/gh/wniemiec-task-java/process-manager"><img src="https://codecov.io/gh/wniemiec-task-java/process-manager/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://mvnrepository.com/artifact/io.github.wniemiec-task-java/process-manager"><img src="https://img.shields.io/maven-central/v/io.github.wniemiec-task-java/process-manager" alt="Maven Central release"></a>
12+
<a href="https://github.com/wniemiec-task-java/process-manager/blob/master/LICENSE"><img src="https://img.shields.io/github/license/wniemiec-task-java/process-manager" alt="License"></a>
13+
</p>
14+
<hr />
15+
16+
## ❇ Introduction
17+
Process Manager allows you to perform operations on system processes on different platforms.
18+
19+
## ❓ How to use
20+
1. Add one of the options below to the pom.xml file:
21+
22+
#### Using Maven Central (recomended):
23+
```
24+
<dependency>
25+
<groupId>io.github.wniemiec-task-java</groupId>
26+
<artifactId>process-manager</artifactId>
27+
<version>LATEST</version>
28+
</dependency>
29+
```
30+
31+
#### Using GitHub Packages:
32+
```
33+
<dependency>
34+
<groupId>wniemiec.task.java</groupId>
35+
<artifactId>process-manager</artifactId>
36+
<version>LATEST</version>
37+
</dependency>
38+
```
39+
40+
2. Run
41+
```
42+
$ mvn install
43+
```
44+
45+
3. Use it
46+
```
47+
[...]
48+
49+
import wniemiec.task.java.ProcessManager;
50+
51+
[...]
52+
53+
ProcessManager processManager = ProcessManager.getInstance();
54+
55+
System.out.println("Force kill process with PID 1234");
56+
processManager.forceKillProcessWithPid(1234);
57+
58+
```
59+
60+
## 📖 Documentation
61+
| Property |Parameter type|Return type|Description|Default parameter value|
62+
|----------------|-------------------------------|-----------------------------|--------|
63+
|forceKillProcessWithPid |`long`|`void`|Force kill process with a PID| - |
64+
65+
## 🚩 Changelog
66+
Details about each version are documented in the [releases section](https://github.com/williamniemiec/wniemiec-task-java/process-manager/releases).
67+
68+
## 🤝 Contribute!
69+
See the documentation on how you can contribute to the project [here](https://github.com/wniemiec-task-java/process-manager/blob/master/CONTRIBUTING.md).
70+
71+
## 📁 Files
72+
73+
### /
74+
| Name |Type|Description|
75+
|----------------|-------------------------------|-----------------------------|
76+
|dist |`Directory`|Released versions|
77+
|docs |`Directory`|Documentation files|
78+
|src |`Directory`| Source files|

dist/1.x/process-manager-1.0.0.jar

6.74 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-task-java</groupId>
8+
<artifactId>process-manager</artifactId>
9+
<version>1.0.0</version>
10+
11+
<name>ProcessManager</name>
12+
<description>Cross-platform process manager.</description>
13+
<url>https://github.com/wniemiec-task-java/process-manager</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-task-java/process-manager.git</connection>
38+
<developerConnection>scm:git:ssh://github.com:wniemiec-task-java/process-manager.git</developerConnection>
39+
<url>https://github.com/wniemiec-task-java/process-manager/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)