-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
54 lines (44 loc) · 1.32 KB
/
build.gradle.kts
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
plugins {
java
val dgtVersion = "2.6.0"
id("dev.deftu.gradle.tools") version(dgtVersion)
id("dev.deftu.gradle.tools.bloom") version(dgtVersion)
id("dev.deftu.gradle.tools.publishing.maven") version(dgtVersion)
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains:annotations:24.0.1")
@Suppress("GradlePackageUpdate")
implementation("org.apache.logging.log4j:log4j-api:2.0-beta9")
@Suppress("GradlePackageUpdate")
testRuntimeOnly(runtimeOnly("org.apache.logging.log4j:log4j-core:2.0-beta9")!!)
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2")
}
publishing {
repositories {
fun MavenArtifactRepository.setupPolyfrostRepo() {
credentials(PasswordCredentials::class.java)
authentication {
create<BasicAuthentication>("basic")
}
}
maven {
name = "polyfrostReleases"
url = uri("https://repo.polyfrost.org/releases")
setupPolyfrostRepo()
}
maven {
name = "polyfrostSnapshots"
url = uri("https://repo.polyfrost.org/snapshots")
setupPolyfrostRepo()
}
}
}
tasks {
test {
useJUnitPlatform()
}
}