-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (37 loc) · 1.1 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
import java.util.*
plugins {
id("java")
alias(libs.plugins.org.jetbrains.kotlin.jvm)
alias(libs.plugins.io.freefair.lombok)
}
group = "com.joevno.exampleproject"
version = "0.0.2"
repositories {
mavenCentral()
}
dependencies {
implementation(libs.guice)
implementation(libs.guava)
implementation(libs.auto.service.annotations)
implementation(project(":modules:some-api"))
implementation(libs.log4j.core)
implementation(libs.log4j.api)
runtimeOnly(project(":modules:some-impl"))
annotationProcessor(libs.auto.service)
testImplementation(platform(libs.junit.bom))
testImplementation(libs.junit.jupiter)
}
tasks.test {
useJUnitPlatform()
}
// Check if gradle-local.properties exists and load it
val localPropertiesFile = file("gradle-local.properties")
if (localPropertiesFile.exists()) {
val localProperties = Properties()
localPropertiesFile.inputStream().use { inputStream ->
localProperties.load(inputStream)
}
localProperties.forEach { key, value ->
project.extensions.extraProperties[key.toString()] = value
}
}