Skip to content
ecdpalma edited this page Jul 8, 2018 · 2 revisions

It seems to be working with API level >= 24. For API < 24, I think Java Stream would have to be replaced with some Java7 compatible lib (streamsupport or other).

  1. Clone and build JUEL
git clone https://github.com/ecdpalma/juel

cd juel

mvn package

  1. Install JUEL into your local mvn repository
mvn install:install-file -Dfile=./modules/impl/target/juel-impl-2.2.8-SNAPSHOT.jar -DgroupId=de.odysseus.juel -DartifactId=juel-impl -Dversion=2.2.8-SNAPSHOT -Dpackaging=jar

mvn install:install-file -Dfile=./modules/api/target/juel-api-2.2.8-SNAPSHOT.jar -DgroupId=de.odysseus.juel -DartifactId=juel-api -Dversion=2.2.8-SNAPSHOT -Dpackaging=jar

mvn install:install-file -Dfile=./modules/spi/target/juel-spi-2.2.8-SNAPSHOT.jar -DgroupId=de.odysseus.juel -DartifactId=juel-spi -Dversion=2.2.8-SNAPSHOT -Dpackaging=jar

  1. Clone and build this jinjava repo
# leave juel project dir
cd ..

git clone https://github.com/ecdpalma/jinjava

cd jinjava

# for some reason I have not investigated, it fails some tests on the first time, but passes on the second try
mvn package
  1. Install jinjava package to local maven repo
mvn install:install-file -Dfile=./target/jinjava-2.4.4-SNAPSHOT-shaded.jar -DgroupId=com.hubspot.jinjava -DartifactId=jinjava -Dversion=2.4.4-SNAPSHOT -Dpackaging=jar

  1. Set your Android project to also use your local Maven repo
// In project's build.gradle (./build.gradle)
allprojects {
    repositories {
        mavenLocal()
        ...
    }    
}

  1. Put jinjava as a dependency in you app/lib module
...
    implementation "com.hubspot.jinjava:jinjava:2.4.4-SNAPSHOT"
...

Clone this wiki locally