-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
54 lines (44 loc) · 1.02 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
plugins {
id 'java-library'
id 'maven-publish'
}
group 'raystark'
version '0.2'
repositories {
mavenCentral()
}
dependencies {
api "io.vavr:vavr:0.10.4"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
javadoc {
options.jFlags('-Dsun.stdout.encoding=UTF-8', '-Dsun.stdin.encoding=UTF-8', '-Dsun.stderr.encoding=UTF-8')
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.compilerArgs += '--enable-preview'
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri 'https://maven.pkg.github.com/raystarkmc/ddds'
credentials {
username = project.findProperty 'github.username'
password = project.findProperty 'github.password'
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}