-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.gradle
67 lines (56 loc) · 1.42 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
plugins {
id 'java-library'
id 'maven-publish'
id 'jacoco'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
withJavadocJar()
withSourcesJar()
}
test {
useJUnitPlatform()
testLogging {
exceptionFormat = 'full'
}
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
}
}
// Link references to standard Java classes to the official Java 11 documentation.
javadoc.options.links 'https://docs.oracle.com/en/java/javase/11/docs/api/'
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
dependencies {
api project(':merlin-framework')
api 'JNISpice:JNISpice:N0067'
api 'org.apache.commons:commons-math3:3.6.1'
api 'org.apache.commons:commons-lang3:3.13.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
testImplementation project(':merlin-framework-junit')
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
publishing {
publications {
library(MavenPublication) {
version = findProperty('publishing.version')
from components.java
}
}
publishing {
repositories {
maven {
name = findProperty("publishing.name")
url = findProperty("publishing.url")
credentials {
username = System.getenv(findProperty("publishing.usernameEnvironmentVariable"))
password = System.getenv(findProperty("publishing.passwordEnvironmentVariable"))
}
}
}
}
}