Skip to content

Commit

Permalink
Merge pull request #52 from boschglobal/feature-46_5
Browse files Browse the repository at this point in the history
Testing Deployment
  • Loading branch information
SebastianSchildt authored Nov 30, 2023
2 parents d6d2fce + 8d72d50 commit 6dcc34d
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 3 deletions.
29 changes: 26 additions & 3 deletions buildSrc/src/main/kotlin/publish.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ plugins {
interface PublishPluginExtension {
val mavenPublicationName: Property<String>
val componentName: Property<String>
val description: Property<String>
}

val extension = project.extensions.create<PublishPluginExtension>("publish")
Expand Down Expand Up @@ -52,17 +53,39 @@ afterEvaluate {
}
}
publications {
register<MavenPublication>("${extension.mavenPublicationName.get()}") {
from(components["${extension.componentName.get()}"])
register<MavenPublication>(extension.mavenPublicationName.get()) {
from(components[extension.componentName.get()])

pom {
url.set("https://github.com/eclipse-kuksa/kuksa-android-sdk")
name = "${project.group}:${project.name}"
description = extension.description.get()
url = "https://github.com/eclipse-kuksa/kuksa-android-sdk"
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
name = "Mark Hüsers"
email = "mark.huesers@etas.com"
organization = "ETAS GmbH"
organizationUrl = "https://www.etas.com"
}
developer {
name = "Sebastian Schildt"
email = "sebastian.schildt@etas.com"
organization = "ETAS GmbH"
organizationUrl = "https://www.etas.com"
}
developer {
name = "Andre Weber"
email = "andre.weber3@etas.com"
organization = "ETAS GmbH"
organizationUrl = "https://www.etas.com"
}
}
scm {
connection.set("scm:git:github.com/eclipse-kuksa/kuksa-android-sdk.git")
developerConnection.set("scm:git:ssh://github.com/eclipse-kuksa/kuksa-android-sdk.git")
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ detekt-formatting = { group = "io.gitlab.arturbosch.detekt", name = "detekt-form
grpc-protoc-java-gen = { group = "io.grpc", name = "protoc-gen-grpc-java", version.ref = "grpc" }

[plugins]
dokka = { id = "org.jetbrains.dokka", version.ref = "kotlin" }
7 changes: 7 additions & 0 deletions kuksa-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ android {
}
}
}
publishing {
singleVariant("release") {
withJavadocJar()
withSourcesJar()
}
}
}

dependencies {
Expand All @@ -89,6 +95,7 @@ dependencies {
configure<Publish_gradle.PublishPluginExtension> {
mavenPublicationName = "release"
componentName = "release"
description = "Android Connectivity Library for the KUKSA Databroker"
}

protobuf {
Expand Down
13 changes: 13 additions & 0 deletions vss-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ plugins {
kotlin("jvm")
`maven-publish`
publish
alias(libs.plugins.dokka)
}

group = "org.eclipse.kuksa"
Expand Down Expand Up @@ -51,4 +52,16 @@ tasks.withType<Test>().configureEach {
configure<Publish_gradle.PublishPluginExtension> {
mavenPublicationName = "release"
componentName = "java"
description = "Vehicle Signal Specification (VSS) Core Module of the KUKSA SDK"
}

tasks.register("javadocJar", Jar::class) {
dependsOn("dokkaHtml")
from("$buildDir/dokka/html")
archiveClassifier.set("javadoc")
}

java {
withJavadocJar() // needs to be called after tasks.register("javadocJar")
withSourcesJar()
}
13 changes: 13 additions & 0 deletions vss-processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
plugins {
kotlin("jvm")
publish
alias(libs.plugins.dokka)
}

group = "org.eclipse.kuksa"
Expand Down Expand Up @@ -54,4 +55,16 @@ tasks.withType<Test>().configureEach {
configure<Publish_gradle.PublishPluginExtension> {
mavenPublicationName = "release"
componentName = "java"
description = "Vehicle Signal Specification (VSS) Code Generator for the KUKSA SDK"
}

tasks.register("javadocJar", Jar::class) {
dependsOn("dokkaHtml")
from("$buildDir/dokka/html")
archiveClassifier.set("javadoc")
}

java {
withJavadocJar() // needs to be called after tasks.register("javadocJar")
withSourcesJar()
}

0 comments on commit 6dcc34d

Please sign in to comment.