-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
53 lines (43 loc) · 1.19 KB
/
build.gradle
File metadata and controls
53 lines (43 loc) · 1.19 KB
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
plugins {
id 'java-library'
}
def jnatsv = System.getenv("JNATS_VERSION")
if (jnatsv == null || jnatsv.equals("")) {
try {
jnatsv = jnatsVersion
}
catch (Exception ignore) {}
if (jnatsv == null || jnatsv.equals("")) {
jnatsv = "2.20.0"
}
}
System.out.println("JNATS_VERSION: " + jnatsv)
version = "1.0.4"
group = 'synadia'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
maven { url="https://repo1.maven.org/maven2/" }
maven { url="https://central.sonatype.com/repository/maven-snapshots" }
}
dependencies {
implementation "io.nats:jnats:${jnatsv}"
testImplementation 'org.bouncycastle:bcprov-lts8on:2.73.10'
testImplementation 'org.jspecify:jspecify:1.0.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.14.1'
testImplementation 'io.nats:jnats-server-runner:3.0.1'
testImplementation 'org.junit.platform:junit-platform-launcher:1.14.3'
}
tasks.withType(JavaCompile).configureEach {
options.warnings = false
}
test {
useJUnitPlatform() // For JUnit 5
testLogging {
showStandardStreams = true
}
}
apply plugin: 'java'