# java 8 required
`export JAVA_HOME=/path/to/java8/home`
mvn clean compile test
fix a bug, add a feature, update the doc, etc
mvn test
After your PR has been merged, add yourself as a contributor.
To do so, add a comment like the following on your PR:
@all-contributors please add @your-username for code and test!
Replace code with doc or test or infra or some combination depending on your contribution.
Contributors are not responsible for pushing packages to mavencentral and jcenter. Contributors are responsible for validating that the package step succeeds.
mvn clean package dokka:javadocJar
Add distributionManagement
to pom.xml
<distributionManagement>
<repository>
<id>github</id>
<name>Carmine M DiMascio</name>
<url>https://maven.pkg.github.com/cdimascio/dotenv-kotlin</url>
</repository>
</distributionManagement>
# deploy to github packages
mvn deploy -Dregistry=https://maven.pkg.github.com/cdimascio -Dtoken=XXXX
# deploy to maven central
mvn clean package dokka:javadocJar deploy -DperformRelease=true
Go to SonaType: https://oss.sonatype.org/#stagingRepositories - select repository -> close -> (once closed) release
Generate signed artifacts locally
mvn verify -P release-sign-artifacts -DperformRelease=true
gh release upload v6.4.2 target/*.jar.asc --clobber