From a8ebbd4e35ac954f07af2194d804631ac6b7f19f Mon Sep 17 00:00:00 2001 From: Foxpace Date: Mon, 27 Sep 2021 23:20:49 +0200 Subject: [PATCH] Gradle: Maven changes for release --- README.md | 4 ++-- kotlin_ecg_detectors/build.gradle | 17 ++++++++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 336a84b..26730bf 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ ```groovy dependencies { - implementation 'com.github.Creative-Motion-Apps:Kotlin-Ecg-Detectors:0.0.3' + implementation 'com.github.Creative-Motion-Apps:Kotlin-Ecg-Detectors:0.0.4' } ``` @@ -73,7 +73,7 @@ com.github.Creative-Motion-Apps Kotlin-Ecg-Detectors - 0.0.3 + 0.0.4 ``` diff --git a/kotlin_ecg_detectors/build.gradle b/kotlin_ecg_detectors/build.gradle index e6c2c24..766815a 100644 --- a/kotlin_ecg_detectors/build.gradle +++ b/kotlin_ecg_detectors/build.gradle @@ -1,7 +1,6 @@ -apply plugin: 'java-library' +apply plugin: 'java' apply plugin: 'kotlin' -group = "com.github.Creative-Motion-Apps" - +apply plugin: 'maven-publish' buildscript { ext.kotlin_version = '1.5.31' @@ -32,5 +31,17 @@ dependencies { } } +publishing { + publications { + mavenJava(MavenPublication) { + groupId = 'com.github.Creative-Motion-Apps' + artifactId = 'KotlinEcgDetectors' + version = '0.0.4' + + from components.java + } + } +} + sourceCompatibility = "1.8" targetCompatibility = "1.8" \ No newline at end of file