-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #247 from sangcomz/release/1.1.0-alpha06
Release/1.1.0 alpha06
- Loading branch information
Showing
8 changed files
with
139 additions
and
154 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -24,10 +24,10 @@ jobs: | |
- name: Android Emulator Runner | ||
# You may pin to the exact commit or the version. | ||
# uses: ReactiveCircus/android-emulator-runner@e08f702234bdc95883c7fd5c7d2867ccf1a8463b | ||
uses: ReactiveCircus/android-emulator-runner@v2.13.0 | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
# API level of the platform and system image - e.g. 23 for Android Marshmallow, 29 for Android 10 | ||
api-level: 25 | ||
api-level: 29 | ||
script: ./gradlew connectedCheck connectedAndroidTest | ||
- name: Codecov | ||
uses: codecov/[email protected] |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,106 @@ | ||
apply plugin: "maven-publish" | ||
apply plugin: "signing" | ||
|
||
group = "io.github.sangcomz" | ||
version = gradle.versionName | ||
archivesBaseName = "fishbun" | ||
|
||
def siteUrl = 'https://github.com/sangcomz/FishBun' // Homepage URL of the library | ||
def gitUrl = 'https://github.com/sangcomz/FishBun.git' // Git repository URL | ||
|
||
afterEvaluate { | ||
|
||
task sourceJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
archiveClassifier.set("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) { | ||
archiveClassifier.set("javadoc") | ||
from javadoc.destinationDir | ||
} | ||
|
||
// https://docs.gradle.org/current/userguide/publishing_maven.html | ||
publishing { | ||
publications { | ||
// Creates a Maven publication called "release". | ||
release(MavenPublication) { | ||
groupId group | ||
artifactId archivesBaseName | ||
version version | ||
|
||
if (project.plugins.findPlugin("com.android.library")) { | ||
from components.release | ||
} else { | ||
from components.java | ||
} | ||
artifact sourceJar | ||
artifact javadocJar | ||
|
||
pom { | ||
name = archivesBaseName | ||
description = 'FishBun is a highly customizable image picker for Android.' | ||
url = siteUrl | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'sangcomz' | ||
name = 'Swokwon Jeong' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
url = gitUrl | ||
} | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
if (version.endsWith("-SNAPSHOT")) { | ||
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/" | ||
} else { | ||
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
} | ||
credentials { | ||
username ossrhUsername | ||
password ossrhPassword | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) | ||
sign publishing.publications.release | ||
} | ||
|
||
javadoc { | ||
if (JavaVersion.current().isJava9Compatible()) { | ||
options.addBooleanOption('html5', true) | ||
} | ||
} | ||
} | ||
|
||
github { | ||
owner = 'sangcomz' | ||
repo = 'Fishbun' | ||
token = githubAccessTokens | ||
tagName = version | ||
targetCommitish = 'master' | ||
body = """## Release Note | ||
* upload artifact to maven central | ||
""" | ||
name = version | ||
} |
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 +1 @@ | ||
./gradlew clean bintrayUpload githubRelease | ||
./gradlew clean fishbun:publishAllPublicationsToMavenRepository githubRelease |
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,8 +1,8 @@ | ||
include ':FishBunDemo', ':FishBun' | ||
|
||
gradle.ext.versionCode = 33 | ||
gradle.ext.versionName = '1.0.0-alpha05' | ||
gradle.ext.versionCode = 34 | ||
gradle.ext.versionName = '1.0.0-alpha06' | ||
|
||
gradle.ext.set('minSdk', 15) | ||
gradle.ext.set('targetSdk', 30) | ||
gradle.ext.set('compileSdk', 30) | ||
gradle.ext.set('compileSdk', 30) |