This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 202
/
build.gradle
178 lines (150 loc) · 3.81 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
buildscript {
repositories {
mavenCentral()
jcenter()
}
}
plugins {
id 'net.researchgate.release' version '2.8.1'
id "com.jfrog.bintray" version "1.8.5"
id 'com.sourcemuse.mongo' version '1.0.7'
}
allprojects {
repositories {
jcenter()
}
apply plugin: 'maven-publish'
apply plugin: 'java'
}
apply plugin: 'eclipse'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'com.sourcemuse.mongo'
archivesBaseName = 'quartz-mongodb'
jar {
archiveVersion = projectVersion
}
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
configurations {
provided
implementation.extendsFrom provided
}
sourceSets {
main { compileClasspath += configurations.provided }
}
idea {
module {
scopes.PROVIDED.plus += [configurations.provided]
downloadJavadoc = true
downloadSources = true
}
}
eclipse {
classpath {
downloadSources true
downloadJavadoc true
}
jdt {
sourceCompatibility java.sourceCompatibility
targetCompatibility java.targetCompatibility
}
}
dependencies {
implementation("org.quartz-scheduler:quartz:2.3.2")
implementation("org.mongodb:mongodb-driver-sync:4.7.1")
implementation("commons-codec:commons-codec:1.10")
implementation("org.apache.commons:commons-lang3:3.8")
implementation("org.apache.httpcomponents:httpcore:4.4.10")
implementation("org.slf4j:slf4j-api:1.7.21")
compileOnly("org.clojure:clojure:1.10.0")
testImplementation("org.clojure:clojure:1.10.0")
testImplementation("joda-time:joda-time:2.8.2")
testImplementation("org.slf4j:slf4j-simple:1.7.10")
testImplementation("org.codehaus.groovy:groovy-all:2.5.12")
testImplementation("org.spockframework:spock-core:1.3-groovy-2.5")
testRuntimeOnly("cglib:cglib-nodep:3.1")
testRuntimeOnly("org.objenesis:objenesis:2.1")
}
release {
scmAdapters = [net.researchgate.release.GitAdapter]
git {
pushToRemote = 'origin'
}
versionPropertyFile = 'gradle.properties'
}
task sourceJar(type: Jar) {
dependsOn classes
classifier "sources"
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier 'javadoc'
from javadoc
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
artifacts {
archives sourceJar
archives javadocJar
}
publishing {
publications {
quartzMongoDB(MavenPublication) {
groupId = 'com.novemberain'
artifactId = archivesBaseName
version = projectVersion
artifact sourceJar {
classifier "sources"
}
from components.java
}
}
}
mongo {
port 27017
logging 'console'
journalingEnabled true
}
test {
beforeTest { descriptor ->
logger.lifecycle("Running test \"${descriptor}\"")
}
}
// force test runs even when there are no test changes,
// such test loops are very useful for testing race conditions
// and other concurrency hazards
test.outputs.upToDateWhen { false }
tasks.withType(Test){
runWithMongoDb = true
mongo {
journalingEnabled true
port 27017
logging 'console'
mongoVersion 'PRODUCTION'
}
}
bintray {
user = System.getenv("BINTRAY_USERNAME")
key = System.getenv("BINTRAY_API_KEY")
publications = ['quartzMongoDB']
pkg {
repo = 'maven'
name = 'quartz-mongodb'
labels = ['quartz', 'mongodb']
userOrg = 'michaelklishin'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/michaelklishin/quartz-mongodb.git'
version {
name = projectVersion
desc = 'MongoDB-backed job store for the Quartz scheduler'
vcsTag = projectVersion
}
}
}