-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
100 lines (89 loc) · 2.63 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
99
100
plugins {
id "idea"
id "java-library"
id "me.champeau.jmh" version "0.6.6"
id "com.vanniktech.maven.publish" version "0.18.0"
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
group 'com.trivago'
version '0.2.3-SNAPSHOT'
mavenPublishing {
pom {
name = "fastutil-concurrent-wrapper"
description = "Set of concurrent wrappers around fastutil primitive maps."
url = "https://github.com/trivago/fastutil-concurrent-wrapper"
licenses {
license {
name = "The Apache Software License, Version 2.0"
url = "https://opensource.org/licenses/Apache-2.0"
distribution = "repo"
}
}
developers {
developer {
id = "mchernyakov"
name = "Mikhail Chernyakov"
url = "https://github.com/mchernyakov"
}
developer {
id = "erdoganf"
name = "Fehim Erdogan"
url = "https://github.com/erdoganf"
}
developer {
id = "sarveswaran-m"
name = "Sarveswaran Meenakshisundaram"
url = "https://github.com/sarveswaran-m"
}
}
scm {
url = "https://github.com/trivago/fastutil-concurrent-wrapper"
connection = "scm:git:https://github.com/trivago/fastutil-concurrent-wrapper"
developerConnection = "scm:git:https://github.com/trivago/fastutil-concurrent-wrapper"
}
}
}
sourceCompatibility = 11
targetCompatibility = 11
sourceSets {
jmh {
java.srcDirs = ['src/jmh/java']
resources.srcDirs = ['src/jmh/resources']
compileClasspath += sourceSets.main.runtimeClasspath
}
}
dependencies {
api group: 'it.unimi.dsi', name: 'fastutil', version: '8.5.9'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
}
test {
useJUnitPlatform()
}
jar {
archiveBaseName.set('fastutil-concurrent-wrapper')
}
// ./gradlew publish --no-daemon --no-parallel
// ./gradlew closeAndReleaseRepository
publishing {
repositories {
maven {
def releasesRepoUrl = "$buildDir/repos/releases"
def snapshotsRepoUrl = "$buildDir/repos/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
// ./gradlew jmh
jmh {
jvmArgs = ["-Xms3072m","-Xmx3072m"]
duplicateClassesStrategy = DuplicatesStrategy.EXCLUDE
}