forked from EsotericSoftware/kryonet
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
72 lines (56 loc) · 1.45 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
apply plugin: "java-library"
apply plugin: 'maven-publish'
version '2.22.8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed", "standardError"
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test) {
systemProperty "file.encoding", "UTF-8"
}
dependencies {
implementation "com.github.esotericsoftware:jsonbeans:c3520fcc51" // = 0.10
api "com.esotericsoftware:kryo:5.5.0"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.9.2"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.9.2"
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
javadoc {
options {
addBooleanOption('author', true)
links "https://docs.oracle.com/en/java/javase/17/docs/api/"
}
}
publishing {
publications {
plugin(MavenPublication) { publication ->
groupId 'com.github.crykn'
artifactId project.archivesBaseName
version project.version
from components['java']
artifact sourcesJar
artifact javadocJar
}
}
repositories {
mavenLocal()
}
}