-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
97 lines (87 loc) · 2.67 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
90
91
92
93
94
95
96
97
plugins {
id 'java-library'
id "groovy"
id 'maven-publish'
id 'signing'
}
group 'dev.inaka'
version '1.1.0'
dependencies {
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
implementation 'commons-io:commons-io:2.16.1'
implementation 'org.json:json:20240303'
testImplementation 'net.bytebuddy:byte-buddy:1.14.17'
testImplementation 'org.objenesis:objenesis:3.4'
testImplementation 'org.codehaus.groovy:groovy-all:3.0.22'
testImplementation 'org.spockframework:spock-core:2.4-M4-groovy-3.0'
}
test {
useJUnitPlatform()
}
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
publishing {
repositories {
maven {
name = "sonatype"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = "${ossrhUsername}"
password = "${ossrhPassword}"
}
}
}
publications {
mavenJava(MavenPublication) {
groupId = 'dev.inaka'
artifactId = 'jotenberg'
version = '1.1.0'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Jotenberg'
description = 'A Java library that interacts with Gotenberg\'s different modules to convert a variety of document formats to PDF files.'
url = 'https://github.com/cherfia/jotenberg'
licenses {
license {
name = 'MIT License'
url = 'https://github.com/cherfia/jotenberg/blob/main/LICENSE.md'
}
}
developers {
developer {
id = 'cherfia'
name = 'Taha Abdelmoutaleb Cherfia'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/cherfia/jotenberg.git'
developerConnection = 'scm:git:ssh://github.com/cherfia/jotenberg.git'
url = 'https://github.com/cherfia/jotenberg'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}