example application does not work with local SDK as documented
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- java
- Bereich
- build-system, documentation
Rechercherichtung
Beginne mit der Beispiel-README und der zugehörigen build.gradle und führe dann make aus, um die zirkuläre Gradle-Aufgabenabhängigkeit zu reproduzieren. Prüfe, ob die dokumentierte Einrichtung des lokalen SDK nach publishToMavenLocal mavenLocal verwenden kann, und aktualisiere das Beispiel oder die Dokumentation, sodass das Beispiel erfolgreich mit einem nicht veröffentlichten SDK erstellt werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Java
- Sterne
- 54
- Forks
- 26
- Ø Merge
- 2 T. 10 Std.
- Gemergte PRs (30 T.)
- 10
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus openfga/java-sdk
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
openfga/java-sdk#370 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
openfga/java-sdk#361 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in openfga/java-sdk
Ähnliche Issues
-
link-check link-check:manual
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 91/100
open-telemetry/opentelemetry-java#8870 ·
Maintainer antworten meist innerhalb von 1 Tag
-
P2 testing
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement javascript
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
area/core kind/bug status/triage team/core-shared
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag