example application does not work with local SDK as documented
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- java
- Domínio
- build-system, documentation
Direção de pesquisa
Comece pelo README de exemplo e pelo build.gradle de exemplo correspondente e, em seguida, execute make para reproduzir a dependência circular entre tarefas do Gradle. Verifique se a configuração documentada do SDK local pode usar mavenLocal após publishToMavenLocal e atualize o exemplo ou a documentação para que o exemplo seja compilado com sucesso usando um SDK não publicado.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Java
- Estrelas
- 54
- Forks
- 26
- Merge médio
- 2d 7h
- PRs com merge (30d)
- 9
Preparar o ambiente
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de openfga/java-sdk
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
openfga/java-sdk#370 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
openfga/java-sdk#361 · 1 reação ·
Mantenedores costumam responder em até 1 dia
Todas as issues de openfga/java-sdk
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
OpenAPITools/openapi-generator#25014 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
AloisSeckar/demos-java#380 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
openhab/openhab-core#5847 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
appsmithorg/appsmith#42297 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100