Skip to content

Commit

Permalink
fix maven publish settings
Browse files Browse the repository at this point in the history
  • Loading branch information
irgaly committed Aug 6, 2021
1 parent 69ef44e commit 5aeb187
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ buildscript {

repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin"
classpath 'com.github.triplet.gradle:play-publisher:2.8.0'
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
Expand Down
19 changes: 1 addition & 18 deletions example/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.github.triplet.play'

def versionMajor = 0
def versionMinor = 1
Expand All @@ -17,15 +16,6 @@ android {
targetSdkVersion targetSdk_ as Integer
versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch
versionName "$versionMajor.$versionMinor.$versionPatch"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release {
storeFile file("debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
buildTypes {
debug {
Expand All @@ -37,7 +27,7 @@ android {
zipAlignEnabled true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
signingConfig signingConfigs.debug
}
}
testOptions {
Expand All @@ -50,13 +40,6 @@ android {
}
}

play {
serviceAccountCredentials = file('publisher-key.json')
defaultToAppBundles = true
track = 'production' // internal/alpha/beta/production
releaseStatus = "inProgress" // completed/draft/inProgress/halted
}

dependencies {
implementation project(':library')

Expand Down
12 changes: 11 additions & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ android {
targetSdk = targetSdk_ as Integer
versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch
versionName "$versionMajor.$versionMinor.$versionPatch"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildTypes {
Expand All @@ -28,7 +27,18 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
artifactId = "rx-keyboard-detector"
artifact(sourcesJar)
}
}
}
}

dependencies {
Expand Down

0 comments on commit 5aeb187

Please sign in to comment.