CC21-EDW / strava-api

API we use to access Strava in the cloud.
Apache License 2.0
0 stars 0 forks source link

strava-api

A template to use when starting a new open source project.

perform a repository wide search and replace for "repository-template-java" and the "target-repo-name"

e.g. by using

cp -R repository-template-java/ new-name && cd new-name && git config --local --unset remote.origin.url && git config --local --add remote.origin.url git@github.com:baloise/new-name.git && git reset --hard $(git commit-tree FETCH_HEAD^{tree} -m "Initial contribution") &&  git grep -l 'repository-template-java' | xargs sed -i '' -e 's/repository-template-java/new-name/g' && mvn clean verify && git add -A && git commit -m "Rename from template to new-name" && cd ..

Codacy Badge DepShield Badge Build Status Quality Gate Status

the docs

releasing

Run e.g. on main: mvn -B release:prepare e.g. via Gitpod ready-to-code

Subsequently the GitHub action worksflow "create release" will pick up the published tag and release and deploy the artifacts in the Github package registry.

Build behind Firewall

Maven

Add proxy to settings.xml (however in IntelliJ that does not properly work):

<setings
    <proxies>
        <proxy>
            <id>http-proxyproxy</id>
            <active>true</active>
            <protocol>http</protocol>
            <host>localhost</host>
            <port>8888</port>
        </proxy>
    </proxies>
</settings>

IntelliJ

File > Settings > Build, Execution, Deployments > Maven > Runner > VM Arguments

-DproxyHost=localhost -DproxyPort=8888 -DproxySet=true -Dio.swagger.parser.util.RemoteUrl.trustAll=true -Dio.swagger.v3.parser.util.RemoteUrl.trustAll=true