blob: 6c80c971c544a732e19f58f7eefece27a22290cd (
plain) (
blame)
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
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.gradle
import org.gradle.accessors.dm.LibrariesForLibs
plugins {
application
id("com.github.johnrengelman.shadow")
id("tools.refinery.gradle.internal.java-conventions")
}
// Use log4j-over-slf4j instead of log4j 1.x when running the application.
configurations.runtimeClasspath {
exclude(group = "log4j", module = "log4j")
}
val libs = the<LibrariesForLibs>()
dependencies {
implementation(libs.slf4j.simple)
implementation(libs.slf4j.log4j)
}
for (taskName in listOf("distZip", "shadowDistTar", "shadowDistZip")) {
tasks.named(taskName) {
enabled = false
}
}
|