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

Location of services "godot.registration.Entry" file is hardcoded. #538

Open
RobertZenz opened this issue Nov 15, 2023 · 0 comments
Open
Assignees

Comments

@RobertZenz
Copy link

The location of the services "godot.registration.Entry" file is currently hardcoded in three places:

  1. EntryGenerator.kt
  2. build.gradle.kts
  3. packageMainDexJarTask.kt

That has given me some trouble as I tried to move the location of the source sets. To be exact, I wanted to split my project into two source directories: src and src.godot. This might not be that Gradle like, but for me it would make sense in this project. I've tried to do that by redefining source sets:

sourceSets {
    main.java.srcDirs = [ 'src', 'src.godot' ]
    main.resources.srcDirs = [ 'src', 'src.godot' ]
    
    test.java.srcDirs = [ 'src.test' ]
    test.resources.srcDirs = [ 'src.test' ]
}

Obviously, the service file is now always located under src/main/resources/... which clashes with such a layout.

I'm not familiar with Gradle that much, but would it be possible to resolve the target location for the service during the build, for example sourceSets.main.resources.srcDirs[0] would be a good candidate, I guess.

@chippmann chippmann self-assigned this Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants