小编sae*_*eta的帖子

sbt插件与使用插件本身的多项目构建中的项目之间交织在一起的依赖关系

我正在开发一个包含sbt插件的库.当然,我正在使用sbt来构建这个(多项目)库.我的(简化)项目如下:

myProject/                        # Top level of library
  -> models                       # One project in the multi-project sbt build.
      -> src/main/scala/...       # Defines common models for both sbt-plugin and framework
  -> sbt-plugin                   # The sbt plugin build
      -> src/main/scala/...
  -> framework                    # The framework. Ideally, the sbt plugin is run as part of 
      -> src/main/scala/...       # compiling this directory.
  -> project/                     # Multi-project build configuration
Run Code Online (Sandbox Code Playgroud)

有没有办法让myProject/sbt-plugin中定义的sbt-plugin在统一版本中挂钩到myProject/framework的构建中?

注意:类似(但更简单)的问题:如何使用使用它的项目在多项目构建中开发sbt插件?

plugins scala sbt

5
推荐指数
1
解决办法
590
查看次数

将位图转换为android.media.image

在Android中,如何将Bitmap对象转换为android.media.image对象?我的代码是:

Bitmap frame;
ByteArrayOutputStream stream = new ByteArrayOutputStream();
frame.compress(Bitmap.CompressFormat.JPEG, 100, stream);
byte[] byteArray = stream.toByteArray();
Run Code Online (Sandbox Code Playgroud)

如何在android.media.image中写入bytearray?

谢谢,

java android bitmap

5
推荐指数
0
解决办法
897
查看次数

标签 统计

android ×1

bitmap ×1

java ×1

plugins ×1

sbt ×1

scala ×1