-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpom.xml
More file actions
203 lines (192 loc) · 6.6 KB
/
pom.xml
File metadata and controls
203 lines (192 loc) · 6.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.telosys</groupId>
<artifactId>telosys-cli</artifactId>
<version>4.3.0-001</version> <!-- "Version.java" is now based on "telosys-cli-build.properties" updated by each build -->
<packaging>jar</packaging>
<name>telosys-cli</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- <java.version>1.7</java.version> -->
<java.version>1.8</java.version>
<!-- <maven.build.timestamp.format>yyMMdd_HHmm</maven.build.timestamp.format> -->
<!-- <maven.build.timestamp.format>yy.DDD.HHmm</maven.build.timestamp.format> -->
<maven.build.timestamp.format>yyMMdd.HHmmss.S</maven.build.timestamp.format> <!-- day in the year . min . milliseconds -->
<build.id>${maven.build.timestamp}</build.id> <!-- for resource filtering -->
</properties>
<dependencies>
<!-- JLine -->
<dependency>
<groupId>jline</groupId>
<artifactId>jline</artifactId>
<version>2.12</version>
</dependency>
<!-- JGit -->
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<!-- <version>7.3.0.202506031305-r</version> -->
<version>5.13.3.202401111512-r</version> <!-- latest version for Java 8 (before JGit 6.x)-->
</dependency>
<dependency> <!-- "no-op" binding to avoid SLF4J logger warning (SLF4J is used by JGit) -->
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>1.7.30</version> <!-- must be the same version as SLF4J used by JGit -->
</dependency>
<!-- TELOSYS DEPENDENCIES -->
<dependency>
<groupId>org.telosys</groupId>
<artifactId>telosys-editor</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.telosys</groupId>
<artifactId>telosys-tools-all</artifactId> <!-- TELOSYS-ALL : the "UBER JAR" with everything -->
<version>4.3.0</version>
</dependency>
<!-- FOR TESTS -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<!-- Filtering file with build.id -->
<!-- only for tests
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>test.txt</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>test.txt</exclude>
</excludes>
</resource>
-->
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>telosys-cli-build.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>telosys-cli-build.properties</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <!-- Uber/fat JAR creation -->
<!-- <version>2.4.3</version> -->
<version>3.5.0</version>
<executions>
<!-- Run shade goal on package phase -->
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<!-- add Main-Class to manifest file -->
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.telosys.tools.cli.TelosysMain</mainClass>
<manifestEntries>
<Built-By>Telosys project</Built-By>
<Implementation-Title>Telosys-CLI</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
</manifestEntries>
</transformer>
</transformers>
<filters> <!-- removes all signature files from all dependencies -->
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
<!--
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<descriptor>assembly.xml</descriptor>
</configuration>
<executions>
<execution>
<id>create-archive</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
-->
<plugin> <!-- License header management -->
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.9.0</version>
<configuration>
<!-- <skip>${skip-license}</skip> -->
<!-- specific license file for Telosys-CLI -->
<header>src/license/license-header.txt</header>
<includes>
<include>src/main/java/**</include>
</includes>
<strictCheck>true</strictCheck>
</configuration>
<executions>
<execution>
<goals>
<!--
check : verify if some files miss license header
format : add the license header when missing. If a header is existing, it is updated to the new one
remove : remove existing license header
-->
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>