-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gradle build script, added script to create maven artifacts
- Loading branch information
Showing
5 changed files
with
31 additions
and
13 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,29 @@ | ||
#!/bin/bash | ||
|
||
#: Generates Maven artifacts for jwiki. | ||
#: | ||
#: PRECONDITION: gradle build succeeded. Minimum gradle version >= 3.0 | ||
#: | ||
#: Tested on OS X 10.11.6 | ||
#: Author: Fastily | ||
|
||
version="1.2.1" | ||
name="jwiki" | ||
outputDir="build/artifacts" | ||
|
||
cd "${0%/*}" | ||
mkdir -p "$outputDir" | ||
|
||
## Copy sources | ||
jar cf "${outputDir}/${name}-${version}-sources.jar" -C "src/main/java/" . | ||
|
||
## Copy javadocs | ||
jar cf "${outputDir}/${name}-${version}-javadoc.jar" -C "build/docs/javadoc/" . | ||
|
||
## Copy compiled files | ||
cp build/libs/*.jar "$outputDir" | ||
|
||
## Copy generated pom | ||
cp "build/pom.xml" "${outputDir}/${name}-${version}.pom" | ||
|
||
printf "Done!\n" |
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 @@ | ||
/* | ||
// To declare projects as part of a multi-project build use the 'include' method | ||
include 'shared' | ||
include 'api' | ||
include 'services:webservice' | ||
*/ | ||
|
||
rootProject.name = 'jwiki' |