Skip to content

Commit

Permalink
删除无用依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
Brioal committed Aug 16, 2016
1 parent ee82baa commit 758dd62
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-beta1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'

classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -22,3 +22,6 @@ allprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}



12 changes: 0 additions & 12 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,3 @@ org.gradle.jvmargs=-Xmx1536m
# 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
PROJ_GROUP=com.brioal
PROJ_VERSION=1.0
PROJ_NAME=SwipeMenu
PROJ_WEBSITEURL=https://github.com/Brioal/SwipeMenuDemo
PROJ_ISSUETRACKERURL=https://github.com/Brioal/SwipeMenuDemo/issues
PROJ_VCSURL=https://github.com/Brioal/SwipeMenuDemo.git
PROJ_DESCRIPTION=A SwipeMenu which contains much animation style for user
PROJ_ARTIFACTID=SwipeMenu

DEVELOPER_ID=Brioal
DEVELOPER_NAME=JunHuang
DEVELOPER_EMAIL=[email protected]
85 changes: 82 additions & 3 deletions swipemenu/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
group='com.github.Brioal'
apply plugin: 'com.jfrog.bintray'
group = 'com.brioal'
version = '1.0'
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
Expand All @@ -10,8 +12,6 @@ android {
targetSdkVersion 24
versionCode 1
versionName "1.0"
renderscriptTargetApi 21
renderscriptSupportModeEnabled true

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand All @@ -28,3 +28,82 @@ dependencies {
compile 'com.android.support:appcompat-v7:24.1.1'
}

def siteUrl = 'https://github.com/Brioal/SwipeMenuDemo' // 项目的主页 这个是说明,可随便填
def gitUrl = 'https://github.com/Brioal/SwipeMenuDemo.git' // Git仓库的url 这个是说明,可随便填
group = "com.brioal" // 这里是groupId ,必须填写 一般填你唯一的包名

install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
// Add your description here
name 'Android BounceProgressBar Widget' //项目描述
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 'brioal' //填写开发者的一些基本信息
name 'JunHuang' //填写开发者的一些基本信息
email '[email protected]' //填写开发者的一些基本信息
}
}
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") //读取 local.properties 文件里面的 bintray.user
key = properties.getProperty("bintray.apikey") //读取 local.properties 文件里面的 bintray.apikey
configurations = ['archives']
pkg {
repo = "maven"
name = "SwipeMenu" //发布到JCenter上的项目名字,必须填写
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish = true
}
}

javadoc {
options{
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
links "http://docs.oracle.com/javase/7/docs/api"
}
}

0 comments on commit 758dd62

Please sign in to comment.