Skip to content

Commit

Permalink
更新1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuhao committed Apr 3, 2021
1 parent 50539f4 commit 8a37f04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 106 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "spa.lyh.cn.timeworkselector"
minSdkVersion 19
Expand Down
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
105 changes: 3 additions & 102 deletions time-work-selector/build.gradle
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 {
Expand All @@ -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"
}
}
}

0 comments on commit 8a37f04

Please sign in to comment.