|
| 1 | +plugins { |
| 2 | + id "com.jfrog.bintray" version "1.7.3" |
| 3 | +} |
| 4 | + |
1 | 5 | apply plugin: 'java' |
2 | 6 | apply plugin: 'maven' |
3 | | -apply plugin: 'signing' |
4 | | -apply plugin: 'idea' |
5 | 7 |
|
6 | 8 | group = 'net.sargue' |
7 | 9 | archivesBaseName = 'java-time-jsptags' |
8 | | -version = '1.1.2' |
9 | | - |
10 | | -def NEXUS_USERNAME = hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : '' |
11 | | -def NEXUS_PASSWORD = hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : '' |
| 10 | +version = '1.1.3' |
12 | 11 |
|
13 | 12 | sourceCompatibility = 1.8 |
14 | 13 | compileJava.options.encoding = 'UTF-8' |
15 | 14 | compileTestJava.options.encoding = 'UTF-8' |
16 | 15 |
|
17 | 16 | repositories { |
18 | | - mavenCentral() |
| 17 | + jcenter() |
19 | 18 | } |
20 | 19 |
|
21 | 20 | configurations { |
@@ -52,49 +51,53 @@ artifacts { |
52 | 51 | archives javadocJar, sourcesJar |
53 | 52 | } |
54 | 53 |
|
55 | | -signing { |
56 | | - sign configurations.archives |
57 | | -} |
58 | | - |
59 | | -uploadArchives { |
60 | | - repositories { |
61 | | - mavenDeployer { |
62 | | - beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } |
63 | | - |
64 | | - repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { |
65 | | - authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) |
66 | | - } |
67 | | - |
68 | | - snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { |
69 | | - authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) |
| 54 | +install { |
| 55 | + repositories.mavenInstaller { |
| 56 | + pom.project { |
| 57 | + name 'Java 8 java.time JSP tags' |
| 58 | + description 'JSP tag support for Java 8 java.time (JSR-310)' |
| 59 | + url 'https://github.com/sargue/java-time-jsptags' |
| 60 | + |
| 61 | + scm { |
| 62 | + connection 'scm:git:git@github.com:sargue/java-time-jsptags.git' |
| 63 | + developerConnection 'scm:git:git@github.com:sargue/java-time-jsptags.git' |
| 64 | + url 'git@github.com:sargue/java-time-jsptags.git' |
70 | 65 | } |
71 | 66 |
|
72 | | - pom.project { |
73 | | - name 'Java 8 java.time JSP tags' |
74 | | - packaging 'jar' |
75 | | - description 'JSP tag support for Java 8 java.time (JSR-310)' |
76 | | - url 'https://github.com/sargue/java-time-jsptags' |
77 | | - |
78 | | - scm { |
79 | | - connection 'scm:git:git@github.com:sargue/java-time-jsptags.git' |
80 | | - developerConnection 'scm:git:git@github.com:sargue/java-time-jsptags.git' |
81 | | - url 'git@github.com:sargue/java-time-jsptags.git' |
| 67 | + licenses { |
| 68 | + license { |
| 69 | + name 'The Apache License, Version 2.0' |
| 70 | + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' |
82 | 71 | } |
| 72 | + } |
83 | 73 |
|
84 | | - licenses { |
85 | | - license { |
86 | | - name 'The Apache License, Version 2.0' |
87 | | - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' |
88 | | - } |
| 74 | + developers { |
| 75 | + developer { |
| 76 | + id 'sargue' |
| 77 | + name 'Sergi Baila' |
| 78 | + email 'sargue@gmail.com' |
89 | 79 | } |
| 80 | + } |
| 81 | + } |
| 82 | + } |
| 83 | +} |
90 | 84 |
|
91 | | - developers { |
92 | | - developer { |
93 | | - id 'sargue' |
94 | | - name 'Sergi Baila' |
95 | | - email 'sargue@gmail.com' |
96 | | - } |
97 | | - } |
| 85 | +bintray { |
| 86 | + user = project.hasProperty('BINTRAY_USER') ? BINTRAY_USER : '' |
| 87 | + key = project.hasProperty('BINTRAY_KEY') ? BINTRAY_KEY : '' |
| 88 | + configurations = ['archives'] |
| 89 | + pkg { |
| 90 | + repo = 'maven' |
| 91 | + name = 'net.sargue:java-time-jsptags' |
| 92 | + licenses = ['Apache-2.0'] |
| 93 | + vcsUrl = 'https://github.com/sargue/java-time-jsptags' |
| 94 | + version { |
| 95 | + name = project.version |
| 96 | + desc = 'JSP tag support for Java 8 java.time (JSR-310)' |
| 97 | + |
| 98 | + gpg { |
| 99 | + sign = true |
| 100 | + passphrase = project.hasProperty('BINTRAY_GPG') ? BINTRAY_GPG : '' |
98 | 101 | } |
99 | 102 | } |
100 | 103 | } |
|
0 commit comments