-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
98 lines (88 loc) · 2.49 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
97
98
plugins {
id 'java'
id 'signing'
id 'maven-publish'
id "com.diffplug.spotless" version "6.25.0"
}
var javaToolchain = System.getenv('JAVA_TOOLCHAIN')
java {
if (javaToolchain != null) {
toolchain {
languageVersion = JavaLanguageVersion.of(javaToolchain)
}
}
}
compileJava {
if (javaToolchain != "8") {
options.release = 8
}
options.compilerArgs.add('-Xlint')
}
compileTestJava {
if (javaToolchain != "8") {
options.release = 8
}
options.compilerArgs.add('-Xlint')
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.13.2'
}
spotless {
java {
// remove when spotless moved to this Palantir version
palantirJavaFormat("2.38.0")
}
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
lbmq(MavenPublication) {
groupId = 'com.github.marianobarrios'
artifactId = 'lbmq'
version = '0.7.0'
from components.java
pom {
name = 'Linked Blocking Multi-Queue'
description = 'A concurrent collection that extends the existing Java concurrent collection library, ' +
'offering an optionally-bounded blocking "multi-queue" based on linked nodes.'
url = 'https://github.com/marianobarrios/linked-blocking-multi-queue'
licenses {
license {
name = 'BSD-style'
url = 'http://www.opensource.org/licenses/bsd-license.php'
}
}
developers {
developer {
name = 'Mariano Barrios'
email = '[email protected]'
}
}
scm {
url = 'scm:[email protected]:marianobarrios/lbmq.git'
connection = 'scm:[email protected]:marianobarrios/lbmq.git'
developerConnection = 'scm:[email protected]:marianobarrios/lbmq.git'
}
}
}
}
repositories {
maven {
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = project.findProperty('sonatypeUsername')
password = project.findProperty('sonatypePassword')
}
}
}
}
signing {
sign publishing.publications.lbmq
}