-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
145 lines (124 loc) · 4.37 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
plugins {
id 'groovy'
id 'jacoco'
id 'project-report'
id 'signing'
id 'ru.vyarus.java-lib' version '2.3.0'
id 'ru.vyarus.github-info' version '1.3.0'
id 'ru.vyarus.quality' version '4.8.0'
id 'net.researchgate.release' version '3.0.2'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
id 'com.github.ben-manes.versions' version '0.42.0'
id 'ru.vyarus.mkdocs' version '2.4.0'
}
sourceCompatibility = 1.8
wrapper {
gradleVersion = '6.9'
}
ext {
orient = '3.2.9'
dropwizard = '2.1.1'
groovy = '2.5.18'
}
repositories { mavenLocal(); mavenCentral() }
dependencies {
implementation platform("io.dropwizard:dropwizard-bom:$dropwizard")
compileOnly 'com.github.spotbugs:spotbugs-annotations:4.7.2'
provided "com.orientechnologies:orientdb-studio:$orient"
implementation 'io.dropwizard:dropwizard-core'
implementation "com.orientechnologies:orientdb-server:$orient"
implementation "com.orientechnologies:orientdb-tools:$orient"
testImplementation "com.orientechnologies:orientdb-object:$orient"
testImplementation 'io.dropwizard:dropwizard-testing'
testImplementation 'org.spockframework:spock-core:1.3-groovy-2.5'
// groovy bundled with spock (2.5.2) does not work well with java 11
testImplementation "org.codehaus.groovy:groovy:$groovy"
testImplementation "org.codehaus.groovy:groovy-json:$groovy"
testImplementation "org.codehaus.groovy:groovy-macro:$groovy"
testImplementation "org.codehaus.groovy:groovy-nio:$groovy"
testImplementation "org.codehaus.groovy:groovy-sql:$groovy"
testImplementation "org.codehaus.groovy:groovy-templates:$groovy"
testImplementation "org.codehaus.groovy:groovy-test:$groovy"
testImplementation "org.codehaus.groovy:groovy-xml:$groovy"
// used to catch System.exit statements
testImplementation 'com.github.stefanbirkner:system-rules:1.19.0'
testImplementation 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.1'
// check everything works together
// lucene includes graph dependency
testImplementation "com.orientechnologies:orientdb-lucene:$orient"
testImplementation ("com.orientechnologies:orientdb-etl:$orient") {
// ships with embedded slf4j-impl conflicting with dropwizard's logback
exclude module: 'chromeinspector'
}
// OLDAPImporter by default is released only with Enterprise Edition, but technically it’s part
// of the security module, that is open-source, so you can add it to your CE distribution
testImplementation "com.orientechnologies:orientdb-security:$orient"
}
group = 'ru.vyarus'
description = 'Embedded OrientDB server for dropwizard'
github {
user = 'xvik'
license = 'MIT'
}
mkdocs {
publish {
docPath = '3.0.0'
rootRedirect = true
rootRedirectTo = 'latest'
versionAliases = ['latest']
}
extras = [
'version': '3.0.0'
]
}
pom {
developers {
developer {
id 'xvik'
name 'Vyacheslav Rusakov'
email 'vyarus@gmail.com'
}
}
}
javaLib {
// java 9 auto module name
autoModuleName = "$project.group.$project.name"
// don't publish gradle metadata artifact
withoutGradleMetadata()
// use only direct dependencies in the generated pom, removing BOM mentions
pom.removeDependencyManagement()
}
nexusPublishing {
repositories {
sonatype {
username = findProperty('sonatypeUser')
password = findProperty('sonatypePassword')
}
}
}
// skip signing for jitpack (snapshots)
tasks.withType(Sign) {onlyIf { !System.getenv('JITPACK') }}
// Required signing properties for release: signing.keyId, signing.password and signing.secretKeyRingFile
// (https://docs.gradle.org/current/userguide/signing_plugin.html#sec:signatory_credentials)
release.git.requireBranch.set('master')
afterReleaseBuild {
dependsOn = ['publishToSonatype',
'closeAndReleaseSonatypeStagingRepository']
doLast {
logger.warn "RELEASED $project.group:$project.name:$project.version"
}
}
test {
//useJUnitPlatform()
testLogging {
events 'skipped', 'failed'
exceptionFormat 'full'
}
maxHeapSize = '512m'
jacoco {
excludes = ['com.orientechnologies.*']
}
// appveyor fix
systemProperty 'jna.nosys', 'true'
}
dependencyUpdates.revision = 'release'