aboutsummaryrefslogtreecommitdiffstats
path: root/buildSrc/src/main/kotlin/refinery-java-application.gradle.kts
blob: 65409acfe097c05d713482f5f42d57c244e4fe4d (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
import org.gradle.accessors.dm.LibrariesForLibs

plugins {
	application
	id("com.github.johnrengelman.shadow")
}

apply(plugin = "refinery-java-conventions")

// Use log4j-over-slf4j instead of log4j 1.x when running the application.
configurations.named("runtimeClasspath") {
	exclude(group = "log4j", module = "log4j")
}

val libs = the<LibrariesForLibs>()

dependencies {
	implementation(libs.slf4j.simple)
	implementation(libs.slf4j.log4j)
}

for (taskName in listOf("distTar", "distZip", "shadowDistTar", "shadowDistZip")) {
	tasks.named(taskName) {
		enabled = false
	}
}