-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
53 lines (47 loc) · 1.42 KB
/
build.gradle.kts
File metadata and controls
53 lines (47 loc) · 1.42 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
plugins {
java
kotlin("jvm")
id("com.gradleup.shadow") version "9.0.0-beta4"
`maven-publish`
}
group = "fr.shawiizz"
version = "1.0.17"
repositories {
mavenCentral()
}
publishing {
publications {
create<MavenPublication>("library") {
from(components["java"])
}
}
repositories {
maven {
url = uri("https://forge.univ-lyon1.fr/api/v4/projects/36364/packages/maven")
credentials(HttpHeaderCredentials::class) {
name = "Private-Token"
value =
findProperty("gitLabPrivateToken") as String? // the variable resides in $GRADLE_USER_HOME/gradle.properties
}
authentication {
create("header", HttpHeaderAuthentication::class)
}
}
}
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
implementation("com.squareup.okhttp3:okhttp:+")
implementation("com.squareup.okhttp3:okhttp-urlconnection:+")
implementation("com.squareup.okhttp3:okhttp-java-net-cookiejar:+")
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.2")
implementation("com.fasterxml.jackson.core:jackson-core:2.15.2")
implementation("com.fasterxml.jackson.core:jackson-annotations:2.15.2")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}