forked from kryptnostic/fhe-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
160 lines (134 loc) · 5.11 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
description = "Kryptnostic libraries for fully homomorphic encryption."
allprojects {
//Easy semantic version based off describe + tags
def getVersionName = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags', '--dirty', '--long'
standardOutput = stdout
}
def tagVer = stdout.toString().trim()
def semVer = (tagVer =~ /v([\d\.]+)/)[0][1]
if (tagVer.contains('dev')) {
semVer += "-SNAPSHOT"
}
return semVer
}
group = "com.kryptnostic"
version = getVersionName()
apply plugin: "java"
apply plugin: "maven"
apply plugin: "idea"
apply plugin: "jacoco"
apply plugin: "maven-publish"
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
test {
if (project.hasProperty('maxParallelForks'))
maxParallelForks = project.maxParallelForks as int
if (project.hasProperty('forkEvery'))
forkEvery = project.forkEvery as int
testLogging {
events "passed", "skipped", "failed"
}
}
task sourcesJar (type : Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
ext.standaloneMode = true
sourceCompatibility=JavaVersion.VERSION_1_7
targetCompatibility=JavaVersion.VERSION_1_7
ext.jackson_version='2.4.4'
}
subprojects {
apply plugin: 'eclipse'
apply from: 'publish.gradle'
eclipse {
ext.sourceCompatibility=JavaVersion.VERSION_1_7
ext.targetCompatibility=JavaVersion.VERSION_1_7
ext.downloadSources = true
ext.downloadJavadoc = true
classpath {
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7'
}
}
repositories {
mavenCentral()
mavenLocal()
maven {
url "http://repo.maven.apache.org/maven2"
}
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
ext.slf4j_version='1.7.12'
ext.log4j_version='2.4.1'
dependencies {
/*
* SL4J + LOG4J2
*/
compile group: "org.slf4j", name: "slf4j-api", version:"${slf4j_version}"
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: "${log4j_version}"
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: "${log4j_version}"
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: "${log4j_version}"
/*
* Metrics
* Awesome reporting-- defaults to Graphite
* TODO: Integrate Ryan's Spring integration
*/
compile 'com.codahale.metrics:metrics-core:3.0.2'
compile 'com.codahale.metrics:metrics-graphite:3.0.2'
/*
JODA TIME - A better datetime class.
*/
compile 'joda-time:joda-time:2.8.2'
/*
* JACKSON SERIALIZATION
* YAML via SnakeYaml
* Afterburner for faster serialization
* Guava integration
* Smile for binary serialization
* Jersey integration
* Jaxb annotation support
*/
compile "com.fasterxml.jackson.core:jackson-core:${jackson_version}"
compile "com.fasterxml.jackson.core:jackson-databind:${jackson_version}"
compile "com.fasterxml.jackson.datatype:jackson-datatype-guava:${jackson_version}"
compile "com.fasterxml.jackson.module:jackson-module-jaxb-annotations:${jackson_version}"
compile "com.fasterxml.jackson.module:jackson-module-afterburner:${jackson_version}"
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-smile:${jackson_version}"
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${jackson_version}"
compile "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:${jackson_version}"
compile 'org.yaml:snakeyaml:1.13'
/*
* @Inject and @Nullable support
*/
compile 'javax.inject:javax.inject:1'
compile 'com.google.code.findbugs:jsr305:1.3.9'
/*
* Linear algebra including GF(2) matrices
* TODO: Move to a separate plugin / remove from core
*/
compile 'colt:colt:1.2.0'
/*
* Kryo serialization -- faster generic Java serialization
*/
compile 'com.esotericsoftware.kryo:kryo:2.22'
/*
* APACHE COMMONS
* Logging, StringUtils, RandomStringUtils, IOUtils, and more
*/
compile 'commons-io:commons-io:2.4'
compile 'org.apache.commons:commons-lang3:3.1'
compile 'commons-logging:commons-logging:1.1.3'
compile 'commons-collections:commons-collections:3.2.1'
}
}