bintray에 lib를 게시하려고합니다. 그러나 만들어진 jar 파일에는 META-INF 폴더 만 있고 클래스 파일은 없습니다.bintrayUpload 이후 Jar 파일에 클래스 파일이 없습니다.
나는 가이드 https://github.com/bintray/gradle-bintray-plugin#readme에 따라 왔지만 작동시키지 못했습니다.
내 그라디언트 파일의 모습입니다.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
// 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"
}
apply plugin: 'maven-publish'
apply plugin: 'java'
allprojects {
repositories {
jcenter()
}
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId ''
artifactId ''
version '1.0'
}
}
}
bintray {
user = ''
key = ''
publications = ['MyPublication']
pkg {
repo = 'maven'
name = ''
desc = ''
licenses = ['Apache-2.0']
websiteUrl = ''
vcsUrl = ''
version {
name = '1.0'
vcsTag = '1.0'
released = new Date()
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
}
}
}
은 그 때 나는 gradlew bintrayUpload를 실행하고는 bintray에 업로드되어 있지만, jar 파일은 단지 META-INF 폴더, 아니 클래스 파일이 포함되어 있습니다.