-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
78 lines (68 loc) · 2.06 KB
/
build.gradle
File metadata and controls
78 lines (68 loc) · 2.06 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
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
plugins {
id 'java-library'
id 'maven-publish'
}
group = 'com.github.boxlinknet'
version = '0.4.1'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
withJavadocJar()
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2'
}
tasks.named('test') {
useJUnitPlatform()
// Pass integration test credentials to the test JVM
environment 'JAVA_USERNAME', System.getenv('JAVA_USERNAME') ?: ''
environment 'JAVA_PASSWORD', System.getenv('JAVA_PASSWORD') ?: ''
testLogging {
events 'passed', 'skipped', 'failed'
showStandardStreams = true
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
options.addStringOption('Xdoclint:none', '-quiet')
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.github.boxlinknet'
artifactId = 'kwtsms-java'
version = project.version
from components.java
pom {
name = 'kwtsms'
description = 'Official Java client for the kwtSMS SMS gateway API'
url = 'https://github.com/boxlinknet/kwtsms-java'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'boxlinknet'
name = 'Boxlink'
url = 'https://www.kwtsms.com'
}
}
scm {
connection = 'scm:git:git://github.com/boxlinknet/kwtsms-java.git'
developerConnection = 'scm:git:ssh://github.com/boxlinknet/kwtsms-java.git'
url = 'https://github.com/boxlinknet/kwtsms-java'
}
}
}
}
}