[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 {

View File

@@ -0,0 +1,7 @@
plugins {
`kotlin-dsl`
}
repositories {
gradlePluginPortal()
}

View File

@@ -0,0 +1 @@
rootProject.name = "tweed5-conventions"

View File

@@ -0,0 +1,6 @@
plugins {
id("java")
}
val localRuntimeOnly = configurations.create("localRuntimeOnly")
sourceSets.main.get().runtimeClasspath += localRuntimeOnly

View File

@@ -8,3 +8,4 @@ include("tweed5-serde-api")
include("tweed5-serde-extension")
include("tweed5-serde-hjson")
include("tweed5-weaver-pojo")
include("tweed5-weaver-pojo-serde-extension")