mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 11:00:10 +01:00
throw error if gradle build method is used but no build.gradle file is found
This commit is contained in:
parent
99bd544ab9
commit
7104411296
@ -2354,6 +2354,8 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
|
|||||||
gradlefile = build_gradle
|
gradlefile = build_gradle
|
||||||
elif os.path.exists(build_gradle_kts):
|
elif os.path.exists(build_gradle_kts):
|
||||||
gradlefile = build_gradle_kts
|
gradlefile = build_gradle_kts
|
||||||
|
else:
|
||||||
|
raise BuildException("No gradle file found")
|
||||||
regsub_file(r'compileSdkVersion[ =]+[0-9]+',
|
regsub_file(r'compileSdkVersion[ =]+[0-9]+',
|
||||||
r'compileSdkVersion %s' % n,
|
r'compileSdkVersion %s' % n,
|
||||||
gradlefile)
|
gradlefile)
|
||||||
|
Loading…
Reference in New Issue
Block a user