From 091006fb954e7cc4c6c5ccc099f230d77b22c851 Mon Sep 17 00:00:00 2001 From: Rafael Chagas Date: Sat, 14 Aug 2021 18:57:38 +0200 Subject: [PATCH] Use JDK 11 for Jitpack builds Signed-off-by: Rafael Chagas --- jitpack.yml | 1 + library/build.gradle | 14 +++++++++++++- sample/src/main/res/values/keys.xml | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 jitpack.yml diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..88cfba7 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1 @@ +jdk: openjdk11 diff --git a/library/build.gradle b/library/build.gradle index 0bd4a14..d9cdf94 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -2,6 +2,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' +apply plugin: 'maven-publish' android { @@ -30,7 +31,6 @@ android { proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } - } dependencies { @@ -91,3 +91,15 @@ dependencies { androidTestImplementation 'androidx.test:runner:1.4.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' } + +afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + groupId = 'com.github.rtchagas' + artifactId = 'pingplacepicker' + } + } + } +} diff --git a/sample/src/main/res/values/keys.xml b/sample/src/main/res/values/keys.xml index c7c09c4..198cefe 100644 --- a/sample/src/main/res/values/keys.xml +++ b/sample/src/main/res/values/keys.xml @@ -2,7 +2,7 @@ - @string/key_android - @string/key_maps + "your_android_key" + "your_maps_key" \ No newline at end of file