-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (51 loc) · 1.55 KB
/
build.gradle
File metadata and controls
59 lines (51 loc) · 1.55 KB
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
plugins {
id 'java'
id 'maven-publish'
}
group = 'com.github.orrgal1'
def versionFile = file('VERSION')
if (versionFile.exists()) {
version = versionFile.text.trim()
} else {
version = '0.1.0' // default version if VERSION file is missing
}
repositories {
mavenCentral()
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
implementation 'org.apache.httpcomponents.client5:httpclient5:5.2'
implementation 'com.sparkjava:spark-core:2.9.4'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
testImplementation 'org.testcontainers:testcontainers:1.18.0'
testImplementation 'org.testcontainers:junit-jupiter:1.18.0'
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'ch.qos.logback:logback-classic:1.2.11'
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
sourceCompatibility = '17'
targetCompatibility = '17'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId = 'bullmqthinclient'
}
}
repositories {
maven {
name = 'GitHubPackages'
url = uri("https://maven.pkg.github.com/${System.getenv('REPOSITORY_OWNER')}/${System.getenv('REPOSITORY_NAME')}")
credentials {
username = System.getenv('GITHUB_ACTOR')
password = System.getenv('GITHUB_TOKEN')
}
}
}
}