Skip to content

Commit 215b392

Browse files
Merge pull request #14 from valueadd-poland/feature/upload_artifact_to_maven
Feature/upload artifact to maven
2 parents fad4086 + 419b6b9 commit 215b392

40 files changed

+126
-3
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
- checkout
1111
- restore_cache:
1212
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
13+
- run:
14+
name: Create empty local properties
15+
command: touch local.properties
1316
- run:
1417
name: Download Dependencies
1518
command: ./gradlew androidDependencies

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ android {
4646
dependencies {
4747

4848
// Implement base library
49-
implementation project(':mvi-valueadd')
49+
implementation project(':mvi')
5050

5151
// Annotation Processor
5252
kapt deps.di.toothpick_compiler

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ buildscript {
99
dependencies {
1010
classpath deps.build.android_gradle_plugin
1111
classpath deps.build.kotlin_gradle_plugin
12-
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.3.2.0"
12+
classpath deps.build.junit5_runner
13+
classpath deps.build.android_maven
14+
classpath deps.build.bintray
1315
}
1416
}
1517

dependencies.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ versions.fragmentation = "1.0.1"
6363
versions.material_progress_bar = "1.6.1"
6464
versions.fast_adapter = "4.0.1"
6565
versions.mockk = "1.9.3"
66+
versions.junit5_runner = "1.3.2.0"
67+
versions.android_maven = "1.4.1"
68+
versions.bintray = "1.7.3"
6669
deps.versions = versions
6770
ext.versions = versions
6871

@@ -75,6 +78,9 @@ build.fabric = "io.fabric.tools:gradle:$versions.fabric"
7578
build.google_services_plugin = "com.google.gms:google-services:$versions.google_plugin"
7679
build.kotlin_gradle_plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
7780
build.realm_gradle_plugin = "io.realm:realm-gradle-plugin:$versions.realm"
81+
build.junit5_runner = "de.mannodermaus.gradle.plugins:android-junit5:$versions.junit5_runner"
82+
build.android_maven = "com.github.dcendents:android-maven-gradle-plugin:$versions.android_maven"
83+
build.bintray = "com.jfrog.bintray.gradle:gradle-bintray-plugin:$versions.bintray"
7884
deps.build = build
7985

8086
/**
File renamed without changes.

mvi-valueadd/build.gradle renamed to mvi/build.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-kapt'
44
apply plugin: 'kotlin-android-extensions'
5+
apply from: "$rootDir/scripts/jfrog.gradle"
6+
57

68
// Android library configuration
79
android {
@@ -70,3 +72,22 @@ dependencies {
7072
testImplementation deps.test.junit_params
7173
testRuntimeOnly deps.test.junit_engine
7274
}
75+
76+
task sourcesJar(type: Jar) {
77+
classifier = 'sources'
78+
from android.sourceSets.main.java.srcDirs
79+
}
80+
81+
task javadoc(type: Javadoc) {
82+
enabled = false
83+
}
84+
85+
task javadocJar(type: Jar, dependsOn: javadoc) {
86+
classifier = 'javadoc'
87+
from javadoc.destinationDir
88+
}
89+
90+
artifacts {
91+
archives javadocJar
92+
archives sourcesJar
93+
}
File renamed without changes.

mvi-valueadd/proguard-rules.pro renamed to mvi/proguard-rules.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
-keep class pl.valueadd.mvi.** { *; }
23+
-keepclassmembers class pl.valueadd.mvi.** { *; }
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)