Skip to content

Commit

Permalink
feature: Publish Kuksa SDK Snapshot Builds to MavenLocal
Browse files Browse the repository at this point in the history
Closes: #6
Signed-Off-By: Andre Weber <andre.weber3@etas.com>
  • Loading branch information
wba2hi authored and lukasmittag committed Oct 9, 2023
1 parent 804e8e4 commit eb63872
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
35 changes: 35 additions & 0 deletions buildSrc/src/main/kotlin/publish.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2023 Contributors to the Eclipse Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*
*/

plugins {
`maven-publish`
}

afterEvaluate {
publishing {
repositories {
// to be defined
}
publications {
register<MavenPublication>("release") {
from(components["release"])
}
}
}
}
6 changes: 5 additions & 1 deletion kuksa-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ plugins {
id("org.jetbrains.kotlin.android")

id("com.google.protobuf")
publish
}

group = "org.eclipse.kuksa"
version = "0.1.0-SNAPSHOT"

android {
namespace = "com.etas.kuksa.sdk"
namespace = "org.eclipse.kuksa"
compileSdk = 33

defaultConfig {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pluginManagement {
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenLocal()
google()
mavenCentral()
}
Expand Down

0 comments on commit eb63872

Please sign in to comment.