forked from devork/flit
-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
68 lines (60 loc) · 1.83 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
plugins {
id 'java-library'
id 'maven-publish'
id 'dev.poolside.gradle.semantic-version' version '0.1.5'
}
allprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
}
ext {
// third party
jakartaservletapiVersion = "6.0.0"
jakartawsrsapiVersion = "3.1.0"
javapoetVersion = "1.13.0"
javaxservletapiVersion = "4.0.1"
javaxwsrsapiVersion = "2.1.1"
protobufVersion = "3.23.4"
slf4jVersion = "1.7.36"
springVersion = "6.0.11"
undertowVersion = "2.3.5.Final"
// testing
approvaltestsVersion = "18.7.1"
javaparserVersion = "3.25.4"
jerseyCommonJavaxVersion = "2.22.2"
jerseyCommonJakartaVersion = "3.1.3"
junitJupiterVersion = "5.10.0"
mockitoVersion = "5.4.0"
}
java {
group = "com.flit"
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
dependencies {
testImplementation(platform("org.junit:junit-bom:$junitJupiterVersion"))
testImplementation('org.junit.jupiter:junit-jupiter')
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/github/flit")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
}