hyperledger-labs / cordentity

The Cordentity app integrates Indy capabilities into the Corda platform.
Apache License 2.0
31 stars 19 forks source link

IntelliJ Gradle dependency import of cordentity misses classes #10

Closed justinr3 closed 5 years ago

justinr3 commented 5 years ago

Description

Though I am including cordentity (cordentity-cordapp, cordentity-cordapp-contracts-states, cordentity-indy-utils) as cordapp dependencies in my build.gradle file, I can't seem to import any classes under com.luxoft.blockchainlab.corda.hyperledger.indy.flow., or anything under com.luxoft.blockchainlab.corda., for that matter. Strangely enough, I can successfully import com.luxoft.blockchainlab.hyperledger.indy.*.

Under "External Dependencies", I can find the classpath "com.luxoft.blockchainlab.corda.hyperledger.indy.flow.*", but that path isn't recognized by an import statement in a .kt object file similar to IndyArtifactsRegistry.kt.

Expected Behavior

The IDE and Gradle should recognize the classpath "com.luxoft.blockchainlab.corda.hyperledger.indy.flow*" within import statement.

Actual Behavior

The IDE and Gradle do not recognize the classpath "com.luxoft.blockchainlab.corda.hyperledger.indy.flow" within import statement.

Possible Fix

Steps to Reproduce

  1. Start from corda-template-kotlin
  2. Include cordentity cordapps as dependencies in build.gradle, and modify version numbers to be similar to that of the build.gradle of cordentity-poc-supplychain
  3. Copy in IndyArtifactsRegistry.kt into the project under cordapp/src/main/kotlin/template
  4. Attempt build, and open IndyArtifactsRegistry.kt in IDE

Context

I'm trying to build a Corda PoC using cordentity, but I cannot proceed until I can properly include cordentity.

Your Environment

DevAleksei commented 5 years ago

This issues are fixed in latest commits of master.