我试图找到一个gradle任务,以确保将所有依赖项工件都下载到gradle缓存中。如果运行//The params width and height are given values up here
...
return Container(
color: Color(0XFF0000FF), //Blue container which shows the actual size I want the GD to be.
child: ColorFiltered( //Red shows how big the GD actually is.
colorFilter: ColorFilter.mode(Color(0XFFFF0000), BlendMode.hue),
child: RawGestureDetector(
key: gestureKey,
behavior: HitTestBehavior.translucent,
gestures: <Type, GestureRecognizerFactory>{
_SingleDeviceGestureDetector: GestureRecognizerFactoryWithHandlers<
_SingleDeviceGestureDetector>(
() => _SingleDeviceGestureDetector(
//When the pointer touches down on the screen
onHorizontalDragDown: (details) { ... }
onHorizontalDragUpdate: (details) { ... }
onHorizontalDragUp: (details) { ...}
),
(_SingleDeviceGestureDetector instance) {},
),
},
child: Container( //The child container with a transparent colour.
//color: Color(0X00000000),
height: height,
width: width,
child: ...
),
),
),
);
});
}
,则可以查看./gradlew :project:dependencies
,并且可以看到很多$GRADLE_USER_HOME/caches
目录,但是它们大部分(仅?)包含com.x.package/artifact/version/hash/
文件。如何确保也下载了.pom
个文件?
对于上下文,我试图构建一个预先构建了gradle缓存的docker映像,以避免每次都下载工件。
答案 0 :(得分:1)
尝试
task showMeCache << {
configurations.compile.each { println it }
}
如果运行它,它应该下载依赖项并打印缓存的依赖项的位置。
这可能取决于您的平台,但是工件应存储在这里:
~/.gradle/caches/modules-2/files-2.1