example application does not work with local SDK as documented
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- java
- Domaine
- build-system, documentation
Piste de recherche
Commencez par le README d’exemple et son build.gradle d’exemple, puis exécutez make pour reproduire la dépendance circulaire entre les tâches Gradle. Vérifiez si la configuration documentée du SDK local peut utiliser mavenLocal après publishToMavenLocal, et mettez à jour l’exemple ou la documentation afin que l’exemple se compile correctement avec un SDK non publié.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Checklist
- I have looked into the README and have not found a suitable solution or answer.
- I have looked into the documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have upgraded to the latest version of OpenFGA and the issue still persists.
- I have searched the Slack community and have not found a suitable solution or answer.
- I agree to the terms within the OpenFGA Code of Conduct.
Description
When following the documentation to run the example with a local version of the SDK, an error occurs when running make.
Expectation
It should be possible to run the example with a local unpublished version of the SDK
Reproduction
Update the example build.gradle as shown in the example README:
dependencies {
// implementation("dev.openfga:openfga-sdk:0.4.+")
implementation project(path: ':')
// ...etc
}
Run make, and observe the error:
FAILURE: Build failed with an exception.
* What went wrong:
Circular dependency between the following tasks:
:classes
\--- :compileJava
+--- :compileKotlin
| \--- :jar
| +--- :classes (*)
| +--- :compileJava (*)
| \--- :compileKotlin (*)
\--- :jar (*)
I don't know that trying to reference the SDK project is possible given that the repository is not organized as a gradle multi-project. I suspect the error is that the implementation project(path: ':') is adding a dependency to itself (: path is the project root). Even a hard-coded path will fail because the example project is not associated with the SDK project.
It may be easiest to update the documentation to advise to publish the SDK to the local maven repository, and then use the mavenLocal repository. e.g.,
./gradlew clean assemble publishToMavenLocal- update example to add
mavenLocal()to top of repositories
OpenFGA SDK version
0.4.1
OpenFGA version
latest
SDK Configuration
n/a
Logs
n/a
References
No response
- Langage dominant
- Java
- Étoiles
- 54
- Forks
- 26
- Merge moyen
- 2 j 7 h
- PR mergées (30 j)
- 9
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de openfga/java-sdk
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
openfga/java-sdk#370 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
openfga/java-sdk#361 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de openfga/java-sdk
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
OpenAPITools/openapi-generator#25014 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
AloisSeckar/demos-java#380 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
openhab/openhab-core#5847 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
appsmithorg/appsmith#42297 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100