将源文件附加到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