-
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.
Merge pull request #30 from massivedisaster/release/0.1.0
Release/0.1.0
- Loading branch information
Showing
17 changed files
with
505 additions
and
109 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
#*.jar | ||
*.war | ||
*.ear | ||
*.zip | ||
|
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,38 +1,42 @@ | ||
Bintray deploy automator | ||
=============== | ||
This project is a tool to publish artifacts to Bintray for gradle projects with multiple modules that use [Gradle Bintray Plugin](https://github.com/bintray/gradle-bintray-plugin). | ||
|
||
Usage | ||
----- | ||
With this automator you just have to create a configuration file like the one below, build the jar and run it. It will clean and build your project and then for each module will run `bintrayUpload` task. | ||
At the end if no errors occurred it will run the extra tasks from configuration. | ||
|
||
Configuration | ||
------------- | ||
### Install | ||
Run `jar` task from gradle and create configuration file. | ||
|
||
### How to run | ||
`java -jar BintrayDeployAutomator.jar -u Username -k Key` | ||
|
||
### Configuration file (configuration.json) | ||
The configuration file must be named `configuration.json`. | ||
```js | ||
// The json configuration | ||
# Bintray deploy automator | ||
|
||
This tool to publish artifacts to Bintray for gradle projects with multiple modules that use [Gradle Bintray Plugin](https://github.com/bintray/gradle-bintray-plugin) or [Novoda Bintray Release](https://github.com/novoda/bintray-release). | ||
|
||
## How it works | ||
|
||
Bintray deploy automator clean and build your project's modules and then for each module will run `bintrayUpload` task. At the end if no errors occurred it will run the extra tasks. | ||
|
||
## How to run | ||
|
||
1. Create a configuration file named `configuration.json` like the one below. | ||
|
||
``` | ||
{ | ||
"basePath": "./project", // The path of your project | ||
"version": "0.1.9", // The new version of project to be uploaded | ||
"version": "0.1.0", // The new version of project to be uploaded | ||
// The list of modules to be uploaded to the bintray | ||
"modules": [ | ||
"module-1", | ||
"module-2", | ||
"module-3" | ||
], | ||
// Extra tasks | ||
"extraTasks": [ | ||
"task-1", | ||
"module-1:task-2" | ||
] | ||
} | ||
``` | ||
|
||
2. Download the latest [release](https://github.com/massivedisaster/bintray-deploy-automator/releases). | ||
3. Execute `java -jar BintrayDeployAutomator-0.1.0.jar -u Username -k Key` | ||
|
||
### Generate release JAR | ||
|
||
Run `jar` task from gradle. | ||
|
||
* Linux/macOS: `./gradlew jar` | ||
* Windows: `gradlew.bat jar` | ||
|
||
### License | ||
|
||
[MIT LICENSE](LICENSE.md) |
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
Binary file not shown.
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
49 changes: 49 additions & 0 deletions
49
src/main/java/com/massivedisaster/bintraydeployautomator/model/Arguments.java
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,49 @@ | ||
package com.massivedisaster.bintraydeployautomator.model; | ||
|
||
public class Arguments { | ||
|
||
private String mUser; | ||
private String mKey; | ||
private boolean isVerbose; | ||
private String mLogFile; | ||
|
||
public Arguments(String user, String key, boolean verbose, String logFile) { | ||
mUser = user; | ||
mKey = key; | ||
isVerbose = verbose; | ||
mLogFile = logFile; | ||
} | ||
|
||
public String getUser() { | ||
return mUser; | ||
} | ||
|
||
public void setUser(String user) { | ||
this.mUser = user; | ||
} | ||
|
||
public String getKey() { | ||
return mKey; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.mKey = key; | ||
} | ||
|
||
public boolean isVerbose() { | ||
return isVerbose; | ||
} | ||
|
||
public void setVerbose(boolean verbose) { | ||
isVerbose = verbose; | ||
} | ||
|
||
public String getLogFile() { | ||
return mLogFile; | ||
} | ||
|
||
public void setLogFile(String logFile) { | ||
this.mLogFile = logFile; | ||
} | ||
|
||
} |
Oops, something went wrong.