-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpom.xml
More file actions
448 lines (419 loc) · 18.3 KB
/
Copy pathpom.xml
File metadata and controls
448 lines (419 loc) · 18.3 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openpatch</groupId>
<artifactId>scratch</artifactId>
<version>5.0.3</version>
<packaging>jar</packaging>
<name>Scratch for Java</name>
<description>Scratch for Java is a Java library that replicates the functionality and concepts of Scratch, helping learners transition from block-based programming to text-based coding in Java. It provides an approachable API inspired by Scratch blocks, making it easier for beginners to understand programming concepts while gaining experience with real Java syntax and tools.</description>
<url>https://scratch4j.openpatch.org</url>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>mikebarkmin</id>
<name>Mike Barkmin</name>
<email>mike@barkmin.eu</email>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/openpatch/scratch-for-java.git</connection>
<developerConnection>scm:git:ssh://github.com/openpatch/scratch-for-java.git</developerConnection>
<url>https://github.com/openpatch/scratch-for-java</url>
</scm>
<properties>
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<libs.processing>4.5.5</libs.processing>
<libs.jackson>3.2.1</libs.jackson>
<libs.junit>5.11.4</libs.junit>
</properties>
<dependencies>
<dependency>
<groupId>org.processing</groupId>
<artifactId>core</artifactId>
<version>${libs.processing}</version>
</dependency>
<!-- Jackson -->
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${libs.jackson}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.22</version>
</dependency>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${libs.jackson}</version>
</dependency>
<dependency>
<groupId>tools.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>${libs.jackson}</version>
</dependency>
<dependency>
<groupId>com.github.davidmoten</groupId>
<artifactId>word-wrap</artifactId>
<version>0.1.13</version>
</dependency>
<!--
Ogg Vorbis support. These register themselves as javax.sound
service providers, so AudioSystem picks them up automatically and
Sound.java only has to decode the result to PCM.
-->
<dependency>
<groupId>com.googlecode.soundlibs</groupId>
<artifactId>vorbisspi</artifactId>
<version>1.0.3.3</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${libs.junit}</version>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>central</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.8</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.8.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<checksums>required</checksums>
<autoPublish>true</autoPublish>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!--
Compiles and runs one of the finished tutorial projects under
docs/archives, using the library as it is in this working copy:
mvn -q compile exec:java -Parchive -Darchive=make-it-walk-100 -Dmain=WalkStage
No jar needs building first. The sources are compiled into their own
output directory so they can never end up in a released jar.
-->
<profile>
<id>archive</id>
<properties>
<archive>make-it-walk-100</archive>
<main>WalkStage</main>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>add-archive-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>docs/archives/${archive}</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<!-- A separate JVM: the graphics library loads native
code, which does not survive sharing Maven's. -->
<executable>java</executable>
<classpathScope>runtime</classpathScope>
<arguments>
<argument>-classpath</argument>
<classpath />
<argument>${main}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>all</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>all</shadedClassifierName>
<transformers>
<!--
Merges META-INF/services instead of letting one jar
overwrite another. The Ogg decoder is found through
such a service file, so without this it can silently
disappear from the shaded jar.
-->
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<!-- Compiler -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<version>3.14.0</version>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<!-- Tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.2</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<excludes>
<exclude>demos/**</exclude>
<exclude>reference/**</exclude>
<exclude>tools/**</exclude>
</excludes>
</configuration>
</plugin>
<!--
Generates the built-in sprite and sound pages of the
documentation from src/main/resources, next to the reference
pages the doclet writes below.
-->
<!-- The doclet only writes pages; without this, pages for methods
that no longer exist would linger in the reference docs. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<id>clean-reference-docs</id>
<phase>prepare-package</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<excludeDefaultDirectories>true</excludeDefaultDirectories>
<filesets>
<fileset>
<directory>${project.basedir}/docs/book/reference</directory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>generate-asset-pages</id>
<phase>prepare-package</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>docs.GenerateAssetPages</mainClass>
<classpathScope>compile</classpathScope>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>add-examples-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/examples/java</source>
<source>src/tools/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Javadoc JAR and custom doclet execution (merged into one plugin declaration) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.8.0</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
<!-- Disable default javadoc execution -->
<execution>
<id>default-cli</id>
<phase>none</phase>
</execution>
<execution>
<id>generate-json-docs</id>
<phase>prepare-package</phase>
<goals>
<goal>javadoc-no-fork</goal>
</goals>
<configuration>
<doclet>doclets.Scratch4JDoclet</doclet>
<!-- Use the compiled classes from target/classes -->
<docletPath>${project.build.outputDirectory}</docletPath>
<outputDirectory>${project.build.directory}/../docs/book/reference</outputDirectory>
<useStandardDocletOptions>false</useStandardDocletOptions>
<additionalOptions>
<additionalOption>-d</additionalOption>
<additionalOption>${project.build.directory}/../docs/book/reference</additionalOption>
</additionalOptions>
<show>public</show>
</configuration>
</execution>
</executions>
<configuration>
<tags>
<tag>
<name>index-in-docs</name>
<placement>X</placement>
<head>Index in documentation</head>
</tag>
<tag>
<name>name-in-docs</name>
<placement>X</placement>
<head>Name in documentation</head>
</tag>
<tag>
<name>ignore-in-docs</name>
<placement>X</placement>
<head>Ignored in documentation</head>
</tag>
<tag>
<name>scratchblock</name>
<placement>a</placement>
<head>Scratch Block:</head>
</tag>
<!-- Allow any example.* tag -->
<tag>
<name>example.preview</name>
<placement>X</placement>
<head>Example:</head>
</tag>
<tag>
<name>example.folder</name>
<placement>X</placement>
<head>Example:</head>
</tag>
<tag>
<name>example.files</name>
<placement>X</placement>
<head>Example:</head>
</tag>
</tags>
<excludePackageNames>
demos.*:demos:reference.*:reference,doclets.*:doclets,docs.*:docs
</excludePackageNames>
<doclint>all,-missing</doclint>
</configuration>
</plugin>
<!-- Sources JAR -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<excludes>
<exclude>demos/**</exclude>
<exclude>reference/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>**/*.java</exclude> <!-- exclude all Java files -->
</excludes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/examples/java</directory>
<excludes>
<exclude>**/*.java</exclude> <!-- exclude all Java files -->
</excludes>
<filtering>false</filtering>
</resource>
</resources>
</build>
</project>