|
1 | | -plugins { |
2 | | - id "com.jfrog.bintray" version "1.8.5" |
3 | | - id 'java-library' |
4 | | - id 'maven' |
5 | | - id 'maven-publish' |
6 | | -} |
7 | | - |
8 | | - |
9 | | -def pomConfig = { |
10 | | - licenses { |
11 | | - license { |
12 | | - name "The Apache Software License, Version 2.0" |
13 | | - url "http://www.apache.org/licenses/LICENSE-2.0.txt" |
14 | | - distribution "repo" |
15 | | - } |
16 | | - } |
17 | | - developers { |
18 | | - developer { |
19 | | - id "danielbustamante" |
20 | | - name "Daniel Bustamante Ospina" |
21 | | - email "danibust@bancolombia.com.co" |
22 | | - } |
23 | | - } |
24 | | - |
25 | | - scm { |
26 | | - url "git@github.com:reactive-commons/reactive-commons-java.git" |
27 | | - } |
28 | | -} |
29 | | - |
30 | | -publishing { |
31 | | - publications { |
32 | | - MyPublication(MavenPublication) { |
33 | | - from components.java |
34 | | - artifact sourcesJar { |
35 | | - classifier "sources" |
36 | | - } |
37 | | - artifact javadocJar { |
38 | | - classifier "javadoc" |
39 | | - } |
40 | | - groupId 'org.reactivecommons' |
41 | | - artifactId 'async-rabbit' |
42 | | - version project.property('version') |
43 | | - pom.withXml { |
44 | | - def root = asNode() |
45 | | - root.appendNode('description', 'Async Commons') |
46 | | - root.appendNode('name', 'async-rabbit') |
47 | | - root.appendNode('url', 'https://site_for_lib.tld') |
48 | | - root.children().last() + pomConfig |
49 | | - } |
50 | | - } |
51 | | - } |
52 | | -} |
53 | | - |
54 | | -bintray { |
55 | | - user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER') |
56 | | - key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY') |
57 | | - publications = ['MyPublication'] |
58 | | - publish = true |
59 | | - pkg { |
60 | | - repo = 'maven-artifacts' |
61 | | - userOrg = 'reactive-commons' |
62 | | - name = 'reactive-commons' |
63 | | - licenses = ['Apache-2.0'] |
64 | | - vcsUrl = 'git@github.com:reactive-commons/reactive-commons-java.git' |
65 | | - version { |
66 | | - name = project.property('version') |
67 | | - desc = 'First version' |
68 | | - released = new Date() |
69 | | - vcsTag = project.property('version') |
70 | | - } |
71 | | - } |
| 1 | +ext { |
| 2 | + artifactId = 'async-rabbit' |
| 3 | + artifactDescription = 'Async Rabbit' |
72 | 4 | } |
73 | 5 |
|
74 | 6 | dependencies { |
|
0 commit comments