将源文件附加到kotlin库项目不会显示在AS中
我想把源代码附加到一个kotlin库项目,看起来我成功了,因为我现在有了源代码jar:
https://jitpack.io/com/github/walleth/kethereum/bip44/0.21/
之前的版本没有出口的来源 – 所以我认为这是成功的。
https://jitpack.io/com/github/walleth/kethereum/bip44/0.20/
不幸的是,AS不显示来源。 我是这样产生的:
allprojects { repositories { jcenter() maven { url 'https://jitpack.io' } } apply plugin: "kotlin" apply plugin: "jacoco" apply plugin: "maven" apply plugin: "com.github.ben-manes.versions" dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" testCompile 'org.assertj:assertj-core:3.8.0' testCompile 'junit:junit:4.12' } task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc) { classifier = 'javadoc' from javadoc.destinationDir } artifacts { archives sourcesJar archives javadocJar } }
另外源代码包含kotlin文件。 这一切都在这个项目: https : //github.com/walleth/kethereum
- Android Studio 2.2无法find所有kotlin文件的引用
- 'when'语句跳过Kotlin for Android的条件
- Kotlin:为什么Android Studio中大多数variables都被强调,我该如何关闭?
- Kotlin不适用于Android Studio
- 无法安装android studio 3.0的gradle
- 将android kotlin项目迁移到sdk 27
- Kotlin:Android Studio中的gradle sync错误
- Android Studio 3.0 – 无法找到方法'com.android.build.gradle.internal.variant.BaseVariantData.getOutputs()Ljava / util / List'
- Kotlin在Android Studio 3.0-alpha8中应用()扩展lint消息