-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (53 loc) · 2.22 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
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/4.3/userguide/java_library_plugin.html
*/
// Apply the java-library plugin to add support for Java Library
apply plugin: 'java'
apply plugin: 'application'
version = '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
//create a single Jar with all dependencies
task allJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'BitCurator PDF Redaction',
'Implementation-Version': version,
'Main-Class': 'bca.redact.RedactionApp'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
maven { url "https://repository.apache.org/content/repositories/snapshots/" }
maven { url "https://repo.itextsupport.com/releases" }
maven { url "http://repo.ghost4j.org/maven2/releases" }
}
dependencies {
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
compile 'com.itextpdf:kernel:7.1.2@jar'
compile 'com.itextpdf:io:7.1.2@jar'
compile 'com.itextpdf:layout:7.1.2@jar'
compile 'com.itextpdf:cleanup:2.0.1@jar'
compile 'org.apache.commons:commons-imaging:1.0-SNAPSHOT@jar'
compile 'commons-io:commons-io:2.6@jar'
compile 'org.apache.commons:commons-collections4:4.2@jar'
compile 'org.ghost4j:ghost4j:1.0.0@jar'
compile 'com.lowagie:itext:2.1.7@jar'
compile 'log4j:log4j:1.2.15@jar'
compile 'net.java.dev.jna:jna:3.3.0@jar'
compile 'edu.stanford.nlp:stanford-corenlp:3.9.1@jar'
compile group: 'edu.stanford.nlp', name: 'stanford-corenlp', version: '3.9.1', classifier: 'models'
compile 'org.slf4j:slf4j-log4j12:1.7.25@jar'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}
mainClassName = 'bca.redact.RedactionApp'