-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
69 lines (57 loc) · 1.44 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
group = 'net.transferproxy'
version = '1.0.7'
buildscript {
repositories {
mavenCentral()
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'jvm-test-suite'
apply plugin: 'maven-publish'
group = 'net.transferproxy'
version = '1.0.7'
repositories {
mavenCentral()
}
dependencies {
// Logging
api 'org.tinylog:slf4j-tinylog:2.7.0'
api 'org.tinylog:tinylog-impl:2.7.0'
// Networking
api 'io.netty:netty-all:4.1.112.Final'
// Annotations
api 'org.jetbrains:annotations:24.1.0'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.ADOPTIUM
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
def applyTestDependencies = { config ->
config.implementation config.platform('org.junit:junit-bom:5.11.3')
config.implementation 'org.junit.jupiter:junit-jupiter'
config.implementation 'org.mockito:mockito-core:5.14.2'
}
plugins.withType(JvmTestSuitePlugin).tap {
configureEach {
testing {
suites.configureEach {
applyTestDependencies(dependencies)
}
}
}
}
test {
useJUnitPlatform()
}
}