-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
111 lines (91 loc) · 3.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'maven-publish'
id 'java'
}
sourceCompatibility = 17
targetCompatibility = 17
group 'com.catkatpowered.katserver'
version '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url = 'https://repository.hanbings.io/snapshots' }
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
testCompileOnly 'org.projectlombok:lombok:1.18.22'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j2-impl
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl:2.19.0'
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j
implementation 'org.apache.logging.log4j:log4j-api:2.19.0'
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
// https://mvnrepository.com/artifact/io.javalin/javalin
implementation 'io.javalin:javalin:5.1.2'
//implementation 'io.javalin.community.ssl:ssl-plugin:5.1.2'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation 'com.google.code.gson:gson:2.8.9'
// https://mvnrepository.com/artifact/com.google.guava/guava
implementation 'com.google.guava:guava:31.0.1-jre'
// https://mvnrepository.com/artifact/org.tomlj/tomlj
implementation 'org.tomlj:tomlj:1.1.0'
// https://mvnrepository.com/artifact/org.mongodb/mongo-java-driver
implementation 'org.mongodb:mongo-java-driver:3.12.10'
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on
implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
// https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk15on
implementation 'org.bouncycastle:bcpkix-jdk15on:1.70'
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
testImplementation 'com.squareup.okhttp3:okhttp:4.9.3'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
archiveClassifier.convention('sources')
archiveClassifier.set('sources')
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier.convention('javadocs')
archiveClassifier.set('javadocs')
}
javadoc {
options.addBooleanOption('html5', true)
options.encoding('utf-8')
}
shadowJar {
manifest {
attributes(
'Main-Class': 'com.catkatpowered.katserver.KatServerMain',
"Multi-Release": true
)
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
test {
testLogging.showStandardStreams = true
useJUnitPlatform()
}
publishing {
repositories {
maven {
url = uri((project.findProperty("repository_root_url") ?: System.getenv("REPOSITORY_ROOT_URL"))
+ (project.version.toString().endsWith('-SNAPSHOT') ? 'snapshots' : 'releases'))
credentials {
username = project.findProperty("repository_user") ?: System.getenv("REPOSITORY_USER")
password = project.findProperty("repository_token") ?: System.getenv("REPOSITORY_TOKEN")
}
}
}
publications {
mavenJava(MavenPublication) {
artifact(jar)
artifact(sourcesJar)
artifact(javadocJar)
}
}
}