|
1 | 1 | plugins {
|
2 |
| - id 'com.github.hierynomus.license' version '0.14.0' |
| 2 | + id 'biz.aQute.bnd.builder' version '4.1.0' |
3 | 3 | id 'com.github.ben-manes.versions' version '0.20.0'
|
4 |
| - id 'net.researchgate.release' version '2.8.0' |
| 4 | + id 'com.github.hierynomus.license' version '0.14.0' |
5 | 5 | id 'com.github.kt3k.coveralls' version '2.8.2'
|
| 6 | + id 'net.researchgate.release' version '2.8.0' |
6 | 7 | id 'org.sonarqube' version '2.6.2'
|
7 | 8 | }
|
8 | 9 |
|
9 | 10 | apply plugin: 'maven'
|
10 |
| -apply plugin: 'osgi' |
| 11 | +apply plugin: 'biz.aQute.bnd.builder' |
11 | 12 | apply plugin: 'java-library'
|
12 | 13 | apply plugin: 'maven-publish'
|
13 | 14 | apply plugin: 'signing'
|
|
25 | 26 | moduleName = 'org.trellisldp.camel'
|
26 | 27 | vendor = 'Trellis LDP'
|
27 | 28 | homepage = 'https://www.trellisldp.org'
|
28 |
| - docURL = 'https://trellis-ldp.github.io/trellis/apidocs/' |
| 29 | + docURL = 'https://trellis-ldp.github.io/camel-ldp/' |
29 | 30 | license = 'Apache 2'
|
30 | 31 |
|
31 | 32 | /* Dependencies */
|
|
85 | 86 | from ("$rootDir/LICENSE") {
|
86 | 87 | into "META-INF"
|
87 | 88 | }
|
88 |
| - manifest { |
89 |
| - description project.description |
90 |
| - docURL project.docURL |
91 |
| - vendor project.vendor |
92 |
| - license project.license |
93 |
| - |
94 |
| - instruction 'Automatic-Module-Name', moduleName |
95 |
| - instruction 'Import-Package', '*' |
96 |
| - instruction 'Export-Package', "${moduleName};version=${projectOsgiVersion}" |
97 |
| - } |
98 | 89 | }
|
99 | 90 |
|
100 | 91 | task sourceJar(type: Jar) {
|
@@ -213,7 +204,7 @@ processResources {
|
213 | 204 | }
|
214 | 205 |
|
215 | 206 | signing {
|
216 |
| - required { !version.endsWith("SNAPSHOT") && gradle.taskGraph.hasTask("uploadArchives") } |
| 207 | + required { !version.endsWith("SNAPSHOT") && gradle.taskGraph.hasTask("publish") } |
217 | 208 | sign publishing.publications
|
218 | 209 | }
|
219 | 210 |
|
@@ -257,7 +248,7 @@ task docs(type: Javadoc) {
|
257 | 248 | outputs.upToDateWhen { false }
|
258 | 249 | source sourceSets.main.allJava
|
259 | 250 | classpath = files(sourceSets.main.compileClasspath)
|
260 |
| - destinationDir = new File(projectDir, "docs/${version}") |
| 251 | + destinationDir = new File(projectDir, "docs") |
261 | 252 | options {
|
262 | 253 | links "http://docs.oracle.com/javase/8/docs/api/"
|
263 | 254 | }
|
|
0 commit comments