-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
168 lines (129 loc) · 4.2 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'jacoco'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
// --- JAVADOC ---
javadoc {
options.encoding = 'UTF-8'
failOnError = false
}
// --- JACOCO ---
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
// --- CONFIGURATIONS ---
configurations {
runtime
ecj
}
configurations.all {
// resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
// --- REPOSITORIES ---
repositories {
mavenCentral()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
// --- DEPENDENCIES ---
dependencies {
// ============== COMPILATION =============
testCompile 'junit:junit:4.12'
ecj 'org.eclipse.jdt.core.compiler:ecj:4.4.2'
// ============== PROMISE API =============
// https://mvnrepository.com/artifact/com.github.berkesa/datatree-promise
compile group: 'com.github.berkesa', name: 'datatree-promise', version: '1.0.6'
// ================ LOGGING ===============
// http://mvnrepository.com/artifact/org.slf4j/slf4j-api
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.28'
// http://mvnrepository.com/artifact/org.slf4j/slf4j-jdk14
compile group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.28'
// https://mvnrepository.com/artifact/org.slf4j/log4j-over-slf4j
compile group: 'org.slf4j', name: 'log4j-over-slf4j', version: '1.7.28'
// https://mvnrepository.com/artifact/org.slf4j/jcl-over-slf4j
compile group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7.28'
// ============== MONGODB API ==============
// https://mvnrepository.com/artifact/org.mongodb/mongodb-driver-reactivestreams
compile group: 'org.mongodb', name: 'mongodb-driver-reactivestreams', version: '1.12.0'
// =========== SPRING FRAMEWORK ============
// https://mvnrepository.com/artifact/org.springframework/spring-core
compile group: 'org.springframework', name: 'spring-context', version: '5.0.8.RELEASE'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'com.github.berkesa'
// version = '1.0.0-SNAPSHOT'
version = '1.0.0'
modifyPom {
project {
artifactId 'moleculer-java-mongo'
name 'MongoDB Client for Moleculer Framework'
description 'Non-blocking, Promise-based MongoDB Client for Moleculer Applications.'
url 'https://moleculer-java.github.io/moleculer-java-mongo/'
inceptionYear '2019'
scm {
url 'https://moleculer-java.github.io/moleculer-java-mongo/'
connection 'scm:https://github.com/moleculer-java/moleculer-java-mongo.git'
developerConnection 'scm:git://github.com/moleculer-java/moleculer-java-mongo.git'
}
licenses {
license {
name "The MIT License"
url "http://www.opensource.org/licenses/MIT"
distribution 'repo'
}
}
dependencies {
dependency {
groupId 'com.github.berkesa'
artifactId 'datatree-promise'
version '1.0.6'
scope 'runtime'
}
dependency {
groupId 'org.mongodb'
artifactId 'mongodb-driver-reactivestreams'
version '1.12.0'
scope 'runtime'
}
}
developers {
developer {
id 'berkesa'
name 'Andras Berkes'
email 'andras.berkes@programmer.net'
}
}
}
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
}
// --- COMPILATION ---
compileJava {
options.fork = true
options.forkOptions.with {
executable = 'java'
jvmArgs = ['-classpath', project.configurations.ecj.asPath, 'org.eclipse.jdt.internal.compiler.batch.Main', '-nowarn']
}
}
// --- JAR ---
jar {
baseName = 'moleculer-mongo'
version = '1.0.0'
}