-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (47 loc) · 1.38 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
apply plugin: 'java'
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.+'
implementation group: 'org.threadly', name: 'threadly', version: '7.+'
implementation 'org.openjdk.jmh:jmh-core:1.34'
implementation 'org.openjdk.jmh:jmh-generator-annprocess:1.34'
annotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.34'
implementation 'org.jdbi:jdbi3-core:3.27.+'
implementation 'org.jdbi:jdbi3-sqlobject:3.27.+'
implementation 'org.postgresql:postgresql:42.2.24.jre7'
implementation 'org.knowm.xchart:xchart:3.6.6'
}
test {
getReports().getJunitXml().setDestination(file("$buildDir/test-results/xml"))
}
jar {
manifest {
attributes 'Implementation-Title': 'Threadly Benchmarks'
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
build.dependsOn("copyLibs");
task copyLibs(type: Copy) {
into "$buildDir/dependencies/"
from configurations.runtimeClasspath
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}