-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
56 lines (48 loc) · 1.38 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
plugins {
id 'java-library'
id 'maven-publish'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group 'com.whoisxmlapi'
version '1.1.1'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'org.slf4j:slf4j-api:1.7.30'
}
test {
environment "API_KEY", System.getenv("API_KEY")
useJUnitPlatform()
}
task heavyJar(type: Jar) {
classifier = 'all'
from {configurations.runtimeClasspath.collect {it.isDirectory() ? it : zipTree(it)} }
with jar
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'whois-api-client'
groupId = 'com.whoisxmlapi'
version = '1.1.1'
from components.java
pom {
name = 'WhoisXML API client'
description = 'API client for WhoisXML API service'
url = 'https://whois.whoisxmlapi.com/'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
}
}
}
}