Build the producer project
cd demo-producer
./gradlew build
Check stubs are generated
ls build/libs
# demo-producer-0.0.1-SNAPSHOT-aot.jar
# demo-producer-0.0.1-SNAPSHOT-plain.jar
# demo-producer-0.0.1-SNAPSHOT-stubs.jar
# demo-producer-0.0.1-SNAPSHOT.jar
Deploy the producer project to local maven
./gradlew build publishToMavenLocal
# check tha library has been deployed
ls -lart ~/.m2/repository/com/scalvetr/demo-producer/0.0.1-SNAPSHOT
# demo-producer-0.0.1-SNAPSHOT.pom
# demo-producer-0.0.1-SNAPSHOT-sources.jar
# demo-producer-0.0.1-SNAPSHOT-stubs.jar
# demo-producer-0.0.1-SNAPSHOT.module
# demo-producer-0.0.1-SNAPSHOT-plain.jar
Build the consumer project
cd ../demo-consumer
./gradlew build
Create the consumer project here
Create the producer project here