[gradle] Introduce gradle conventions using buildSrc
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
|
id("de.siphalor.tweed5.local-runtime-only")
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "de.siphalor.tweed5"
|
group = "de.siphalor.tweed5"
|
||||||
@@ -10,6 +11,7 @@ allprojects {
|
|||||||
apply(plugin = "java")
|
apply(plugin = "java")
|
||||||
apply(plugin = "java-library")
|
apply(plugin = "java-library")
|
||||||
apply(plugin = "maven-publish")
|
apply(plugin = "maven-publish")
|
||||||
|
apply(plugin = "de.siphalor.tweed5.local-runtime-only")
|
||||||
|
|
||||||
group = rootProject.group
|
group = rootProject.group
|
||||||
version = properties["version"]!!
|
version = properties["version"]!!
|
||||||
@@ -23,9 +25,6 @@ allprojects {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
val localRuntimeOnly = configurations.create("localRuntimeOnly")
|
|
||||||
sourceSets.main.get().runtimeClasspath += localRuntimeOnly
|
|
||||||
|
|
||||||
sourceSets.test.get().runtimeClasspath += sourceSets.main.get().runtimeClasspath
|
sourceSets.test.get().runtimeClasspath += sourceSets.main.get().runtimeClasspath
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
7
buildSrc/build.gradle.kts
Normal file
7
buildSrc/build.gradle.kts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
plugins {
|
||||||
|
`kotlin-dsl`
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
1
buildSrc/settings.gradle.kts
Normal file
1
buildSrc/settings.gradle.kts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
rootProject.name = "tweed5-conventions"
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
}
|
||||||
|
|
||||||
|
val localRuntimeOnly = configurations.create("localRuntimeOnly")
|
||||||
|
sourceSets.main.get().runtimeClasspath += localRuntimeOnly
|
||||||
@@ -8,3 +8,4 @@ include("tweed5-serde-api")
|
|||||||
include("tweed5-serde-extension")
|
include("tweed5-serde-extension")
|
||||||
include("tweed5-serde-hjson")
|
include("tweed5-serde-hjson")
|
||||||
include("tweed5-weaver-pojo")
|
include("tweed5-weaver-pojo")
|
||||||
|
include("tweed5-weaver-pojo-serde-extension")
|
||||||
|
|||||||
Reference in New Issue
Block a user