-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
96 lines (81 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
88
89
90
91
92
93
94
95
96
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id "me.champeau.jmh" version "0.7.2"
id 'maven-publish'
id 'signing'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
// Use JUnit Jupiter for testing.
testImplementation libs.junit.jupiter
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation 'org.openjdk.jmh:jmh-core:1.37'
}
// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
withSourcesJar()
withJavadocJar()
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
jmh {
// includes = [ "testSingleConsumerQueue" ]
// includes = [ "testClosableQueue" ]
}
publish {
dependsOn test
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'io.github.robaho'
artifactId = 'closablequeue'
version = '1.0.9'
from components.java
pom {
name = 'closablequeue'
description = 'An unbounded FIFO queue with "close" semantics designed for ephemeral virtual threads.'
signing {
sign publishing.publications.maven
sign configurations.archives
}
url = 'https://github.com/robaho/closablequeue'
scm {
url = 'https://github.com/robaho/closablequeue.git'
}
licenses {
license {
name = 'gnu v2.0'
url = 'https://www.gnu.org/licenses/old-licenses/gpl-2.0.html'
}
}
developers {
developer {
id = 'robaho'
name = 'Robert Engels'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = "$maven_user"
password = "$maven_password"
}
}
}
}