Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RepositoryNotFoundException #5269

Open
zhaohailongzhl opened this issue Aug 1, 2024 · 8 comments
Open

RepositoryNotFoundException #5269

zhaohailongzhl opened this issue Aug 1, 2024 · 8 comments
Labels
Category: Build/CI Requests, Issues and Changes targeting gradle, groovy, Jenkins, etc. Status: Needs Investigation Requires to be debugged or checked for feasibility, etc.

Comments

@zhaohailongzhl
Copy link

E:\workspace\terasology1\Terasology>groovyw module init iota
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
E:\workspace\terasology1\Terasology\config\groovy\common.groovy: 12: unable to resolve class org.eclipse.jgit.errors.RepositoryNotFoundException
@ line 12, column 1.
import org.eclipse.jgit.errors.RepositoryNotFoundException
^

1 error

How can I solve this problem?

@BenjaminAmos
Copy link
Contributor

I do not believe I have seen this particular error before. Have you made sure that you are using Java 17?

It could be that the dependency failed to download. Can you access https://ajoberstar.github.io/bintray-backup/org/ajoberstar/grgit/1.9.3/grgit-1.9.3.pom successfully?

@BenjaminAmos BenjaminAmos added Status: Needs Investigation Requires to be debugged or checked for feasibility, etc. Category: Build/CI Requests, Issues and Changes targeting gradle, groovy, Jenkins, etc. labels Aug 1, 2024
@zhaohailongzhl
Copy link
Author

I do not believe I have seen this particular error before. Have you made sure that you are using Java 17?

It could be that the dependency failed to download. Can you access https://ajoberstar.github.io/bintray-backup/org/ajoberstar/grgit/1.9.3/grgit-1.9.3.pom successfully?

my java version

C:\Users\ZHL>java --version
java 17.0.10 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.10+11-LTS-240, mixed mode, sharing)

and I can access the website you said and download it , I also tried java11, but it didn't work

@soloturn
Copy link
Contributor

soloturn commented Aug 4, 2024

you did something like:

git clone --filter=blob:none git@github.com:MovingBlocks/Terasology.git 
cd terasology
git checkout develop
groovyw module init iota

is it? or you were using master branch?

@zhaohailongzhl
Copy link
Author

I clone the develop branch directly. It's default, isn't it? I use develop branch

@zhaohailongzhl
Copy link
Author

Can I manually init or clone these modules such as https://github.com/Terasology/CoreWorlds

@BenjaminAmos
Copy link
Contributor

That should be possible What groovyw does internally is clone each module internally.

For each module you can do git clone https://github.com/Terasology/<Module> modules/<Module>.

The list of iota modules can be found at https://github.com/Terasology/Index/blob/master/distros/iota/gradle.properties, which would be:

  • BiomesAPI
  • CoreAdvancedAssets
  • CoreAssets
  • CoreRendering
  • CoreSampleGameplay
  • CoreWorlds
  • Drops
  • Explosives
  • Furnishings
  • Health
  • Inventory
  • ModuleTestingEnvironment

@zhaohailongzhl
Copy link
Author

I manually clone these modules but can't build them because they don't have the build.gradle.kts file. How do I fix this?

@BenjaminAmos
Copy link
Contributor

You can try copying the file templates/build.gradle into each cloned module directory. Almost all the modules should use the same build.gradle file, as they are typically not allowed to use their own custom one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Build/CI Requests, Issues and Changes targeting gradle, groovy, Jenkins, etc. Status: Needs Investigation Requires to be debugged or checked for feasibility, etc.
Projects
Status: No status
Development

No branches or pull requests

3 participants