Skip to content

Commit 2815b07

Browse files
committed
switches to maven instead of gradle
1 parent a1c7651 commit 2815b07

43 files changed

Lines changed: 2204 additions & 1102 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
###
2+
# #%L
3+
# Arcade Data
4+
# %%
5+
# Copyright (C) 2018 - 2019 ArcadeAnalytics
6+
# %%
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
# #L%
19+
###
20+
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
21+
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar

.travis.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
11
language: java
22
service: docker
33

4-
54
before_install:
65
- docker version
76
- docker info
87
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
98

10-
before_cache:
11-
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
12-
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
139
cache:
1410
directories:
15-
- $HOME/.gradle/caches/
16-
- $HOME/.gradle/wrapper/
11+
- $HOME/.m2
1712

1813
notifications:
1914
email:
2015
- ro.franchini@gmail.com
2116

2217
script:
23-
- ./gradlew clean test
24-
- ./gradlew clean bootRepackage buildDocker -x test -Pprod -PnodeInstall --no-daemon
25-
- docker push arcadeanalytics/arcadeanalytics:latest
26-
- ./gradlew clean bootRepackage buildDockerSingle -x test -Pprod -PnodeInstall --no-daemon
27-
- docker push arcadeanalytics/arcadeanalytics-single:latest
18+
- ./mvnw clean -DskipTests deploy -Pprod -Prelease
19+
- ./mvnw clean -DskipTests deploy -Pprod-single -Prelease
2820

2921
jdk:
3022
- openjdk8

.travis/settings.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
3+
<servers>
4+
<server>
5+
<id>ossrh</id>
6+
<username>${env.SONATYPE_USERNAME}</username>
7+
<password>${env.SONATYPE_PASSWORD}</password>
8+
</server>
9+
<server>
10+
<id>docker.io</id>
11+
<username>${env.DOCKER_USERNAME}</username>
12+
<password>${env.DOCKER_PASSWORD}</password>
13+
</server>
14+
</servers>
15+
</settings>

build.gradle

Lines changed: 0 additions & 295 deletions
This file was deleted.

build_and_push_images.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
./gradlew clean bootRepackage buildDocker -x test -Pprod -PnodeInstall --no-daemon
2+
3+
docker push arcadeanalytics/arcadeanalytics:latest
4+
5+
./gradlew clean bootRepackage buildDockerSingle -x test -Pprod -PnodeInstall --no-daemon
6+
7+
docker push arcadeanalytics/arcadeanalytics-single:latest

0 commit comments

Comments
 (0)