1
アンドロイドライブラリを自動的にbintrayにアップロードしようとしています。Gradle install error:Javadoc
私はこのアプリのGradleのコードがあります。
:私はこのエラーを取得する./gradlew install
:
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
ext {
bintrayRepo = 'maven'
bintrayName = 'CurrentCenterPositionMap'
publishedGroupId = '[email protected]'
libraryName = 'CurrentCenterPositionMap'
artifact = 'current-center-position-map'
libraryDescription = 'A library to mark the center of a map with moveing animations'
siteUrl = 'https://github.com/leandroBorgesFerreira/CurrentCenterPositionMap'
gitUrl = 'https://github.com/leandroBorgesFerreira/CurrentCenterPositionMap.git'
libraryVersion = '0.8.1'
developerId = 'leandroBorgesFerreira'
developerName = 'Leandro Borges Ferreira'
developerEmail = '[email protected]'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.1'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
repositories {
mavenCentral()
}
// Place it at the end of the file
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
そして、このプロジェクトのGradle:
buildscript {
ext.kotlin_version = '1.0.4'
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
しかし、私は実行します
javadoc: error - Illegal package name: "/Users/hinovamobile/Desktop/Leandro/projetinhos/CurrentCenterPositionMap/mapfragmentwrapper/src/main/java/br/com/simplepass/mapfragmentwrapper/MapFragmentWrapper.kt"
1 error
:mapfragmentwrapper:javadoc FAILED
私は間違っているのですか?私はJavadocでこのエラーを修正する方法がわかりません...
は '--debug'フラグを追加します経由でjavadocを作る、あなたのセットアップに適用されると。可能であれば、 'MapFragmentWrapper'の内容を表示してください。 ' ./gradlew install --debug' – IRus
また、javadocの生成を無効にすることもできます。https://github.com/novoda/bintray-release/issues/71#issuecomment- 224324120と代わりにKDocを使用してください – IRus
ねえ、ありがとう。私はjavadocを無効にし、うまくいきました。しかし、後で--debugを試してみる –