[gradle] Introduce gradle conventions using buildSrc

This commit is contained in:
2024-11-02 23:11:36 +01:00
parent 1bf46b1a4a
commit a3c33ee4a8
5 changed files with 17 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
plugins {
id("java")
id("maven-publish")
id("de.siphalor.tweed5.local-runtime-only")
}
group = "de.siphalor.tweed5"
@@ -10,6 +11,7 @@ allprojects {
apply(plugin = "java")
apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "de.siphalor.tweed5.local-runtime-only")
group = rootProject.group
version = properties["version"]!!
@@ -23,9 +25,6 @@ allprojects {
mavenCentral()
}
val localRuntimeOnly = configurations.create("localRuntimeOnly")
sourceSets.main.get().runtimeClasspath += localRuntimeOnly
sourceSets.test.get().runtimeClasspath += sourceSets.main.get().runtimeClasspath
dependencies {