-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
217 lines (206 loc) · 8.69 KB
/
pom.xml
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<groupId>com.tcmj.pug</groupId>
<artifactId>tcmj-pug-enums</artifactId>
<version>1.3.5</version>
<name>tcmj-pug-enums</name>
<description>
_ __ _ _ __ _ ___ _ __ _ _ _ __ ___ ___
| '_ \| | | |/ _` | / _ \ '_ \| | | | '_ ` _ \/ __|
| |_) | |_| | (_| | | __/ | | | |_| | | | | | \__ \
| .__/ \__,_|\__, | \___|_| |_|\__,_|_| |_| |_|___/
| | __/ |
|_| |___/
Toolkit to load data from different sources in order to create java enum classes.
Contains all elements to create them on the fly.
All modules were separated by an official API.
There are already several implementations ready to use.
Choose:
a DataProvider to load your data e.g. from an URL or Json file
a ClassBuilder to construct your enum in java source code
a SourceCodeFormatter and NamingStrategy to adjust the final look
a EnumExporter to write your enum to a file or compile it directly onto a classloader
To further simplify this process you can use a Fluent builder pattern which directs you step by step
And do not hesitate to make use of our maven plugin
</description>
<inceptionYear>2017</inceptionYear>
<url>https://github.com/tcmj/tcmj-pug-enums</url>
<developers>
<developer>
<id>tcmj</id>
<name>Thomas Deutsch</name>
<email>tomdeu@gmail.com</email>
<roles>
<role>owner</role>
<role>developer</role>
</roles>
<timezone>Europe/Berlin</timezone>
</developer>
</developers>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<java.source.level.version>${java.version}</java.source.level.version>
<bintray.repo>tcmj-pug-enums</bintray.repo>
<bintray.package>tcmj-pug-enums</bintray.package>
<org.slf4j.version>1.7.25</org.slf4j.version>
<ch.qos.logback.version>1.2.3</ch.qos.logback.version>
</properties>
<prerequisites>
<maven>3.3.1</maven>
</prerequisites>
<issueManagement>
<system>GitHub</system>
<url>https://github.com/tcmj/tcmj-pug-enums/issues/</url>
</issueManagement>
<build>
<defaultGoal>clean install</defaultGoal>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.tcmj.plugins</groupId>
<artifactId>pug-enum-maven-plugin</artifactId>
<version>${project.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<distributionManagement>
<repository>
<id>bintray-tcmj-tcmj-pug-enums</id>
<name>tcmj-tcmj-pug-enums</name>
<url>https://api.bintray.com/maven/tcmj/${bintray.repo}/${bintray.package}/;publish=1</url>
</repository>
</distributionManagement>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.tcmj.pug</groupId>
<artifactId>pug-enum-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.tcmj.pug</groupId>
<artifactId>pug-enum-builder</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.tcmj.pug</groupId>
<artifactId>pug-enum-exporter</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.tcmj.pug</groupId>
<artifactId>pug-enum-datasources</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.tcmj.pug</groupId>
<artifactId>pug-enum-generator</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${org.slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.5</version>
</dependency>
<dependency>
<!-- Optional dependency if you want javapoet as enum builder. -->
<groupId>com.squareup</groupId>
<artifactId>javapoet</artifactId>
<version>1.8.0</version>
</dependency>
<dependency>
<!-- Optional dependency if you want codemodel as enum class builder.
https://mvnrepository.com/artifact/com.sun.codemodel/codemodel -->
<groupId>com.sun.codemodel</groupId>
<artifactId>codemodel</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<!-- Optional dependency if you want to use url datasources -->
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.10.2</version>
</dependency>
<dependency>
<!-- Optional dependency if you want to use google as formatting framework -->
<groupId>com.google.googlejavaformat</groupId>
<artifactId>google-java-format</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>${ch.qos.logback.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${ch.qos.logback.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>21.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>api</module>
<module>builder</module>
<module>datasources</module>
<module>exporter</module>
<module>maven-plugin</module>
<module>examples-api</module>
</modules>
</project>