diff --git a/build-jar.gradle b/build-jar.gradle index fd33c13..91d9122 100644 --- a/build-jar.gradle +++ b/build-jar.gradle @@ -1,17 +1,35 @@ plugins { id 'java' id "org.jetbrains.kotlin.jvm" version "$kotlinVersion" + id 'maven-publish' } jar { archiveBaseName = 'cumulocity-clients-kotlin' - archiveVersion = '10.18.0-269' + archiveVersion = '10.18.0-270' } repositories { mavenCentral() } +publishing { + publications { + maven(MavenPublication) { + groupId = 'com.cumulocity' + artifactId = 'cumulocity-clients-kotlin' + version = '10.18.0-270' + from components.java + } + } + repositories { + maven { + url = layout.buildDirectory.dir('mavenRepo') + } + } +} + + dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion" implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion" diff --git a/build.gradle b/build.gradle index baecbcd..9f3940b 100644 --- a/build.gradle +++ b/build.gradle @@ -26,7 +26,7 @@ android { defaultConfig { minSdkVersion 19 targetSdkVersion 33 - versionCode 269 + versionCode 270 versionName "10.18.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"