Skip to content

Commit

Permalink
Merge pull request #16 from Azhrei/1.4.1-dev
Browse files Browse the repository at this point in the history
Added pom for Maven support
  • Loading branch information
Azhrei authored Mar 14, 2018
2 parents bde0c62 + 38d8eae commit 5f8605a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 37 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.gradle
build/

# Build artifacts used for bintray/maven deployment
package/bintray.deploy.json
package/*-*.pom

# OS generated files
################################################################################
.DS_Store
Expand Down
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,13 @@ version = getVersionName()
task createBintrayDeploymentDescription(type: Copy) {
from 'package'
into 'package'
include 'template.deploy.json'
rename { String filename -> filename.replace('template', 'bintray') }

include 'template.deploy.json', 'template.pom'
rename {
String filename ->
filename.endsWith('.pom')
? filename.replace('template', project.name+'-'+version)
: filename.replace('template', 'bintray')
}
// Use some of the filters provided by Ant
filter(ReplaceTokens, tokens: [
NAME: project.name,
Expand Down
32 changes: 0 additions & 32 deletions package/bintray.deploy.json

This file was deleted.

11 changes: 9 additions & 2 deletions package/template.deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@
},

"files":
[ {
[
{
"includePattern": "build/libs/(.*\\.jar)",
"uploadPattern": "$1",
"matrixParams": { "override": true }
} ],
},
{
"includePattern": "package/bintray.pom",
"uploadPattern": "@NAME@-@VERSION@.pom",
"matrixParams": { "override": true }
}
],

"publish": true
}
6 changes: 6 additions & 0 deletions package/template.pom
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<dependency>
<groupId>net.rptools.@NAME@</groupId>
<artifactId>@NAME@</artifactId>
<version>@VERSION@</version>
<type>pom</type>
</dependency>

0 comments on commit 5f8605a

Please sign in to comment.