mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 18:50:11 +02:00
gradle: Never add lintOptions workaround
This breaks on newer plugin versions. Instead of complicating this logic even further to support them, upstream devs should instead use gradle configs that actually work. If their build fails because of lint, it's theirs to fix, not ours.
This commit is contained in:
parent
adff5615f5
commit
138618937f
@ -736,11 +736,6 @@ def build_local(app, build, vcs, build_dir, output_dir, srclib_dir, extlib_dir,
|
|||||||
elif method == 'gradle':
|
elif method == 'gradle':
|
||||||
logging.info("Building Gradle project...")
|
logging.info("Building Gradle project...")
|
||||||
|
|
||||||
# Avoid having to use lintOptions.abortOnError false
|
|
||||||
if build.gradlepluginver >= LooseVersion('0.7'):
|
|
||||||
with open(os.path.join(root_dir, 'build.gradle'), "a") as f:
|
|
||||||
f.write("\nandroid { lintOptions { checkReleaseBuilds false } }\n")
|
|
||||||
|
|
||||||
cmd = [config['gradle']]
|
cmd = [config['gradle']]
|
||||||
if build.gradleprops:
|
if build.gradleprops:
|
||||||
cmd += ['-P'+kv for kv in build.gradleprops]
|
cmd += ['-P'+kv for kv in build.gradleprops]
|
||||||
|
Loading…
Reference in New Issue
Block a user