Skip to content

Commit

Permalink
Merge pull request #102 from ShikaSD/master
Browse files Browse the repository at this point in the history
Add maven publishing config for plugin common module
  • Loading branch information
zsoltk authored Jul 24, 2019
2 parents 385450e + 871df2e commit 44ec94f
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: android
dist: trusty
jdk: oraclejdk8
install: true
script:
Expand Down
2 changes: 1 addition & 1 deletion documentation/extras/inspectorplugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Allows to record elements passed through middlewares and inspect their values.
1. Download [MVICoreInspector.zip](https://github.com/badoo/MVICore/blob/master/mvicore-plugin/idea/artifacts/MVICoreInspector.zip?raw=true)
2. Inside the IDE go to "Install plugin from disk..."
3. Install the .zip file and restart the IDE
4. Add plugin middleware artifact to your dependencies: `implementation "com.github.badoo:mvicore-plugin-middleware:$VERSION"`
4. Add plugin middleware artifact to your dependencies: `implementation "com.github.badoo.mvicore:mvicore-plugin-middleware:$VERSION"`
5. Setup middleware configuration:
```kotlin
// Create store
Expand Down
2 changes: 1 addition & 1 deletion mvicore-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.badoo'
group='com.github.badoo.mvicore'

android {
compileSdkVersion 28
Expand Down
2 changes: 1 addition & 1 deletion mvicore-debugdrawer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.badoo'
group='com.github.badoo.mvicore'

android {
compileSdkVersion 27
Expand Down
2 changes: 1 addition & 1 deletion mvicore-diff/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
}


group = 'com.github.badoo'
group = 'com.github.badoo.mvicore'

dependencies {
def deps = rootProject.ext.deps
Expand Down
18 changes: 18 additions & 0 deletions mvicore-plugin/common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apply plugin: 'kotlin'
apply plugin: 'maven'

archivesBaseName = 'mvicore-plugin-common'

buildscript {
repositories {
Expand All @@ -16,6 +19,21 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
}

task packageSources(type: Jar, dependsOn: 'classes') {
classifier = 'sources'
from sourceSets.main.allSource
}

task packageJavadoc(type: Jar, dependsOn: javadoc) {
from javadoc.outputDirectory
classifier = 'javadoc'
}

artifacts {
archives packageSources
archives packageJavadoc
}

sourceCompatibility = "1.8"
targetCompatibility = "1.8"

Expand Down
1 change: 0 additions & 1 deletion mvicore-plugin/middleware/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apply plugin: 'maven'
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'

group = 'com.github.badoo'
archivesBaseName = 'mvicore-plugin-middleware'

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion mvicore/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'maven'
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'

group = 'com.github.badoo'
group = 'com.github.badoo.mvicore'

dependencies {
def deps = rootProject.ext.deps
Expand Down

0 comments on commit 44ec94f

Please sign in to comment.