Skip to content

Commit 7ea280d

Browse files
author
TheSnoozer
committed
remove the dependency to the maven-git-commit-id-plugin entirely and control the version with properties
1 parent 2dea8d3 commit 7ea280d

File tree

1,922 files changed

+29
-13098
lines changed

Some content is hidden

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

1,922 files changed

+29
-13098
lines changed

pom.xml

Lines changed: 10 additions & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,18 @@
44
<parent>
55
<groupId>org.sonatype.oss</groupId>
66
<artifactId>oss-parent</artifactId>
7-
<version>6</version>
7+
<version>9</version>
88
</parent>
99

1010
<groupId>pl.project13.maven</groupId>
1111
<artifactId>git-commit-id-plugin</artifactId>
1212
<packaging>pom</packaging>
1313

14-
<version>${git-commit-id-version}</version>
14+
<version>0.0.1</version>
1515

16-
<name>Git Commit Id Plugin Maven Mojo</name>
16+
<name>Git Commit Id Plugin Maven Mojo Debugging</name>
1717
<description>
18-
git-commit-id-plugin is a plugin quite similar to
19-
https://fisheye.codehaus.org/browse/mojo/tags/buildnumber-maven-plugin-1.0-beta-4 for example but as buildnumber
20-
only supports svn (which is very sad) and cvs (which is even more sad).
21-
This plugin makes basic repository information available through maven resources. This can be used to display
22-
"what version is this?" or "who has deployed this and when, from which branch?" information at runtime - making
23-
it easy to find things like "oh, that isn't deployed yet, I'll test it tomorrow" and making both testers and
24-
developers life easier.
25-
26-
The data currently exported is like this (that's the end effect from the GitRepositoryState Bean):
27-
{
28-
"branch" : "testing-maven-git-plugin",
29-
"commitTime" : "06.01.1970 @ 16:16:26 CET",
30-
"commitId" : "787e39f61f99110e74deed68ab9093088d64b969",
31-
"commitUserName" : "Konrad Malawski",
32-
"commitUserEmail" : "konrad.malawski@java.pl",
33-
"commitMessageFull" : "releasing my fun plugin :-) + fixed some typos + cleaned up directory structure + added
34-
license etc",
35-
"commitMessageShort" : "releasing my fun plugin :-)",
36-
"buildTime" : "06.01.1970 @ 16:17:53 CET",
37-
"buildUserName" : "Konrad Malawski",
38-
"buildUserEmail" : "konrad.malawski@java.pl"
39-
}
40-
41-
Note that the data is exported via maven resource filtering and is really easy to use with spring -
42-
which I've explained in detail in this readme https://github.com/ktoso/maven-git-commit-id-plugin
18+
Debugging Project for https://github.com/ktoso/maven-git-commit-id-plugin
4319
</description>
4420
<url>http://www.blog.project13.pl</url>
4521

@@ -48,10 +24,6 @@
4824
<module>submodule-two</module>
4925
</modules>
5026

51-
<prerequisites>
52-
<maven>[${maven-plugin-api.version},)</maven>
53-
</prerequisites>
54-
5527
<licenses>
5628
<license>
5729
<name>GNU Lesser General Public License 3.0</name>
@@ -66,136 +38,23 @@
6638
</scm>
6739

6840
<properties>
69-
<maven-plugin-api.version>2.2.1</maven-plugin-api.version>
70-
71-
<jgit.version>2.0.0.201206130900-r</jgit.version>
72-
<junit.version>4.10</junit.version>
73-
<mockito.version>1.9.0</mockito.version>
74-
75-
<java.target>1.6</java.target>
76-
<sourceEncoding>UTF-8</sourceEncoding>
77-
<outputEncoding>UTF-8</outputEncoding>
78-
<fest-assert.version>1.4</fest-assert.version>
79-
<git-commit-id-version>2.1.11-SNAPSHOT</git-commit-id-version>
41+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
43+
<java.target>1.7</java.target>
44+
45+
<git-commit-id-version>2.2.2</git-commit-id-version>
8046
</properties>
8147

8248
<dependencies>
83-
<!-- MAVEN -->
84-
<dependency>
85-
<groupId>org.apache.maven</groupId>
86-
<artifactId>maven-plugin-api</artifactId>
87-
<version>${maven-plugin-api.version}</version>
88-
</dependency>
89-
<dependency>
90-
<groupId>org.apache.maven</groupId>
91-
<artifactId>maven-project</artifactId>
92-
<version>${maven-plugin-api.version}</version>
93-
</dependency>
94-
95-
<dependency>
96-
<groupId>com.fasterxml.jackson.core</groupId>
97-
<artifactId>jackson-databind</artifactId>
98-
<version>2.2.3</version>
99-
</dependency>
100-
101-
<dependency>
102-
<groupId>com.google.inject</groupId>
103-
<artifactId>guice</artifactId>
104-
<version>2.0</version>
105-
</dependency>
106-
107-
<!-- Joda Time -->
108-
<dependency>
109-
<groupId>joda-time</groupId>
110-
<artifactId>joda-time</artifactId>
111-
<version>2.0</version>
112-
</dependency>
113-
114-
<!-- Guava -->
115-
<dependency>
116-
<groupId>com.google.guava</groupId>
117-
<artifactId>guava</artifactId>
118-
<version>15.0</version>
119-
</dependency>
120-
121-
<!-- IntelliJ Annotations -->
122-
<dependency>
123-
<groupId>com.intellij</groupId>
124-
<artifactId>annotations</artifactId>
125-
<version>9.0.4</version>
126-
</dependency>
127-
128-
<!-- JGit -->
129-
130-
<dependency>
131-
<groupId>org.eclipse.jgit</groupId>
132-
<artifactId>org.eclipse.jgit</artifactId>
133-
<version>${jgit.version}</version>
134-
</dependency>
135-
136-
<!-- Test stuff -->
137-
<dependency>
138-
<groupId>junit</groupId>
139-
<artifactId>junit</artifactId>
140-
<version>${junit.version}</version>
141-
<scope>test</scope>
142-
</dependency>
143-
144-
<dependency>
145-
<groupId>org.easytesting</groupId>
146-
<artifactId>fest-assert</artifactId>
147-
<version>${fest-assert.version}</version>
148-
<scope>test</scope>
149-
</dependency>
150-
151-
<dependency>
152-
<groupId>org.codehaus.plexus</groupId>
153-
<artifactId>plexus-utils</artifactId>
154-
<version>2.0.5</version>
155-
<scope>test</scope>
156-
</dependency>
157-
158-
<dependency>
159-
<groupId>org.mockito</groupId>
160-
<artifactId>mockito-all</artifactId>
161-
<version>${mockito.version}</version>
162-
<scope>test</scope>
163-
</dependency>
164-
165-
<dependency>
166-
<groupId>org.apache.commons</groupId>
167-
<artifactId>commons-io</artifactId>
168-
<version>1.3.2</version>
169-
<type>jar</type>
170-
<scope>test</scope>
171-
</dependency>
172-
173-
<dependency>
174-
<groupId>pl.pragmatists</groupId>
175-
<artifactId>JUnitParams</artifactId>
176-
<version>1.0.2</version>
177-
<scope>test</scope>
178-
</dependency>
17949
</dependencies>
18050

18151
<build>
18252
<!-- GIT COMMIT ID PLUGIN CONFIGURATION -->
183-
<resources>
184-
<resource>
185-
<directory>src/main/resources</directory>
186-
<filtering>true</filtering>
187-
<includes>
188-
<include>**/*.properties</include>
189-
<include>**/*.xml</include>
190-
</includes>
191-
</resource>
192-
</resources>
193-
19453
<plugins>
19554
<plugin>
19655
<groupId>pl.project13.maven</groupId>
19756
<artifactId>git-commit-id-plugin</artifactId>
198-
<version>${project.version}</version>
57+
<version>${git-commit-id-version}</version>
19958
<executions>
20059
<execution>
20160
<goals>
@@ -227,6 +86,5 @@
22786

22887
</plugins>
22988
</build>
230-
23189
</project>
23290

0 commit comments

Comments
 (0)