-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
37 lines (31 loc) · 978 Bytes
/
Copy pathbuild.gradle
File metadata and controls
37 lines (31 loc) · 978 Bytes
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
plugins {
id 'application'
id 'java'
}
group = 'com.limehee.jsonrpc'
version = '0.0.1-SNAPSHOT'
def jsonrpcVersion = providers.gradleProperty('jsonrpcVersion')
.orElse(providers.environmentVariable('JSONRPC_VERSION'))
.orElse(providers.provider {
def props = new Properties()
file('../../gradle.properties').withInputStream { props.load(it) }
props.getProperty('version', '0.0.0-SNAPSHOT')
})
.get()
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
dependencies {
implementation "io.github.limehee:jsonrpc-core:${jsonrpcVersion}"
implementation 'tools.jackson.core:jackson-databind:3.1.0'
testImplementation 'org.junit.jupiter:junit-jupiter:6.0.3'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:6.0.3'
}
application {
mainClass = 'com.limehee.jsonrpc.sample.purejava.PureJavaDemoApplication'
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}