Skip to content

cloudmine/CloudMineSDK-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Java API for interaction with CloudMine

If this project is a subproject of the Android library, run package.sh. It will build the entire library for you, putting the .jar in android_root/cloudmine-javasdk/target.

Build from scratch instructions:

  1. In these instructions, the version number may need to be changed depending on the actual version of the project you are working on.
  2. Edit the pom.xml file so that the version number is correct.
  3. Building the Android Library is a involved processes, because it relies on the Java Library, which we keep as a seperate project. We first need to build the Java Library, and then we can go ahead and build the Android Library:
    mvn package -DskipTests=true -f $JAVA_SDK_HOME/pom.xml;mvn install:install-file -DgroupId=com.cloudmine.api -DartifactId=cloudmine-javasdk -Dversion=0.3-SNAPSHOT -Dpackaging=jar -DpomFileJAVA_SDK_HOME/pom.xml -DfileJAVA_SDK_HOME/target/cloudmine-javasdk-0.3.jar -DgeneratePom=true
  4. Once the Java Library has been built, we can build the Android Library. $ANDROID_HOME is the top directory of the Android project. mvn package -DskipTests=true -f $ANDROID_HOME/pom.xml;mvn install:install-file -DgroupId=com.cloudmine.api -DartifactId=cloudmine-android -Dversion=0.3-SNAPSHOT -Dpackaging=jar -DpomFile=$ANDROID_HOME/pom.xml -Dfile=$ANDROID_HOME/target/cloudmine-android-0.3-SNAPSHOT.jar
  5. Run all the integration test and unit tests. Fix any that are failing.
  6. Build the jar.
    6.1 For Android: mvn assembly:assembly -DdescriptorId=jar-with-dependencies -DbuildFor=android -DskipTests=true
    6.2 For Java: mvn package -DskipTests=true
  7. Rename the .jar from cloudmine-javasdk-v#.#-jar-with-dependencies.jar to cloudmine-android-v#.#.jar
  8. Test that the jar works by following the set up instructions in the Android documentations, using the newly built jar instead of the downloadable jar, and then running the project.
  9. Generate JavaDoc jar: mvn javadoc:jar
  10. Rename the jar to cloudmine-android-v0.#-javadoc.jar
  11. Zip up the javadoc jar and the main jar, make sure the zip file is named "cloudmine-android-v0.#.zip"
  12. Upload zip file.

About

Backend Java API for interaction with CloudMine

Resources

License

Stars

Watchers

Forks

Packages

No packages published