Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 1 addition & 33 deletions buildSrc/src/main/kotlin/murphy.kotlin-library.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("jvm")
`maven-publish`
id("murphy.publishing")
}

group = rootProject.group
Expand Down Expand Up @@ -34,38 +34,6 @@ publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])

pom {
name.set(project.name)
description.set("Lightweight chaos engineering library for JVM to simulate network failures and latency in HTTP clients - ${project.name}")
url.set("https://github.com/kronst/murphy")

licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}

developers {
developer {
id.set("kronst")
name.set("Roman Konstantynovskyi")
}
}

scm {
connection.set("scm:git:git://github.com/kronst/murphy.git")
developerConnection.set("scm:git:ssh://github.com/kronst/murphy.git")
url.set("https://github.com/kronst/murphy")
}
}
}
}

repositories {
maven {
url = uri(rootProject.layout.buildDirectory.dir("staging-deploy"))
}
}
}
39 changes: 39 additions & 0 deletions buildSrc/src/main/kotlin/murphy.publishing.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
plugins {
`maven-publish`
}

publishing {
publications.withType<MavenPublication>().configureEach {
pom {
name.set(project.name)
description.set("Lightweight chaos engineering library for JVM to simulate network failures and latency in HTTP clients - ${project.name}")
url.set("https://github.com/kronst/murphy")

licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}

developers {
developer {
id.set("kronst")
name.set("Roman Konstantynovskyi")
}
}

scm {
connection.set("scm:git:git://github.com/kronst/murphy.git")
developerConnection.set("scm:git:ssh://github.com/kronst/murphy.git")
url.set("https://github.com/kronst/murphy")
}
}
}

repositories {
maven {
url = uri(rootProject.layout.buildDirectory.dir("staging-deploy"))
}
}
}
28 changes: 28 additions & 0 deletions murphy-bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
plugins {
`java-platform`
id("murphy.publishing")
}

group = rootProject.group

javaPlatform {
allowDependencies()
}

dependencies {
constraints {
api(project(":murphy-core"))
api(project(":murphy-http"))
api(project(":murphy-ktor"))
api(project(":murphy-okhttp"))
api(project(":murphy-spring"))
}
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["javaPlatform"])
}
}
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {

rootProject.name = "murphy"

include("murphy-bom")
include("murphy-core")
include("murphy-http")
include("murphy-ktor")
Expand Down