-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
89 lines (70 loc) · 2.34 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
plugins {
id 'java-library'
id 'maven-publish'
id 'io.codearte.nexus-staging' version '0.30.0'
id 'com.github.ben-manes.versions' version '0.46.0'
}
ext {
globalVersion = file('version.txt').text.trim()
}
allprojects {
group = 'org.pageseeder.berlioz'
version = "$globalVersion"
apply plugin: 'java-library'
apply from: "$rootDir/gradle/publish-mavencentral.gradle"
java {
withJavadocJar()
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral {
url = uri("https://maven-central.storage.googleapis.com/maven2")
}
}
jar {
manifest {
attributes 'Implementation-Vendor': 'Allette Systems',
'Implementation-Title': "$title",
'Implementation-Version': "$globalVersion"
}
}
javadoc {
// Let's package the javadoc even if there are some lint issues
options.addStringOption('Xdoclint:none', '-quiet')
// Generate better doc if we can
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
}
dependencies {
api('org.pageseeder.xmlwriter:pso-xmlwriter:1.0.4')
implementation('org.slf4j:slf4j-api:2.0.7')
compileOnly('javax.servlet:javax.servlet-api:3.1.0'){
because 'This is provided by the Servlet container'
}
// NB Only one of the JSON libs is required
compileOnly('com.fasterxml.jackson.core:jackson-core:2.15.0') {
because 'This is an optional dependencies for JSON output using Jackson'
}
compileOnly('com.google.code.gson:gson:2.10.1') {
because 'This is an optional dependencies for JSON output using Google JSON library'
}
compileOnly('javax.json:javax.json-api:1.1.4') {
because 'These is an optional dependencies for JSON output using implementations of JSR 374'
}
compileOnly('org.eclipse.jdt:org.eclipse.jdt.annotation:2.0.0') {
because 'This used for Null safety and better interop with Kotlin'
}
testImplementation('junit:junit:4.13.2')
testImplementation('org.slf4j:slf4j-simple:2.0.7')
testImplementation('org.glassfish:javax.json:1.1.4')
testImplementation('com.fasterxml.jackson.core:jackson-core:2.15.0')
testImplementation('com.google.code.gson:gson:2.10.1')
}
wrapper {
gradleVersion = '7.6'
distributionType = Wrapper.DistributionType.ALL
}