发布包含源码的Kotlin项目aar包到Maven

去网上搜了一圈,好像大家都是这么配置from的,具体去Google详细的“kotlin”+“aar”+“源码”关键字时,找到的大多都是开源打包插件的maven-publish等的配置,而我们公司的是自己写的,没法参考。

尝试了一下使用from android.sourceSets.main.allSourcefrom android.sourceSets.main等配置,都报错。这个可能是因为项目使用了默认的源码路径没有配置sourceSets,所以检查不到,但偶尔有一次我使用from android.sourceSets.main时报错提示如下

  • What went wrong:

Cannot convert the provided notation to a File or URI: source set main.

The following types/formats are supported:

  • A String or CharSequence path, for example ‘src/main/java’ or ‘/usr/include’.

  • A String or CharSequence URI, for example ‘file:/usr/include’.

  • A File instance.

  • A Path instance.

  • A Directory instance.

  • A RegularFile instance.

  • A URI or URL instance.

灵感乍现,f

  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值