Skip to content

Commit 98e74a3

Browse files
imetaxasimetaxas
imetaxas
authored and
imetaxas
committed
add script
update pom with release details
1 parent 602ddd4 commit 98e74a3

File tree

2 files changed

+87
-3
lines changed

2 files changed

+87
-3
lines changed

maven-central-deploy.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
# Deploy maven artefact in current directory into Maven central repository
3+
# using maven-release-plugin goals
4+
5+
read -p "Really deploy to maven cetral repository (yes/no)? "
6+
7+
if ( [ "$REPLY" == "yes" ] ) then
8+
ssh-add ~/.ssh/github.ppk
9+
ssh-add -l
10+
mvn release:clean release:prepare release:perform -B -e | tee maven-central-deploy.log
11+
ssh-add -D
12+
else
13+
echo 'Exit without deploy'
14+
fi

pom.xml

+73-3
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,89 @@
66

77
<groupId>com.portfolionaire.realitycheck</groupId>
88
<artifactId>realitycheck</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>0.1-SNAPSHOT</version>
10+
11+
<name>Reality Check</name>
12+
<url>https://github.com/imetaxas/realitycheck</url>
13+
14+
<scm>
15+
<url>https://github.com/imetaxas/realitycheck</url>
16+
<connection>scm:git:git@github.com:imetaxas/realitycheck.git</connection>
17+
<developerConnection>scm:git:git@github.com:imetaxas/realitycheck.git</developerConnection>
18+
<tag>HEAD</tag>
19+
</scm>
20+
21+
<issueManagement>
22+
<url>https://github.com/imetaxas/realitycheck</url>
23+
</issueManagement>
24+
25+
<ciManagement>
26+
<system>Jenkins</system>
27+
<url>https://travis-ci.org/imetaxas/realitycheck</url>
28+
</ciManagement>
29+
30+
<description>https://github.com/imetaxas/realitycheck.git</description>
31+
32+
<parent>
33+
<groupId>org.sonatype.oss</groupId>
34+
<artifactId>oss-parent</artifactId>
35+
<version>9</version>
36+
</parent>
37+
38+
<licenses>
39+
<license>
40+
<name>The Apache Software License, Version 2.0</name>
41+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
42+
<distribution>repo</distribution>
43+
</license>
44+
</licenses>
45+
46+
<developers>
47+
<developer>
48+
<id>imetaxas</id>
49+
<name>Yani (Ioannis) Metaxas</name>
50+
<email>imetaxas@gmail.com</email>
51+
<url>http://yanimetaxas.info</url>
52+
<roles>
53+
<role>creator</role>
54+
<role>developer</role>
55+
</roles>
56+
<timezone>+1</timezone>
57+
</developer>
58+
</developers>
1059

1160
<properties>
61+
<java.version>1.8</java.version>
1262
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1363
<github.global.server>github</github.global.server>
64+
<arguments>-e</arguments>
1465
</properties>
1566

1667
<build>
1768
<pluginManagement>
1869
<plugins>
70+
1971
<plugin>
2072
<groupId>org.apache.maven.plugins</groupId>
2173
<artifactId>maven-compiler-plugin</artifactId>
2274
<configuration>
23-
<source>1.8</source>
24-
<target>1.8</target>
75+
<source>${java.version}</source>
76+
<target>${java.version}</target>
2577
</configuration>
2678
</plugin>
79+
80+
<!-- override version of GPG plugin to use new GPG signing features -->
81+
<plugin>
82+
<groupId>org.apache.maven.plugins</groupId>
83+
<artifactId>maven-gpg-plugin</artifactId>
84+
<version>1.6</version>
85+
</plugin>
86+
<plugin>
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-release-plugin</artifactId>
89+
<version>2.5.3</version>
90+
</plugin>
91+
2792
<plugin>
2893
<groupId>org.codehaus.mojo</groupId>
2994
<artifactId>cobertura-maven-plugin</artifactId>
@@ -36,6 +101,7 @@
36101
<check />
37102
</configuration>
38103
</plugin>
104+
39105
<plugin>
40106
<groupId>org.eluder.coveralls</groupId>
41107
<artifactId>coveralls-maven-plugin</artifactId>
@@ -47,17 +113,21 @@
47113
</plugins>
48114
</pluginManagement>
49115
</build>
116+
50117
<dependencies>
118+
51119
<dependency>
52120
<groupId>org.apache.commons</groupId>
53121
<artifactId>commons-io</artifactId>
54122
<version>1.3.2</version>
55123
</dependency>
124+
56125
<dependency>
57126
<groupId>junit</groupId>
58127
<artifactId>junit</artifactId>
59128
<version>4.12</version>
60129
<scope>test</scope>
61130
</dependency>
131+
62132
</dependencies>
63133
</project>

0 commit comments

Comments
 (0)