Skip to content

Commit cc4a0fb

Browse files
Released to maven repository
1 parent 40c7239 commit cc4a0fb

File tree

12 files changed

+114
-28
lines changed

12 files changed

+114
-28
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,17 @@ All features of [zt-exec](https://github.com/zeroturnaround/zt-exec) are support
2020
- Create and clean up work directory automatically
2121

2222
### Download
23+
Include the dependency into your `pom.xml`
24+
````xml
25+
<dependency>
26+
<groupId>io.github.alekseysotnikov</groupId>
27+
<artifactId>CmdTool</artifactId>
28+
<version>0.4.3</version>
29+
</dependency>
30+
````
31+
Or
2332
1. Get the [latest version here](https://github.com/alekseysotnikov/CmdTool/releases) with or without dependencies
24-
2. Dependencies
33+
2. Project uses the following dependencies
2534
````xml
2635
<dependency>
2736
<groupId>org.zeroturnaround</groupId>

pom.xml

Lines changed: 82 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,44 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
<groupId>com.enot</groupId>
4+
<groupId>io.github.alekseysotnikov</groupId>
55
<artifactId>CmdTool</artifactId>
66
<packaging>jar</packaging>
7-
<version>0.4.2</version>
7+
<version>0.4.3</version>
88
<name>CmdTool</name>
9+
<description>Intended to execute console commands and scripts from Java easily</description>
10+
<developers>
11+
<developer>
12+
<name>Aleksei Sotnikov</name>
13+
<email>[email protected]</email>
14+
</developer>
15+
</developers>
916
<url>http://maven.apache.org</url>
10-
17+
<scm>
18+
<url>https://github.com/alekseysotnikov/CmdTool.git</url>
19+
</scm>
20+
<licenses>
21+
<license>
22+
<name>Eclipse Public License - v 1.0</name>
23+
</license>
24+
</licenses>
25+
1126
<properties>
1227
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1328
<java.version>1.8</java.version>
1429
</properties>
15-
30+
31+
<distributionManagement>
32+
<snapshotRepository>
33+
<id>ossrh</id>
34+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
35+
</snapshotRepository>
36+
<repository>
37+
<id>ossrh</id>
38+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
39+
</repository>
40+
</distributionManagement>
41+
1642
<build>
1743
<plugins>
1844
<plugin>
@@ -32,7 +58,7 @@
3258
<format>html</format>
3359
<format>xml</format>
3460
</formats>
35-
<check />
61+
<check/>
3662
</configuration>
3763
</plugin>
3864
<plugin>
@@ -50,6 +76,57 @@
5076
</descriptorRefs>
5177
</configuration>
5278
</plugin>
79+
<plugin>
80+
<groupId>org.sonatype.plugins</groupId>
81+
<artifactId>nexus-staging-maven-plugin</artifactId>
82+
<version>1.6.7</version>
83+
<extensions>true</extensions>
84+
<configuration>
85+
<serverId>ossrh</serverId>
86+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
87+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
88+
</configuration>
89+
</plugin>
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-source-plugin</artifactId>
93+
<version>2.2.1</version>
94+
<executions>
95+
<execution>
96+
<id>attach-sources</id>
97+
<goals>
98+
<goal>jar-no-fork</goal>
99+
</goals>
100+
</execution>
101+
</executions>
102+
</plugin>
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-javadoc-plugin</artifactId>
106+
<version>2.9.1</version>
107+
<executions>
108+
<execution>
109+
<id>attach-javadocs</id>
110+
<goals>
111+
<goal>jar</goal>
112+
</goals>
113+
</execution>
114+
</executions>
115+
</plugin>
116+
<plugin>
117+
<groupId>org.apache.maven.plugins</groupId>
118+
<artifactId>maven-gpg-plugin</artifactId>
119+
<version>1.5</version>
120+
<executions>
121+
<execution>
122+
<id>sign-artifacts</id>
123+
<phase>verify</phase>
124+
<goals>
125+
<goal>sign</goal>
126+
</goals>
127+
</execution>
128+
</executions>
129+
</plugin>
53130
</plugins>
54131
</build>
55132

src/main/java/com/enot/cmd/core/Cmd.java renamed to src/main/java/io/github/alekseysotnikov/cmd/core/Cmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.enot.cmd.core;
1+
package io.github.alekseysotnikov.cmd.core;
22

33
import org.cactoos.iterable.IterableOf;
44
import org.cactoos.iterable.Joined;

src/main/java/com/enot/cmd/core/Command.java renamed to src/main/java/io/github/alekseysotnikov/cmd/core/Command.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.enot.cmd.core;
1+
package io.github.alekseysotnikov.cmd.core;
22

33
import org.zeroturnaround.exec.ProcessResult;
44
import org.zeroturnaround.exec.StartedProcess;

src/main/java/com/enot/cmd/core/ICmd.java renamed to src/main/java/io/github/alekseysotnikov/cmd/core/ICmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.enot.cmd.core;
1+
package io.github.alekseysotnikov.cmd.core;
22

33
public interface ICmd {
44
ICmd configuring(Listening.BeforeStart... configuring);

src/main/java/com/enot/cmd/core/Listening.java renamed to src/main/java/io/github/alekseysotnikov/cmd/core/Listening.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.enot.cmd.core;
1+
package io.github.alekseysotnikov.cmd.core;
22

33
import org.zeroturnaround.exec.ProcessExecutor;
44
import org.zeroturnaround.exec.ProcessResult;

src/main/java/com/enot/cmd/core/ProcessListenerAdapter.java renamed to src/main/java/io/github/alekseysotnikov/cmd/core/ProcessListenerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.enot.cmd.core;
1+
package io.github.alekseysotnikov.cmd.core;
22

33
import org.zeroturnaround.exec.ProcessExecutor;
44
import org.zeroturnaround.exec.ProcessResult;

src/main/java/com/enot/cmd/listeners/CleanUp.java renamed to src/main/java/io/github/alekseysotnikov/cmd/listeners/CleanUp.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package com.enot.cmd.listeners;
1+
package io.github.alekseysotnikov.cmd.listeners;
22

3-
import com.enot.cmd.core.ProcessListenerAdapter;
4-
import com.enot.cmd.core.Listening;
3+
import io.github.alekseysotnikov.cmd.core.ProcessListenerAdapter;
4+
import io.github.alekseysotnikov.cmd.core.Listening;
55
import org.apache.commons.io.FileUtils;
66
import org.zeroturnaround.exec.ProcessExecutor;
77

src/main/java/com/enot/cmd/listeners/RedirectTo.java renamed to src/main/java/io/github/alekseysotnikov/cmd/listeners/RedirectTo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.enot.cmd.listeners;
1+
package io.github.alekseysotnikov.cmd.listeners;
22

3-
import com.enot.cmd.core.Listening;
3+
import io.github.alekseysotnikov.cmd.core.Listening;
44
import org.zeroturnaround.exec.ProcessExecutor;
55

66
import java.io.OutputStream;

src/main/java/com/enot/cmd/listeners/RedirectToFile.java renamed to src/main/java/io/github/alekseysotnikov/cmd/listeners/RedirectToFile.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package com.enot.cmd.listeners;
1+
package io.github.alekseysotnikov.cmd.listeners;
22

3-
import com.enot.cmd.core.ProcessListenerAdapter;
4-
import com.enot.cmd.core.Listening;
3+
import io.github.alekseysotnikov.cmd.core.ProcessListenerAdapter;
4+
import io.github.alekseysotnikov.cmd.core.Listening;
55
import org.zeroturnaround.exec.ProcessExecutor;
66

77
import java.io.File;

0 commit comments

Comments
 (0)