Skip refreshing dependencies in gradle

前端 未结 2 473
旧时难觅i
旧时难觅i 2021-01-17 09:12

Short version of question: Is there a way of telling gradle not to resolve dependencies? I know I can skip single task with -x switch but resolving dependen

2条回答
  •  青春惊慌失措
    2021-01-17 09:14

    There's the --offline flag. Alternatively, you can declare a flatDir rather than a maven repository whenever the build should be run with "local" dependencies.

提交回复
热议问题