-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
82 lines (63 loc) · 1.92 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
plugins {
id 'groovy'
id 'java'
id 'io.micronaut.library' version '1.3.2'
id 'com.github.johnrengelman.shadow' version '7.1.0'
id 'maven-publish'
}
group 'dev.techh'
repositories {
mavenCentral()
}
def jUnitVersion = '5.8.1'
micronaut {
version = "3.2.1"
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:$jUnitVersion"
testImplementation 'org.hamcrest:hamcrest:2.2'
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$jUnitVersion"
implementation 'org.javassist:javassist:3.28.0-GA'
implementation 'org.slf4j:slf4j-api:1.7.32'
implementation 'ch.qos.logback:logback-classic:1.2.7'
implementation 'com.github.spullara.mustache.java:compiler:0.9.10'
implementation 'org.yaml:snakeyaml:1.29'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
}
shadowJar {
archiveClassifier.set('')
manifest {
attributes 'Premain-Class': 'dev.techh.perfunit.PerfUnit'
attributes 'Can-Retransform-Classes': true
attributes 'Boot-Class-Path' : "perfunit-${project.version}.jar"
}
exclude '**/javax.servlet.ServletContainerInitializer'
exclude '**/logback.xml'
}
test {
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
jvmArgs = ["-javaagent:./build/libs/perfunit-${project.version}.jar=./src/test/resources/config-sample.yml"]
useJUnitPlatform()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/vitaliy-sk/PerfUnit")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
}