-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathbuild.gradle
97 lines (84 loc) · 2.99 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
/*
* Copyright 2016 - 2021 Draco, https://github.com/draco1023
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.14.2'
}
}
plugins {
id 'java-library'
}
// https://github.com/vanniktech/gradle-maven-publish-plugin/issues/206
// change domain before applying the plugin
ext {
RELEASE_REPOSITORY_URL = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
SNAPSHOT_REPOSITORY_URL = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
}
apply plugin: "com.vanniktech.maven.publish"
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
api 'com.deepoove:poi-tl:1.9.1'
api 'org.apache.poi:ooxml-schemas:1.4'
api 'org.apache.commons:commons-lang3:3.10'
api 'commons-io:commons-io:2.11.0'
implementation 'net.sourceforge.cssparser:cssparser:0.9.29'
implementation 'org.jsoup:jsoup:1.15.3'
implementation 'net.sf.saxon:Saxon-HE:11.4'
implementation 'de.rototor.snuggletex:snuggletex-core:1.3.0'
implementation 'com.drewnoakes:metadata-extractor:2.19.0'
implementation 'com.twelvemonkeys.imageio:imageio-batik:3.10.1'
implementation 'org.apache.xmlgraphics:batik-rasterizer-ext:1.17'
implementation 'com.twelvemonkeys.imageio:imageio-webp:3.10.1'
implementation 'com.twelvemonkeys.imageio:imageio-pict:3.10.1'
implementation 'com.twelvemonkeys.imageio:imageio-tiff:3.10.1'
implementation 'com.twelvemonkeys.imageio:imageio-jpeg:3.10.1'
implementation 'com.twelvemonkeys.imageio:imageio-bmp:3.10.1'
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
testRuntimeOnly 'org.slf4j:slf4j-simple:1.7.7'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.fork = true
}
javadoc {
options {
encoding 'UTF-8'
charSet 'UTF-8'
}
}
// https://github.com/vanniktech/gradle-maven-publish-plugin/issues/206
// for closeAndReleaseRepository task
mavenPublish {
nexus {
baseUrl = "https://s01.oss.sonatype.org/service/local/"
repositoryUsername = mavenCentralRepositoryUsername
repositoryPassword = mavenCentralRepositoryPassword
}
}