-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
48 lines (38 loc) · 1.56 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'com.palantir.git-version' version '0.13.0'
}
def defaultEncoding = 'UTF-8'
tasks.withType(AbstractCompile)*.options*.encoding = defaultEncoding
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
def gitInfo = versionDetails()
version = gitInfo.lastTag.substring(1)
def implementationVersion = version + '.' + gitInfo.gitHash[0..7]
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories { mavenCentral() }
dependencies {
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'ch.qos.logback:logback-classic:1.2.11'
implementation 'com.squareup.okhttp3:okhttp:4.9.3'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.3'
implementation 'org.apache.commons:commons-csv:1.9.0'
implementation 'commons-io:commons-io:2.11.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.assertj:assertj-core:3.22.0'
testImplementation 'com.squareup.okhttp3:mockwebserver:4.9.3'
}
def mainClassName = 'com.github.onozaty.redmine.issue.loader.IssueLoadRunner'
jar {
manifest { attributes('Main-Class' : mainClassName, "Implementation-Version": implementationVersion) }
}