Skip to content
This repository was archived by the owner on Aug 13, 2020. It is now read-only.

Commit 75c2811

Browse files
authored
Merge pull request #426 from CJSCommonPlatform/switch-to-bintray
switch to bintray for releases
2 parents ec1eb0c + fc10f67 commit 75c2811

File tree

9 files changed

+46
-46
lines changed

9 files changed

+46
-46
lines changed

.travis.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
sudo: required
21
dist: trusty
2+
sudo: required
33
language: java
44
jdk:
5-
- oraclejdk8
5+
- oraclejdk8
6+
git:
7+
depth: 3
68
cache:
79
directories:
8-
- "$HOME/.m2"
10+
- "$HOME/.m2"
911
before_install:
10-
- git clone https://github.com/CJSCommonPlatform/travis-settings.git target/travis-settings
11-
install:
12-
- cp -f $JAVA_HOME/jre/lib/security/cacerts target/travis-settings/cacerts
13-
- chmod u+w target/travis-settings/cacerts
14-
- $JAVA_HOME/jre/bin/keytool -import -v -noprompt -storepass changeit -storetype jks -trustcacerts -alias IndigoBlueRoot -file target/travis-settings/ROOT-CA.crt -keystore target/travis-settings/cacerts
15-
script: mvn -Djavax.net.ssl.trustStore=$PWD/target/travis-settings/cacerts -B -C -V -U --settings target/travis-settings/settings.xml verify coveralls:report
16-
after_success:
17-
- '[[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_TAG != release-* ]] && mvn -Djavax.net.ssl.trustStore=$PWD/target/travis-settings/cacerts -DskipTests=true -B -C -V --errors deploy --settings target/travis-settings/settings.xml'
18-
- '[[ $TRAVIS_TAG == release-* ]] && mvn -Prelease -Djavax.net.ssl.trustStore=$PWD/target/travis-settings/cacerts -DskipTests=true -B -C -V --errors deploy --settings target/travis-settings/settings.xml'
12+
- git clone https://github.com/CJSCommonPlatform/travis-settings.git target/travis-settings
13+
- ln -sfT ${PWD}/target/travis-settings/settings.xml ${HOME}/.m2/settings.xml
14+
install: "${PWD}/target/travis-settings/java/install.sh -e -q -DexcludeGroupIds=uk.gov.justice.service,uk.gov.justice.services"
15+
script: "${PWD}/target/travis-settings/java/script.sh coveralls:report"
16+
after_success: "${PWD}/target/travis-settings/java/after_success.sh"
1917
notifications:
2018
slack:
2119
secure: fPlaMvrczZ2riJ4tjMOAqxSGj4JfxGlH/K08knLgG4T/n6EL4LN4+184Npz9XueNbV3m26WUrPkbXEiWXpqkKsbwcZXqqnFxGacGiyxv7LeBeQLYp7NFeARAyB5qDwUpjHlCPAEoAeyeGsZNrpui/wceY4j1tB7ObfdwbxLzAO0tekdbwitSaK1cc7V2sVHkBYr7ChuC+dVO1pshPw0EVTmzPioS8nfFKPaxWoMgyRAuYe7MD0U7DxNQ4Wzsb7tpfd5Oom1wLXyZ7M3wwSMMamIAAxHVG389Az6YvN7hXQggTGDawf/YwVOaoMR2bh7uHBCOiNZO1GbRTOA7IuTPwT7GsK94THRtfvqNm7RFBPkoD4657FATnk2o5c7QNTY3dAlYLsxLnS6mVTL/vAbqC7BbDHo/UGsxmOusQtKt8sRoL8pOCEInHaS3b88Osl7u7oYO/E4YTptdnkEe8tNyWWdx34nEUT0j1Mu/VAN38YcgTMUuiBU6chkMJ5BjIHisJlAAnBJ9VGgF9liqnigNwAGhbrHZPyAlKUX8HLejpD+t4aR0UaEvvauh6aHh4pYm0mZra4zOBC/lBDOXqsu5ajHL8LpHc6j+5FrmNwciiTVoxdud2S4c0U2ymr3L07ivX+UyhoraS9oSH3v7L73Q4NyvuAmD8Zc0xw/cR4Pff9c=
2220
env:
2321
global:
24-
- secure: 1I5o+lWqnsw8LW1AY3x5QkbFko+TVyCg7dTxAKaFgDreNjDxc4K3KlgkVay6+5eZXOJNyh+xqWGWItmELubWuM1QRnfTXJWqIb9xfMvqLlWygaPRP+zOYrkrY9H4NUstKvF41tkXWmz+BNheU7HeG7x9Ts2bTJ+sVKSHC7R0waOJRGj0rn/NEWzi0FpRMwoqOxJCEno4lmkj5Sb8XOTDtCE8PwxX6/p0ICgPIjA9Ctz/2j2ZAd1REgxAHsK+g3Qe3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BEg2HfsYwvG9WH8EWYlrTIdpLWcU27VIIG1ezm5xB94xxVUQS2u3kxWKTDzJaNb3YzXuTe7kfb2pUjpbzSRBuhGzI5YjXZ7HXjqLbcCN+I0rh2keOii1ZW1LkUX3G2+V45dbDznUsVZORqMru/RiqAYVoFVFNxm+KD4e7qujCDBc1wJ9FaMmP48zWZSGom9J4zTD6/w7itZIDzu0Ld7tR0s2SS/lXcPHgZJsVZrcTZjAfCT1HamrzKTDecFgMCKw2FaiHkcHe3LfKEKAYohxN61BzMxMSYzml+/e6kKylqcGBULQQPAtnGkczAlgDsqVpg5QhZXLM2QCDf7pC9Zx54OFf77HC/22uQDOe9mQfY=

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to
55

66
## [Unreleased]
77

8+
### Changed
9+
- Use maven-framework-parent-pom 1.6.1, which simply changes the wildfly-maven-plugin to 1.2.0.Alpha6 and stops adding it to every build
10+
- example-it: move the wildfly operations to the pre/post-integration-test phases (where they belong)
11+
- Switch to bintray for release processes
12+
- Cleaned up some unnecessary version overrides
13+
814
## [2.1.0] 2017-07-17
915

1016
### Added

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Clone the following CJSCommonPlatform projects into the same directory level:
3434
* [utilities](https://github.com/CJSCommonPlatform/utilities)
3535
* [file-service](https://github.com/CJSCommonPlatform/file-service)
3636
* [json-schema](https://github.com/CJSCommonPlatform/json-schema)
37-
* [wildfly-maven-plugin](https://github.com/CJSCommonPlatform/wildfly-maven-plugin)
3837
* [microservice_framework](https://github.com/CJSCommonPlatform/microservice_framework)
3938

4039
#### Run dependency installation script

example-context/example-service/example-it/pom.xml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
</parent>
1010
<artifactId>example-it</artifactId>
1111
<properties>
12-
<jboss.home>${project.build.directory}/wildfly-10.0.0.Final</jboss.home>
12+
<wildfly.version>10.0.0.Final</wildfly.version>
13+
<jboss.home>${project.build.directory}/wildfly-${wildfly.version}</jboss.home>
1314
<!-- To be used when running CakeShopIT-->
1415
<server.config>standalone-test.xml</server.config>
1516

1617
<!-- To be used when running CakeShopPostgresIT-->
1718
<!--<server.config>standalone-postgres-test.xml</server.config>-->
18-
19-
<wildfly.keepalive>false</wildfly.keepalive>
2019
</properties>
2120

2221
<dependencies>
@@ -241,7 +240,7 @@
241240
<executions>
242241
<execution>
243242
<id>unpack-wildfly</id>
244-
<phase>process-test-classes</phase>
243+
<phase>pre-integration-test</phase>
245244
<goals>
246245
<goal>unpack</goal>
247246
</goals>
@@ -259,7 +258,7 @@
259258
</execution>
260259
<execution>
261260
<id>copy-wars</id>
262-
<phase>process-test-classes</phase>
261+
<phase>pre-integration-test</phase>
263262
<goals>
264263
<goal>copy</goal>
265264
</goals>
@@ -369,7 +368,7 @@
369368
<executions>
370369
<execution>
371370
<id>copy-jboss-config</id>
372-
<phase>process-test-classes</phase>
371+
<phase>pre-integration-test</phase>
373372
<goals>
374373
<goal>copy-resources</goal>
375374
</goals>
@@ -396,7 +395,7 @@
396395
<!--<executions>-->
397396
<!--<execution>-->
398397
<!--<id>copy-jboss-module</id>-->
399-
<!--<phase>process-test-classes</phase>-->
398+
<!--<phase>pre-integration-test</phase>-->
400399
<!--<goals>-->
401400
<!--<goal>copy-resources</goal>-->
402401
<!--</goals>-->
@@ -427,14 +426,14 @@
427426
<executions>
428427
<execution>
429428
<id>Spawn a new H2 TCP server</id>
430-
<phase>process-test-classes</phase>
429+
<phase>pre-integration-test</phase>
431430
<goals>
432431
<goal>spawn</goal>
433432
</goals>
434433
</execution>
435434
<execution>
436435
<id>Stop a spawned H2 TCP server</id>
437-
<phase>verify</phase>
436+
<phase>post-integration-test</phase>
438437
<goals>
439438
<goal>stop</goal>
440439
</goals>
@@ -452,24 +451,27 @@
452451
<plugin>
453452
<groupId>org.wildfly.plugins</groupId>
454453
<artifactId>wildfly-maven-plugin</artifactId>
455-
<version>1.0.2.MoJ.Fork</version>
456454
<configuration>
457455
<jbossHome>${jboss.home}</jbossHome>
458456
<serverConfig>${server.config}</serverConfig>
459-
<keepAlive>${wildfly.keepalive}</keepAlive>
457+
<timeout>120</timeout>
460458
<!--<jvmArgs>-agentlib:jdwp=transport=dt_socket,address=8888,server=y,suspend=y</jvmArgs>-->
459+
<version>${wildfly.version}</version>
461460
</configuration>
462461
<executions>
463462
<execution>
464463
<id>start-server</id>
465-
<phase>process-test-classes</phase>
464+
<phase>pre-integration-test</phase>
466465
<goals>
467466
<goal>start</goal>
468467
</goals>
468+
<configuration>
469+
<startupTimeout>120</startupTimeout>
470+
</configuration>
469471
</execution>
470472
<execution>
471473
<id>stop-server</id>
472-
<phase>verify</phase>
474+
<phase>post-integration-test</phase>
473475
<goals>
474476
<goal>shutdown</goal>
475477
</goals>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mvn -Dwildfly.keepalive=true com.edugility:h2-maven-plugin:spawn wildfly:start
1+
mvn com.edugility:h2-maven-plugin:spawn wildfly:start
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
mvn -Dwildfly.keepalive=true com.edugility:h2-maven-plugin:spawn wildfly:start
2+
mvn com.edugility:h2-maven-plugin:spawn wildfly:start

example-context/example-service/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
<packaging>pom</packaging>
1414

1515
<properties>
16-
<version.wildfly.maven.plugin>1.0.2.Final</version.wildfly.maven.plugin>
17-
<plugins.raml-maven.version>1.5.0</plugins.raml-maven.version>
16+
<plugins.raml-maven.version>${raml-maven-plugin.version}</plugins.raml-maven.version>
1817
<wiremock.service.version>1.1.0</wiremock.service.version>
1918
<cpp.service-component>UNKNOWN_SERVICE_COMPONENT</cpp.service-component>
2019
<skip.mockito.json.validation>true</skip.mockito.json.validation>

install-dependencies.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ file_service_versions=("release-1.8.0")
3636
# json-schema
3737
json_schema_versions=("release-1.4.1.MoJ.Fork")
3838

39-
# wildfly-maven-plugin
40-
wildfly_maven_plugin_versions=("master")
41-
4239
# Checkout and install given version
4340
function installVersion {
4441
git checkout ${1}
@@ -86,7 +83,4 @@ installVersions ${file_service_versions[@]}
8683
cd ../json-schema
8784
installVersions ${json_schema_versions[@]}
8885

89-
cd ../wildfly-maven-plugin
90-
installVersions ${wildfly_maven_plugin_versions[@]}
91-
92-
cd ../microservice_framework
86+
cd ../microservice_framework

pom.xml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>uk.gov.justice</groupId>
99
<artifactId>maven-framework-parent-pom</artifactId>
10-
<version>1.5.0</version>
10+
<version>1.6.1</version>
1111
</parent>
1212

1313
<groupId>uk.gov.justice.services</groupId>
@@ -46,13 +46,15 @@
4646

4747
<properties>
4848
<h2.version>1.3.173</h2.version>
49-
<common-bom.version>1.16.0</common-bom.version>
50-
<embedded-artemis.version>1.0.0</embedded-artemis.version>
51-
<raml-maven-plugin.version>1.5.0</raml-maven-plugin.version>
52-
<file.service.version>1.8.0</file.service.version>
53-
<utilities.version>1.6.0</utilities.version>
54-
<test-utils.version>1.4.0</test-utils.version>
49+
<common-bom.version>1.17.0</common-bom.version>
50+
<embedded-artemis.version>1.1.0</embedded-artemis.version>
51+
<raml-maven-plugin.version>1.6.0</raml-maven-plugin.version>
52+
<file.service.version>1.9.0</file.service.version>
53+
<utilities.version>1.7.0</utilities.version>
54+
<test-utils.version>1.5.0</test-utils.version>
5555
<jboss-ejb3-ext-api.version>2.2.0.Final</jboss-ejb3-ext-api.version>
56+
57+
<cpp.repo.name>microservice_framework</cpp.repo.name>
5658
</properties>
5759

5860
<dependencyManagement>

0 commit comments

Comments
 (0)