This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
/
build.gradle
93 lines (86 loc) · 2.69 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
group 'net.deechael'
version '1.09.0'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
implementation 'com.google.code.gson:gson:2.9.0'
testImplementation 'junit:junit:4.13.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.1'
implementation 'ch.qos.logback:logback-classic:1.2.10'
implementation 'commons-lang:commons-lang:2.6'
implementation 'org.yaml:snakeyaml:1.30'
implementation 'com.google.guava:guava:31.0.1-jre'
implementation 'net.deechael:Useless:1.01.0'
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
java {
withJavadocJar()
withSourcesJar()
}
javadoc {
options.encoding = "UTF-8"
options.addStringOption("charset", "UTF-8")
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'khl'
from components.java
pom {
name = 'khl'
description = 'Java sdk for Kaiheila bot development'
url = 'https://www.github.com/DeeChael/Kaiheila.java'
licenses {
license {
name = 'GNU General Public License v3.0'
url = 'https://www.gnu.org/licenses/gpl-3.0.html'
}
}
developers {
developer {
id = 'DeeChael'
name = 'DeeChael'
email = 'DeeChael@outlook.com'
}
}
scm {
connection = 'scm:git:git://www.github.com/DeeChael/Kaiheila.java.git'
developerConnection = 'scm:git:ssh://www.github.com/DeeChael/Kaiheila.java.git'
url = 'https://www.github.com/DeeChael/Kaiheila.java'
}
}
}
}
repositories {
maven {
name = "OSSRH"
if (project.version.toString().endsWith("-SNAPSHOT")) {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots"
} else {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
}
credentials {
username = findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME")
password = findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD")
}
}
}
}
signing {
sign(publishing.publications.mavenJava)
}