-
Notifications
You must be signed in to change notification settings - Fork 12
Home
kishore edited this page Mar 24, 2018
·
22 revisions
- Library located at
root/src/lib/kotlin - Tests located at
root/src/lib/kotlin/slatekit-tests
- Ensure you have gradle 3.5 gradle --version
- Download Slate Kit source git clone git@github.com:code-helix/slatekit.git
Refer to http://www.slatekit.com/kotlin-setup.html for more info on compiling
- Open terminal and cd to
/src/lib/kotlin - Clean the build first gradle clean
- Upgrade the version number in
build.gradle - Build using gradle gradle build
Gradle unit-tests automation is not yet ready. The tests have be to run using IntellJ
- Open the project(s) in intellij
- Right-click the test projects and select (Run all tests)
- About ~350 tests should pass
- There may be 4 failures - to fix soon
This is similar to the build steps. Open terminal to root/src/lib/kotlin
- Build the project gradle build
- Copy all the jars via gradle copyJars ( all jars copied to dist folder )
- Run script to package project as a zip file with binaries and examples
- Cd to
root/build - Update slatekit-package-kotlin.sh and change version number e.g.
VERSION=0.9.9 - On terminal run
./slatekit-package-kotlin.sh - Compress the folder in releases as a zip file e.g.
slatekit_v_0_9_9.zip
Use bintray to upload the jars/poms. Gradle automation is not yet setup
- Ensure environment variables setup as
BINTRAY_USERandBINTRAY_API_KEY - Get the username/api key from kishore
- Open terminal to root directory of
src/lib/kotlin - Run command gradle build and then gradle bintrayUpload
- Note: You can run both commands via gradle build bintrayUpload
This is not needed, but docs are here just in case )
- Login to bintray
- For each project create new version e..g 0.9.7
- For the new version, upload jar file
- Publish the files at the prompt/option
- From list of files, select the jar file to be shown in downloads
- Upload the pom file
- Do same for the other 6 projects
Drafting a new release involves a few various steps in git, dropbox, bintray and updating the website
- Deploy the binaries to bintray ( refer to section deploy above )
- Package the project for distribution ( sample apps, binaries etc ) - refer to package
- Upload the compressed zipped release file to dropbox ( in public folder )
- Share the dropbox link ( create link/copy it for link in webpage below )
- Update the slatekit website in branch gh-pages
- Update the webpage releases.html and add a new entry
- Finally, create a release in git