-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gradle Publish refactor, now supports jcenter and configuration by Sy…
…stem.env
- Loading branch information
Showing
16 changed files
with
114 additions
and
24 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
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,2 @@ | ||
json_key_file "" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one | ||
package_name "io.vithor.frameworks.yaf" # e.g. com.krausefx.app |
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,55 @@ | ||
# Customise this file, documentation can be found here: | ||
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs | ||
# All available actions: https://docs.fastlane.tools/actions | ||
# can also be listed using the `fastlane actions` command | ||
|
||
# Change the syntax highlighting to Ruby | ||
# All lines starting with a # are ignored when running `fastlane` | ||
|
||
# If you want to automatically update fastlane if a new version is available: | ||
# update_fastlane | ||
|
||
# This is the minimum version number required. | ||
# Update this, if you use features of a newer version | ||
fastlane_version "2.35.1" | ||
|
||
default_platform :android | ||
|
||
platform :android do | ||
before_all do | ||
# ENV["SLACK_URL"] = "https://hooks.slack.com/services/..." | ||
end | ||
|
||
desc "Runs all the tests" | ||
lane :test do | ||
gradle(task: "test") | ||
end | ||
|
||
desc "Deploy a new version to the jCenter" | ||
lane :deploy_jcenter do | ||
gradle(task: "assembleRelease") | ||
gradle(task: "bintrayUpload") | ||
end | ||
|
||
after_all do |lane| | ||
# This block is called, only if the executed lane was successful | ||
|
||
# slack( | ||
# message: "Successfully deployed new Update." | ||
# ) | ||
end | ||
|
||
error do |lane, exception| | ||
# slack( | ||
# message: exception.message, | ||
# success: false | ||
# ) | ||
end | ||
end | ||
|
||
|
||
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md | ||
# All available actions: https://docs.fastlane.tools/actions | ||
|
||
# fastlane reports which actions are used. No personal data is recorded. | ||
# Learn more at https://github.com/fastlane/fastlane#metrics |
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 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 |
---|---|---|
|
@@ -11,4 +11,3 @@ dependencies { | |
} | ||
} | ||
|
||
apply from: new File("${rootProject.projectDir}/publish.gradle") |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
bintray { | ||
user = System.getenv('BINTRAY_USER') | ||
key = System.getenv('BINTRAY_API_KEY') | ||
|
||
if (user == null || key == null) { | ||
throw IllegalStateException("Bintray User and API Key must be provided when BINTRAY env is defined.") | ||
} | ||
|
||
publications = [POM_ARTIFACT_ID] | ||
|
||
pkg { | ||
repo = 'maven' | ||
name = 'yaf' | ||
licenses = ['Apache-2.0'] | ||
vcsUrl = 'https://github.com/Hazer/YAFramework.git' | ||
version { | ||
name = VERSION_NAME | ||
released = new Date() | ||
vcsTag = VERSION_NAME | ||
} | ||
} | ||
} |
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,17 @@ | ||
afterEvaluate { | ||
publishing.repositories { | ||
mavenLocal() | ||
|
||
// if (PUBLISH_TO == "GUIZION") { | ||
// maven { | ||
// url "s3://guizion-artfactory/" | ||
// credentials(AwsCredentials) { | ||
// accessKey "${guizion_aws_accessid}" | ||
// secretKey "${guizion_aws_accesskey}" | ||
// } | ||
// } | ||
// } else { | ||
// mavenLocal() | ||
// } | ||
} | ||
} |
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 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