-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
87 lines (75 loc) · 2.37 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
repositories {
mavenCentral()
}
group = 'io.deephaven'
version = '0.1.1'
description = 'Extension of original open-sourced math library, SuanShu.'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withSourcesJar()
withJavadocJar()
}
javadoc {
// lots of javadoc problems, but need it for publishing to mavenCentral
source = null
}
dependencies {
api 'joda-time:joda-time:2.9.9'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'junit:junit:4.10'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}
tasks.named('test') {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'io.deephaven:SuanShu'
description = 'Extension of original open-sourced math library, SuanShu.'
url = 'https://github.com/deephaven/SuanShu'
licenses {
license {
name = 'Apache-2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
scm {
url = 'https://github.com/deephaven/SuanShu/tree/main'
connection = 'scm:git:git://github.com/deephaven/SuanShu.git'
developerConnection = 'scm:git:ssh://github.com/deephaven/SuanShu.git'
}
developers {
developer {
id = 'devinrsmith'
name = 'Devin Smith'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
name = 'ossrh'
// Will pick up ossrhUsername, ossrhPassword
credentials(PasswordCredentials)
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
signing {
sign publishing.publications.mavenJava
}