-
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
liyuhao
committed
Apr 3, 2021
1 parent
50539f4
commit 8a37f04
Showing
3 changed files
with
5 additions
and
106 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
android { | ||
compileSdkVersion 30 | ||
buildToolsVersion "30.0.2" | ||
|
||
defaultConfig { | ||
minSdkVersion 19 | ||
targetSdkVersion 30 | ||
versionCode 9 | ||
versionName "1.1.3" | ||
versionCode 10 | ||
versionName "1.1.4" | ||
} | ||
buildTypes { | ||
release { | ||
|
@@ -22,101 +20,4 @@ android { | |
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
} | ||
|
||
def siteUrl = 'https://github.com/liyuhaolol/TimeWorkSelector' | ||
|
||
def gitUrl = 'https://github.com/liyuhaolol/TimeWorkSelector.git' | ||
|
||
def libName = 'TimeWorkSelector' | ||
|
||
group = "spa.lyh.cn" | ||
|
||
version = "1.1.3" | ||
|
||
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 | ||
} | ||
|
||
task copyDoc(type: Copy) { | ||
from "${buildDir}/docs/" | ||
into "docs" | ||
} | ||
|
||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
install{ | ||
repositories.mavenInstaller{ | ||
// This generates POM.xml with proper parameters | ||
pom{ | ||
project{ | ||
packaging 'aar' | ||
name 'time selector' | ||
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 'liyuhao' | ||
name 'liyuhao' | ||
email '[email protected]' | ||
} | ||
} | ||
scm{ | ||
connection gitUrl | ||
developerConnection gitUrl | ||
url siteUrl | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
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' | ||
//userOrg = 'lehaha' | ||
name = libName | ||
desc = 'time selector' | ||
websiteUrl = siteUrl | ||
vcsUrl = gitUrl | ||
licenses = ["Apache-2.0"] | ||
publish = true | ||
} | ||
} | ||
|
||
javadoc { | ||
options{ | ||
//如果你的项目里面有中文注释的话,必须将格式设置为UTF-8,不然会出现乱码 | ||
encoding "UTF-8" | ||
charSet 'UTF-8' | ||
author true | ||
version true | ||
links "http://docs.oracle.com/javase/7/docs/api" | ||
} | ||
} | ||
} |