diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..46c8529 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +jdk: + - openjdk11 \ No newline at end of file diff --git a/slider/build.gradle b/slider/build.gradle index 8fd894c..2f2b01a 100644 --- a/slider/build.gradle +++ b/slider/build.gradle @@ -1,5 +1,8 @@ -apply plugin: 'com.android.library' -apply plugin: 'kotlin-android' +plugins { + id 'com.android.library' + id 'kotlin-android' + id 'maven-publish' +} android { compileSdk 31 @@ -35,3 +38,19 @@ dependencies { // Circle Indicator implementation 'me.relex:circleindicator:2.1.6' } +afterEvaluate { + publishing { + publications { + // Creates a Maven publication called "release". + release(MavenPublication) { + // Applies the component for the release build variant. + from components.release + + // You can then customize attributes of the publication as shown below. + groupId = 'com.limerse.slider' + artifactId = 'final' + version = '1.0' + } + } + } +} \ No newline at end of file