diff --git a/src/fosslight_dependency/_package_manager.py b/src/fosslight_dependency/_package_manager.py index d9f7e283..eed98aa1 100644 --- a/src/fosslight_dependency/_package_manager.py +++ b/src/fosslight_dependency/_package_manager.py @@ -132,7 +132,7 @@ def add_allDeps_in_gradle(self): }}''' try: with open(const.SUPPORT_PACKAE.get(self.package_manager_name), 'a', encoding='utf8') as f: - f.write(allDeps) + f.write(f'\n{allDeps}\n') ret = True except Exception as e: logging.warning(f"Cannot add the allDeps task in build.gradle: {e}")