forked from H07000223/FlycoTabLayout
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
90 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
//apply plugin: 'com.github.dcendents.android-maven' | ||
//apply plugin: 'com.jfrog.bintray' | ||
|
||
// 这个version是区分library版本的,因此当我们需要更新library时记得修改这个version | ||
version = "1.3.6" | ||
|
@@ -29,89 +29,89 @@ dependencies { | |
compile 'com.flyco.roundview:FlycoRoundView_Lib:1.0.4@aar' | ||
} | ||
|
||
def siteUrl = 'https://github.com/H07000223' // 项目的主页 | ||
def gitUrl = 'https://github.com/H07000223' // Git仓库的url | ||
group = "com.flyco.tablayout" // Maven Group ID for the artifact,一般填你唯一的包名 | ||
install { | ||
repositories.mavenInstaller { | ||
// This generates POM.xml with proper parameters | ||
pom { | ||
project { | ||
packaging 'aar' | ||
// Add your description here | ||
name 'Android TabLayout Library' //项目描述 | ||
url siteUrl | ||
// Set your license | ||
licenses { | ||
license { | ||
name 'MIT' | ||
url 'http://opensource.org/licenses/MIT' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id 'H07000223' //填写的一些基本信息 | ||
name 'H07000223' | ||
email '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection gitUrl | ||
developerConnection gitUrl | ||
url siteUrl | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
classifier = 'sources' | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
} | ||
|
||
android.libraryVariants.all { variant -> | ||
println variant.javaCompile.classpath.files | ||
if (variant.name == 'release') { //我们只需 release 的 javadoc | ||
task("generate${variant.name.capitalize()}Javadoc", type: Javadoc) { | ||
// title = '' | ||
// description = '' | ||
source = variant.javaCompile.source | ||
classpath = files(variant.javaCompile.classpath.files, project.android.getBootClasspath()) | ||
options { | ||
encoding "utf-8" | ||
links "http://docs.oracle.com/javase/7/docs/api/" | ||
linksOffline "http://d.android.com/reference", "${android.sdkDirectory}/docs/reference" | ||
} | ||
exclude '**/BuildConfig.java' | ||
exclude '**/R.java' | ||
} | ||
task("javadoc${variant.name.capitalize()}Jar", type: Jar, dependsOn: "generate${variant.name.capitalize()}Javadoc") { | ||
classifier = 'javadoc' | ||
from tasks.getByName("generate${variant.name.capitalize()}Javadoc").destinationDir | ||
} | ||
artifacts { | ||
archives tasks.getByName("javadoc${variant.name.capitalize()}Jar") | ||
} | ||
} | ||
} | ||
|
||
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 = "FlycoTabLayout_Lib" //发布到JCenter上的项目名字 | ||
websiteUrl = siteUrl | ||
vcsUrl = gitUrl | ||
licenses = ["MIT"] | ||
publish = true | ||
} | ||
} | ||
//def siteUrl = 'https://github.com/H07000223' // 项目的主页 | ||
//def gitUrl = 'https://github.com/H07000223' // Git仓库的url | ||
//group = "com.flyco.tablayout" // Maven Group ID for the artifact,一般填你唯一的包名 | ||
//install { | ||
// repositories.mavenInstaller { | ||
// // This generates POM.xml with proper parameters | ||
// pom { | ||
// project { | ||
// packaging 'aar' | ||
// // Add your description here | ||
// name 'Android TabLayout Library' //项目描述 | ||
// url siteUrl | ||
// // Set your license | ||
// licenses { | ||
// license { | ||
// name 'MIT' | ||
// url 'http://opensource.org/licenses/MIT' | ||
// } | ||
// } | ||
// developers { | ||
// developer { | ||
// id 'H07000223' //填写的一些基本信息 | ||
// name 'H07000223' | ||
// email '[email protected]' | ||
// } | ||
// } | ||
// scm { | ||
// connection gitUrl | ||
// developerConnection gitUrl | ||
// url siteUrl | ||
// } | ||
// } | ||
// } | ||
// } | ||
//} | ||
// | ||
//task sourcesJar(type: Jar) { | ||
// from android.sourceSets.main.java.srcDirs | ||
// classifier = 'sources' | ||
//} | ||
// | ||
//artifacts { | ||
// archives sourcesJar | ||
//} | ||
// | ||
//android.libraryVariants.all { variant -> | ||
// println variant.javaCompile.classpath.files | ||
// if (variant.name == 'release') { //我们只需 release 的 javadoc | ||
// task("generate${variant.name.capitalize()}Javadoc", type: Javadoc) { | ||
// // title = '' | ||
// // description = '' | ||
// source = variant.javaCompile.source | ||
// classpath = files(variant.javaCompile.classpath.files, project.android.getBootClasspath()) | ||
// options { | ||
// encoding "utf-8" | ||
// links "http://docs.oracle.com/javase/7/docs/api/" | ||
// linksOffline "http://d.android.com/reference", "${android.sdkDirectory}/docs/reference" | ||
// } | ||
// exclude '**/BuildConfig.java' | ||
// exclude '**/R.java' | ||
// } | ||
// task("javadoc${variant.name.capitalize()}Jar", type: Jar, dependsOn: "generate${variant.name.capitalize()}Javadoc") { | ||
// classifier = 'javadoc' | ||
// from tasks.getByName("generate${variant.name.capitalize()}Javadoc").destinationDir | ||
// } | ||
// artifacts { | ||
// archives tasks.getByName("javadoc${variant.name.capitalize()}Jar") | ||
// } | ||
// } | ||
//} | ||
// | ||
//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 = "FlycoTabLayout_Lib" //发布到JCenter上的项目名字 | ||
// websiteUrl = siteUrl | ||
// vcsUrl = gitUrl | ||
// licenses = ["MIT"] | ||
// publish = true | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters