-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (42 loc) · 989 Bytes
/
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
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
}
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.jetbrains:annotations:24.1.0'
testImplementation(platform('org.junit:junit-bom:5.10.1'))
testImplementation('org.junit.jupiter:junit-jupiter')
testImplementation('com.google.guava:guava:33.0.0-jre')
}
test {
useJUnitPlatform()
}
compileJava {
options.encoding = 'UTF-8'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
withJavadocJar()
}
javadoc {
options {
links 'https://docs.oracle.com/en/java/javase/11/docs/api/'
links 'https://javadoc.io/doc/org.jetbrains/annotations/latest/'
}
}
publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}