를 사용하여 생성의 .jar가 성공적으로 생성 , (lib) .jar은 비어 있습니다. 내 프로젝트에서 잘못 된 부분을 도와주세요. 나는 터미널 실행에 구성 build.gradle는 .JAR 빈 나는 <code>bintray-plugin</code> Gradle을, 내 <code>build.gradle</code>, 패키지 & (LIB)의 변경을 읽고, 내가 bintray 작업에 모듈을 업로드하는 초보자입니다,하지만 난이 성공적으로 bintray accout 가입 bintray 업로드
- 후 LIB 요의 bintray 계정을 업로드하는 단계를 수행하는 것은 성공적으로 빌드 설치 gradlew 않았다.
- 터미널 실행시 성공적으로 빌드됩니다.
프로젝트 루트 build.gradle
:
buildscript {
repositories {
jcenter()
}
apply plugin: 'java'
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "com.jfrog.bintray"
version "1.7"
}
allprojects {
repositories {
jcenter()
}
apply plugin: 'com.github.dcendents.android-maven'
}
group = 'com.app.kickdrill'
version = '0.0.1'
응용 프로그램 build.gradle
apply plugin: 'com.android.library'
task clean(type: Delete) {
delete rootProject.buildDir
}
android {
publishNonDefault true
compileSdkVersion 23
buildToolsVersion '25.0.2'
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "0.0.1"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard- android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'LICENSE.txt'
}
}
dependencies {
androidTestCompile('com.android.support.test.espresso:espresso- core:2.2.2', {
exclude group: 'com.android.support',
module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.squareup.okhttp3:okhttp:3.3.1'
compile 'com.android.support:design:23.4.0'
testCompile 'junit:junit:4.12'
}
install {
repositories.mavenInstaller {
pom.project {
name 'KickDrill'
description 'its for an android developer'
url 'https://github.com/kickdrilldev/androidkickdrill'
inceptionYear '2017'
packaging 'aar'
groupId 'com.app.kickdrill'
artifactId 'androidKickdrill'
version '0.0.1'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
scm {
connection 'https://github.com/kickdrilldev/androidkickdrill.git'
url 'https://github.com/kickdrilldev/androidkickdrill'
}
developers {
developer {
name 'Vyankatesh Jadhav'
}
}
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
configurations = ['archives']
pkg {
repo = 'kickdrill'
name = 'androidkickdrill'
userOrg = 'androiddevs'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/kickdrilldev/androidkickdrill'
version {
name = 'androidKickdrill'
desc = 'its for an android developer'
vcsTag = '0.0.1'
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
}
}
}
을 찾을 수 있지만 빈의 .jar 작업을 업로드 bintray –