|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!-- |
3 | 3 |
|
4 | | - Copyright (C) 2024 con terra GmbH (info@conterra.de) |
| 4 | + Copyright (C) 2023 con terra GmbH (info@conterra.de) |
5 | 5 |
|
6 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
7 | 7 | you may not use this file except in compliance with the License. |
|
91 | 91 | <artifactId>ct-jsregistry-maven-plugin</artifactId> |
92 | 92 | <version>${ct.jsregistry.version}</version> |
93 | 93 | </plugin> |
| 94 | + <plugin> |
| 95 | + <artifactId>maven-deploy-plugin</artifactId> |
| 96 | + <version>2.8.2</version> |
| 97 | + </plugin> |
94 | 98 | <plugin> |
95 | 99 | <groupId>org.apache.maven.plugins</groupId> |
96 | 100 | <artifactId>maven-resources-plugin</artifactId> |
|
191 | 195 | </testResource> |
192 | 196 | </testResources> |
193 | 197 | <plugins> |
| 198 | + <plugin> |
| 199 | + <groupId>org.apache.maven.plugins</groupId> |
| 200 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 201 | + <version>3.4.1</version> |
| 202 | + <executions> |
| 203 | + <execution> |
| 204 | + <id>enforce-versions</id> |
| 205 | + <goals> |
| 206 | + <goal>enforce</goal> |
| 207 | + </goals> |
| 208 | + <configuration> |
| 209 | + <rules> |
| 210 | + <requireMavenVersion> |
| 211 | + <version>[3.8.0,)</version> |
| 212 | + </requireMavenVersion> |
| 213 | + <requireJavaVersion> |
| 214 | + <version>[17,)</version> |
| 215 | + </requireJavaVersion> |
| 216 | + </rules> |
| 217 | + </configuration> |
| 218 | + </execution> |
| 219 | + </executions> |
| 220 | + </plugin> |
194 | 221 | <plugin> |
195 | 222 | <groupId>de.conterra.maven</groupId> |
196 | 223 | <artifactId>setproperties-maven-plugin</artifactId> |
|
314 | 341 | <properties> |
315 | 342 | <owner>con terra GmbH</owner> |
316 | 343 | <email>info@conterra.de</email> |
317 | | - <project.inceptionYear>2024</project.inceptionYear> |
| 344 | + <project.inceptionYear>2023</project.inceptionYear> |
318 | 345 | </properties> |
319 | 346 | <includes> |
320 | 347 | <include>src/main/js/**/*.js</include> |
|
402 | 429 | <configuration> |
403 | 430 | <!-- only build zip files --> |
404 | 431 | <skipDeploy>true</skipDeploy> |
| 432 | + <createApp>false</createApp> |
405 | 433 | <sourceDirectory>${js.build.outputPath}/apps</sourceDirectory> |
406 | 434 | <outputDirectory>${project.build.directory}</outputDirectory> |
407 | 435 | </configuration> |
|
413 | 441 | <goal>deployApps</goal> |
414 | 442 | </goals> |
415 | 443 | </execution> |
| 444 | + <execution> |
| 445 | + <id>build-app-template</id> |
| 446 | + <phase>prepare-package</phase> |
| 447 | + <goals> |
| 448 | + <goal>deployAppTemplate</goal> |
| 449 | + </goals> |
| 450 | + <configuration> |
| 451 | + <templateFile>${project.build.directory}/${project.artifactId}-sample-app.zip</templateFile> |
| 452 | + <templateResources> |
| 453 | + <templateResource> |
| 454 | + <directory>${js.build.outputPath}/apps/sample</directory> |
| 455 | + <includes> |
| 456 | + <include>**/*</include> |
| 457 | + </includes> |
| 458 | + </templateResource> |
| 459 | + </templateResources> |
| 460 | + </configuration> |
| 461 | + </execution> |
416 | 462 | </executions> |
417 | 463 | </plugin> |
418 | 464 | <plugin> |
|
466 | 512 | <root.build.outputPath>${project.build.directory}/webapp</root.build.outputPath> |
467 | 513 | <js.build.outputPath>${root.build.outputPath}/js</js.build.outputPath> |
468 | 514 |
|
469 | | - <mapapps.version>4.17.0</mapapps.version> |
470 | | - <vuetify.version>1.5.28</vuetify.version> |
| 515 | + <mapapps.version>4.18.1</mapapps.version> |
| 516 | + <vuetify.version>1.5.30</vuetify.version> |
471 | 517 | <!-- JS lib versions --> |
472 | 518 | <apprt.version>${mapapps.version}</apprt.version> |
473 | 519 | <!-- java lib versions --> |
474 | | - <ct.jsregistry.version>2.0.1</ct.jsregistry.version> |
| 520 | + <ct.jsregistry.version>2.1.1</ct.jsregistry.version> |
475 | 521 | <ct.jsrt-test.version>2.0.2</ct.jsrt-test.version> |
476 | 522 |
|
477 | 523 | <!-- the default app, replaced in the *.html files to switch app names--> |
|
501 | 547 | required --> |
502 | 548 | <mapapps.useChunkedRequestEncoding>true</mapapps.useChunkedRequestEncoding> |
503 | 549 | <!-- enable this if "upload" profile should only deploy bundles --> |
504 | | - <skip.apps.upload>true</skip.apps.upload> |
| 550 | + <skip.apps.upload>false</skip.apps.upload> |
505 | 551 | <!-- enable this if "upload" profile should pre-optimize apps --> |
506 | 552 | <triggerPreOptimization>false</triggerPreOptimization> |
507 | 553 | </properties> |
|
549 | 595 | <artifactId>apprt-polyfill</artifactId> |
550 | 596 | <scope>test</scope> |
551 | 597 | </dependency> |
| 598 | + <dependency> |
| 599 | + <groupId>de.conterra.js</groupId> |
| 600 | + <artifactId>reactivity</artifactId> |
| 601 | + <scope>test</scope> |
| 602 | + </dependency> |
552 | 603 | </dependencies> |
553 | 604 | </profile> |
554 | 605 | <profile> |
|
641 | 692 | </properties> |
642 | 693 | <build> |
643 | 694 | <plugins> |
| 695 | + <plugin> |
| 696 | + <artifactId>maven-deploy-plugin</artifactId> |
| 697 | + <configuration> |
| 698 | + <updateReleaseInfo>true</updateReleaseInfo> |
| 699 | + </configuration> |
| 700 | + </plugin> |
644 | 701 | <plugin> |
645 | 702 | <groupId>de.conterra.jsregistry</groupId> |
646 | 703 | <artifactId>ct-jsregistry-maven-plugin</artifactId> |
|
683 | 740 | <configuration> |
684 | 741 | <skipDeploy>${skip.apps.upload}</skipDeploy> |
685 | 742 | <deployAsApp>true</deployAsApp> |
| 743 | + <appName>${project.artifactId}</appName> |
| 744 | + <appTitle>${project.artifactId}-${project.version}</appTitle> |
686 | 745 | <appEditorState>PUBLISHED</appEditorState> |
687 | 746 | <serverResourcesEndpoint>${mapapps.remote.base}/resources</serverResourcesEndpoint> |
688 | 747 | <username>${mapapps.user}</username> |
|
0 commit comments