Skip to content

Commit

Permalink
chore: release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksgong committed Apr 6, 2018
1 parent f666a72 commit a7633ac
Show file tree
Hide file tree
Showing 10 changed files with 135 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .idea/modules.xml

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

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### 1.0.0

_2018-04-06_

- First blood!
1 change: 1 addition & 0 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
![][okdownload_svg]
[![][build_status_svg]][build_status_link]
[![codecov](https://codecov.io/gh/lingochamp/okdownload/branch/master/graph/badge.svg)](https://codecov.io/gh/lingochamp/okdownload)
[ ![Download](https://api.bintray.com/packages/jacksgong/maven/OkDownload/images/download.svg) ](https://bintray.com/jacksgong/maven/OkDownload/_latestVersion)

> [ENGLISH](https://github.com/lingochamp/okdownload)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ A Reliable, Flexible, Fast and Powerful download engine.
![][okdownload_svg]
[![][build_status_svg]][build_status_link]
[![codecov](https://codecov.io/gh/lingochamp/okdownload/branch/master/graph/badge.svg)](https://codecov.io/gh/lingochamp/okdownload)
[ ![Download](https://api.bintray.com/packages/jacksgong/maven/OkDownload/images/download.svg) ](https://bintray.com/jacksgong/maven/OkDownload/_latestVersion)

> [中文文档](https://github.com/lingochamp/okdownload/blob/master/README-zh.md)
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.30"
}
}
Expand Down
7 changes: 4 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ org.gradle.jvmargs=-Xmx1536m
# org.gradle.parallel=true

GROUP=com.liulishuo.okdownload
VERSION_NAME=1.0.0-SNAPSHOT
VERSION_NAME=1.0.0

POM_URL=https://github.com/Jacksgong/okdownload/
POM_SCM_URL=https://github.com/Jacksgong/okdownload/
POM_URL=https://github.com/lingochamp/okdownload/
ISSUE_URL=https://github.com/lingochamp/okdownload/issues/
POM_SCM_URL=https://github.com/lingochamp/okdownload/
POM_SCM_CONNECTION=scm:git:git://github.com/lingochamp/okdownload.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/lingochamp/okdownload.git

Expand Down
107 changes: 107 additions & 0 deletions gradle/bintray.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/*
* Copyright (c) 2018 LingoChamp Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


apply plugin: 'com.jfrog.bintray'

afterEvaluate { project ->
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.srcDirs
options {
charSet = 'UTF-8'
links "http://docs.oracle.com/javase/7/docs/api/"
linksOffline "http://d.android.com/reference", System.getenv("ANDROID_HOME") + "/docs/reference"
}
classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

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

artifacts {
archives javadocJar
archives sourcesJar
}
}


def getBintrayUser() {
return hasProperty('BINTRAY_USER') ? BINTRAY_USER : ""
}

def getBintrayGPGPassword() {
return hasProperty('BINTRAY_GPG_PASSWORD') ? BINTRAY_GPG_PASSWORD : ""
}

def getBintrayApiKey() {
return hasProperty('BINTRAY_API_KEY') ? BINTRAY_API_KEY : ""
}

def getSonatypeUsername() {
return hasProperty('SONATYPE_NEXUS_USERNAME') ? SONATYPE_NEXUS_USERNAME : ""
}

def getSonatypePassword() {
return hasProperty('SONATYPE_NEXUS_PASSWORD') ? SONATYPE_NEXUS_PASSWORD : ""
}
version = VERSION_NAME

bintray {
user = getBintrayUser()
key = getBintrayApiKey()

// publish = true //[Default: false] Whether version should be auto published after an upload
// override = false //[Default: false] Whether to override version artifacts already published

configurations = ['archives']
pkg {
repo = "maven"
name = POM_NAME
desc = POM_DESCRIPTION
websiteUrl = POM_URL
issueTrackerUrl = ISSUE_URL
vcsUrl = POM_SCM_URL
licenses = ["Apache-2.0"]
publish = true
publicDownloadNumbers = true

githubRepo = POM_URL
githubReleaseNotesFile = 'README.md'

version {
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
passphrase = getBintrayGPGPassword()
}

mavenCentralSync {
sync = true
user = getSonatypeUsername()
password = getSonatypePassword()
close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
}
}
}
}
1 change: 1 addition & 0 deletions gradle/gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
apply plugin: 'maven'
apply plugin: 'signing'
apply from: '../gradle/gradle-mavenlocal.gradle'
apply from: '../gradle/bintray.gradle'

version = VERSION_NAME
group = GROUP
Expand Down
2 changes: 1 addition & 1 deletion okdownload-connection-okhttp/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
#

POM_ARTIFACT_ID=okhttp
POM_NAME=OkDownload-okhttp
POM_NAME=OkDownload-OkHttp
POM_DESCRIPTION=A okhttp support for OkDownload
POM_PACKAGING=aar
8 changes: 7 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
rootProject.name = 'okdownload-root'

include ':okdownload', ':okdownload-process', ':okdownload-connection-okhttp', ':okdownload-breakpoint-sqlite', ':okdownload-kotlin-enhance', ':benchmark', ':okdownload-filedownloader', 'sample'
include ':okdownload', ':process', ':okhttp', ':sqlite', ':kotlin', ':benchmark', ':filedownloader', 'sample'

project(':process').projectDir = new File(settingsDir, 'okdownload-process')
project(':okhttp').projectDir = new File(settingsDir, 'okdownload-connection-okhttp')
project(':sqlite').projectDir = new File(settingsDir, 'okdownload-breakpoint-sqlite')
project(':kotlin').projectDir = new File(settingsDir, 'okdownload-kotlin-enhance')
project(':filedownloader').projectDir = new File(settingsDir, 'okdownload-filedownloader')

0 comments on commit a7633ac

Please sign in to comment.