diff --git a/buildSrc/src/main/kotlin/publish.gradle.kts b/buildSrc/src/main/kotlin/publish.gradle.kts new file mode 100644 index 00000000..776b21c9 --- /dev/null +++ b/buildSrc/src/main/kotlin/publish.gradle.kts @@ -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("release") { + from(components["release"]) + } + } + } +} diff --git a/kuksa-sdk/build.gradle.kts b/kuksa-sdk/build.gradle.kts index 2b5d0b87..13422c0f 100644 --- a/kuksa-sdk/build.gradle.kts +++ b/kuksa-sdk/build.gradle.kts @@ -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 { diff --git a/settings.gradle.kts b/settings.gradle.kts index 6dc6cc16..97455c8f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -9,6 +9,7 @@ pluginManagement { dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { + mavenLocal() google() mavenCentral() }