-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.gradle
145 lines (122 loc) · 4.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'application'
id 'idea'
id "io.freefair.lombok" version '8.10.2'
// https://github.com/qoomon/gradle-git-versioning-plugin
id 'me.qoomon.git-versioning' version '6.4.4'
// https://github.com/itzg/github-releaser-gradle-plugin
id 'io.github.itzg.github-releaser' version '0.1.1'
}
group = 'io.github.itzg'
description = 'This tool does the complicated bits for itzg/minecraft-server'
version = '0.0.1-SNAPSHOT'
gitVersioning.apply {
refs {
tag('.+') {
version = '${ref}'
}
branch('main') {
version = '0.0.0-${describe.tag}-SNAPSHOT'
}
branch('.+') {
version = '0.0.0-${ref}-SNAPSHOT'
}
}
// optional fallback configuration in case of no matching ref configuration
rev {
version = '${commit}'
}
}
jar {
manifest {
attributes(
"Implementation-Title": 'mc-image-helper',
"Implementation-Version": project.version
)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
test {
useJUnitPlatform()
// Can set with -PmockServerLogLevel=info
systemProperty 'mockServerLogLevel', findProperty('mockServerLogLevel') ?: 'warn'
systemProperty 'testEnableManualTests', findProperty('testEnableManualTests') ?: 'false'
}
application {
mainClass = 'me.itzg.helpers.McImageHelper'
}
project.tasks.distTar {
compression = Compression.GZIP
}
idea {
module {
downloadJavadoc = true
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
def picocliVersion = '4.7.6'
implementation(platform('com.fasterxml.jackson:jackson-bom:2.18.1'))
// 1.4.+ requires Java 11 and we are stuck on 8
implementation(platform('ch.qos.logback:logback-parent:[1.3.5,1.4)'))
implementation 'ch.qos.logback:logback-core'
implementation 'ch.qos.logback:logback-classic'
implementation "info.picocli:picocli:${picocliVersion}"
implementation 'org.fusesource.jansi:jansi:2.4.1'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-toml'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
// https://github.com/mbknor/mbknor-jackson-jsonSchema
implementation 'com.kjetland:mbknor-jackson-jsonschema_2.13:1.0.39'
implementation 'com.jayway.jsonpath:json-path:2.9.0'
implementation 'org.apache.httpcomponents.client5:httpclient5:5.4.1'
implementation 'io.projectreactor.netty:reactor-netty-http:1.1.23'
implementation 'org.apache.maven:maven-artifact:3.9.9'
implementation 'commons-codec:commons-codec:1.17.1'
// for RFC5987 parsing of content-disposition filename*
// 3.5.x is last of Java8 compatible: https://cxf.apache.org/download.html
implementation 'org.apache.cxf:cxf-core:[3.5.6,3.6.0)'
implementation 'org.jetbrains:annotations:26.0.1'
// https://commons.apache.org/proper/commons-compress/zip.html
// For IMPLODE compression used by some CurseForge modpacks
implementation 'org.apache.commons:commons-compress:1.27.1'
testImplementation 'org.assertj:assertj-core:3.26.3'
// https://github.com/webcompere/model-assert
// for json assertions
testImplementation 'uk.org.webcompere:model-assert:1.0.3'
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.3'
testImplementation 'org.mockito:mockito-junit-jupiter:5.14.2'
// would like to transition these to wiremock
testImplementation 'org.mock-server:mockserver-junit-jupiter:5.15.0'
// https://github.com/wiremock/wiremock/releases/tag/3.0.0 drops support for Java 8
testImplementation 'com.github.tomakehurst:wiremock-jre8:[2.35.1,3.0.0)'
// https://github.com/stefanbirkner/system-lambda
testImplementation 'com.github.stefanbirkner:system-lambda:1.2.1'
annotationProcessor "info.picocli:picocli-codegen:${picocliVersion}"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
compileJava {
options.encoding = 'utf-8'
}
compileTestJava {
options.encoding = 'utf-8'
}
githubReleaser {
project {
homepage = 'https://github.com/itzg/mc-image-helper'
license = 'MIT'
}
}