This project shows how to test an API using RestClient with Junit Jupiter
gradle test
gradle test --tests ${testName}
where:
${testName}
is your test name
export ARTIFACTORY_USER=${username}
export ARTIFACTORY_PASSWORD=${password}
gradle publish
where:
${username}
Is artifactory username${password}
Is artifactory password
Note: If you want to learn more and publish your own library, feel free to drop me a message on my home page website and ask for a Jfrog credentials.
mvn deploy
Make sure you setup your artifactory credentials in ${USER_HOME}/.m2/settings.xml
<settings>
<servers>
<server>
<username>${username}</username>
<password>${password}</password>
<id>snapshots</id>
</server>
</servers>
</settings>
where:
${username}
Is artifactory username${password}
Is artifactory password