Thus we have a local submodule in our code to build and publish the artifacts to a local maven repo before we build our app.
Unfortunately mupdf requires Gradle 7 to build successfully and it seems like f-droid did update the gradle version used on the build system. A failing job can be seen on my personal fork: fdroid build (#5038302505) · Jobs · Johannes Dillmann / Data · GitLab
The build of the taz application a couple of month ago did just pass fine.
As we would still like to submit the taz app to f-droid i have the following questions:
Is it possible to use a specific gradle version to build the mupdf artifact from a submodule?
Is there any chance you might add the ghostscript.org repo or at least the mupdf fitz library part to the list of allowed repos in f-droid?
If not, do you have any tipps on how to proceed. Are you aware of any other f-droid app and how they handle the mupdf build problem?
Latest gradle supported is like 8.3.1 so 7 is… very supported
The log says:
...
make: Leaving directory '/builds/kleingeist/fdroiddata/build/de.taz.android.app.free/thirdparty/mupdf-jni/libmupdf'
+ gradle -p ../thirdparty/mupdf-jni assembleRelease publishReleasePublicationToMavenLocal
Found 8.0 via distributionUrl
Downloading missing gradle version 8.0
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':bundleReleaseAar'.
> Could not create task ':packageReleaseAssets'.
> Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
thanks for the idea with subdirectory change. i am not entirely sure how the f-droid build system works. i tried to use the gradlew wrapper in the submodule path before, but that failed because it got stripped as part of the f-droid build preparation
i adapted it a little bit, but your tipp with changing the directories basically did the trick. i was so used to gradlew wrappers that i didnt realize the actual problem
i will open a MR in a minute with additional info to this release