lig*_*igi 13 android kotlin android-studio jitpack
我想将源代码附加到kotlin库项目中,看起来我成功了,因为我现在有源代码库:
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
}
}
Run Code Online (Sandbox Code Playgroud)
source-jars还包含kotlin文件.这一切都在这个项目中:https://github.com/walleth/kethereum
这就是我们的 Maven Publication。
task androidSourcesJar(type: Jar) {
archiveClassifier.set('sources')
from android.sourceSets.main.java.srcDirs
}
Run Code Online (Sandbox Code Playgroud)
然后你就可以使用artifact androidSourcesJar.
| 归档时间: |
|
| 查看次数: |
722 次 |
| 最近记录: |