Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
powyin committed Jun 22, 2021
1 parent 14b614a commit 0675b83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 78 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:design:26.0.0'
implementation 'com.android.support:design:27.1.1'
implementation project(path: ':scroll')
// or
// compile 'com.github.powyin:scroll:3.2.7'
Expand Down
78 changes: 1 addition & 77 deletions scroll/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "3.2.9"

android {

Expand All @@ -25,81 +21,9 @@ android {
}

dependencies {
implementation 'com.android.support:recyclerview-v7:26.0.0'
}

def siteUrl = 'https://github.com/powyin/refresh' // 项目的主页
def gitUrl = 'git@github.com:powyin/refresh.git' // Git仓库的url
group = 'com.github.powyin' // Maven Group ID for the artifact,一般填你唯一的包名

install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
// Add your description here
name 'android swipeRefresh' //项目的描述 你可以多写一点
url siteUrl
// Set your license
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'powyin' //填写的一些基本信息
name 'yinhaoxiang'
email 'haoxiangyin@gmail.com'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
options.encoding = "UTF-8"
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
implementation 'com.android.support:recyclerview-v7:27.1.1'
}

artifacts {
archives javadocJar
archives sourcesJar
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
pkg {
repo = "maven"
name = "nest-scroll" //发布到JCenter上的项目名字
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish = true
}
}



Expand Down

0 comments on commit 0675b83

Please sign in to comment.