-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (52 loc) · 1.78 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
plugins {
id 'java'
id 'maven-publish'
}
group 'org.waterfallio.doh4j'
version "${version}"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType(JavaCompile) {
options.release = 11
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
publishing {
publications {
maven(MavenPublication) {
from components.java
groupId = 'org.waterfallio'
artifactId = 'doh4j'
version = "${version}"
pom {
url = "https://github.com/thewaterfall/doh4j"
name = 'Doh4j'
description = 'The Doh4j library is a powerful yet simple DNS Over HTTPS (DoH) client implementation ' +
'for Java 11+, packaged neatly into a streamlined and powerful API. The Doh4j client uses ' +
'Google, Cloudflare, and Quad9 DoH resolvers by default, but it also supports custom ' +
'RFC 8484-compliant resolvers.'
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
}
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation "org.slf4j:slf4j-api:${slf4jApiVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${jupiterEngineVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${jupiterApiVersion}"
testImplementation "org.mockito:mockito-core:${mockitoVersion}"
}
test {
useJUnitPlatform()
}