Skip to content

Commit

Permalink
Remove the jcenter setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
alighters committed Apr 7, 2016
1 parent 2e6e66e commit 6b452c6
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 76 deletions.
149 changes: 73 additions & 76 deletions cubegridlibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,81 +26,78 @@ dependencies {
}


def siteUrl = 'https://github.com/david-wei/CubeGrid' // project homepage
def gitUrl = 'https://github.com/david-wei/CubeGrid.git'

group = "com.lighters.cubegrid"

// 根节点添加
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
name 'Cube Grid Animation For Android'
url siteUrl
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'david-wei'
name 'lighters'
email 'huangdiv5@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))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

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 = "cubegrid" // project name in jcenter
desc = "Cube Grid Animation for Android"
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
labels = ['android']
publish = true
publicDownloadNumbers = true
}
}
//def siteUrl = 'https://github.com/david-wei/CubeGrid' // project homepage
//def gitUrl = 'https://github.com/david-wei/CubeGrid.git'
//
//group = "com.lighters.cubegrid"
//
//// 根节点添加
//install {
// repositories.mavenInstaller {
// // This generates POM.xml with proper parameters
// pom {
// project {
// packaging 'aar'
// name 'Cube Grid Animation For Android'
// url siteUrl
// licenses {
// license {
// name 'The Apache Software License, Version 2.0'
// url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
// }
// }
// developers {
// developer {
// id 'david-wei'
// name 'lighters'
// email 'huangdiv5@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))
//}
//
//task javadocJar(type: Jar, dependsOn: javadoc) {
// classifier = 'javadoc'
// from javadoc.destinationDir
//}
//
//artifacts {
// archives javadocJar
// archives sourcesJar
//}
//
//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 = "maven"
// name = "cubegrid" // project name in jcenter
// desc = "Cube Grid Animation for Android"
// websiteUrl = siteUrl
// vcsUrl = gitUrl
// licenses = ["Apache-2.0"]
// labels = ['android']
// publish = true
// publicDownloadNumbers = true
// }
//}


2 changes: 2 additions & 0 deletions cubegridlibrary/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
bintrayApiKey=83786068c157a7bb9621c4e06e57a1ec6e8d7b3c
bintrayUser=david-wei

0 comments on commit 6b452c6

Please sign in to comment.