language: java

jdk:
    - oraclejdk8

cache:
  directories:
    - $HOME/.m2

jobs:
        include:
                - stage: build-with-tests
                  install:
                          mvn --settings .maven.xml install -B 
                - stage: build-profil-MinimizedDependencies
                  install:
                          mvn clean install --settings .maven.xml -B -PMinimizedDependencies
                - stage: deploy-develop-branch
                  install:
                        mvn clean deploy --settings .maven.xml -B -PMinimizedDependencies

stages:
  - build-with-tests 
  - build-profil-MinimizedDependencies 
  - name: deploy-develop-branch 
    if: branch = develop 

language: java

jdk:
    - oraclejdk8

cache:
  directories:
    - $HOME/.m2

jobs:
        include:
                - stage: build-with-tests
                  install:
                          mvn --settings .maven.xml install -B 
                - stage: build-profil-MinimizedDependencies
                  install:
                          mvn clean install --settings .maven.xml -B -PMinimizedDependencies
                - stage: deploy-develop-with-profil-MinimizedDependencies
                  install:
                        mvn clean deploy --settings .maven.xml -B -PMinimizedDependencies
                - stage: deploy-develop
                  install:
                        mvn clean deploy --settings .maven.xml -B

stages:
  - build-with-tests 
  - build-profil-MinimizedDependencies 
  - name: deploy-develop-with-profil-MinimizedDependencies 
    if: branch = develop 
  - name: deploy-develop
    if: branch = develop

Add job for default profil deployment
Add job for default profil deployment
