Skip to content

Commit

Permalink
chore: publish to local
Browse files Browse the repository at this point in the history
Signed-off-by: iGxnon <[email protected]>
  • Loading branch information
iGxnon committed Mar 5, 2024
1 parent 8c4604b commit 15ac5e7
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.adarshr.gradle.testlogger.TestLoggerExtension
import com.adarshr.gradle.testlogger.theme.ThemeType

group = "cloud.xline"
version = "1.0-SNAPSHOT"
version = "0.1.0-SNAPSHOT"

buildscript {
repositories {
Expand All @@ -27,6 +27,7 @@ subprojects {
apply(plugin = "java-library")
apply(plugin = "org.gradle.test-retry")
apply(plugin = "com.adarshr.test-logger")
apply(plugin = "maven-publish")

tasks {
named<JavaCompile>("compileJava") {
Expand All @@ -47,8 +48,26 @@ subprojects {
}
}

extensions.getByType<TestLoggerExtension>().apply {
configure<PublishingExtension> {
publications {
create<MavenPublication>("maven") {
groupId = rootProject.group.toString()
version = rootProject.version.toString()

from(components["java"])

}
}
}

configure<JavaPluginExtension> {
withSourcesJar()
withJavadocJar()
}

configure<TestLoggerExtension> {
theme = ThemeType.MOCHA_PARALLEL
showStandardStreams = false
}

}

0 comments on commit 15ac5e7

Please sign in to comment.