-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
90 lines (78 loc) · 2.35 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
88
89
90
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'com.diffplug.spotless' version '7.0.2'
}
repositories {
jcenter()
}
group = 'io.deephaven'
version = '0.2.0'
description = 'Fork of trove4j library'
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'junit:junit:4.11'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
testImplementation 'org.slf4j:slf4j-api:1.7.30'
testImplementation 'org.slf4j:slf4j-simple:1.7.30'
}
tasks.named('test') {
useJUnitPlatform()
}
spotless {
java {
googleJavaFormat()
}
}
java {
withSourcesJar()
withJavadocJar()
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'io.deephaven:hash'
description = 'Fork of trove4j library'
url = 'https://github.com/deephaven/hash'
licenses {
license {
name = 'LGPL-3.0-or-later'
url = 'https://www.gnu.org/licenses/lgpl-3.0.txt'
}
}
scm {
url = 'https://github.com/deephaven/hash/tree/main'
connection = 'scm:git:git://github.com/deephaven/hash.git'
developerConnection = 'scm:git:ssh://github.com/deephaven/hash.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
}