Skip to content

Commit

Permalink
Add maven-publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
omurovch committed Nov 15, 2023
1 parent 57d9bb6 commit ebd103b
Show file tree
Hide file tree
Showing 9 changed files with 142 additions and 71 deletions.
11 changes: 7 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

android {
namespace 'io.horizontalsystems.bitcoinkit.demo'
compileSdk 34

defaultConfig {
applicationId "io.horizontalsystems.bitcoinkit.demo"
minSdkVersion 23
Expand All @@ -17,17 +21,16 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
kotlinOptions { jvmTarget = '17' }
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions { jvmTarget = '17' }
packagingOptions {
resources {
pickFirsts += ['META-INF/atomicfu.kotlin_module']
}
}
namespace 'io.horizontalsystems.bitcoinkit.demo'
}

dependencies {
Expand Down
29 changes: 19 additions & 10 deletions bitcoincashkit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
compileSdkVersion 34
namespace 'io.horizontalsystems.bitcoincashkit'
compileSdk 34

defaultConfig {
minSdkVersion 23
Expand All @@ -24,12 +38,11 @@ android {
test.java.srcDirs += 'src/test/kotlin'
}

kotlinOptions { jvmTarget = '17' }
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
namespace 'io.horizontalsystems.bitcoincashkit'
kotlinOptions { jvmTarget = '17' }
}

dependencies {
Expand Down Expand Up @@ -62,7 +75,3 @@ dependencies {
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito-inline:2.19.1'
androidTestImplementation 'com.nhaarman:mockito-kotlin-kt1.1:1.6.0'
}

repositories {
mavenCentral()
}
29 changes: 19 additions & 10 deletions bitcoincore/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
compileSdkVersion 34
namespace 'io.horizontalsystems.bitcoincore'
compileSdk 34

defaultConfig {
minSdkVersion 23
Expand Down Expand Up @@ -31,12 +45,11 @@ android {
test.java.srcDirs += 'src/test/kotlin'
}

kotlinOptions { jvmTarget = '17' }
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
namespace 'io.horizontalsystems.bitcoincore'
kotlinOptions { jvmTarget = '17' }
}

dependencies {
Expand Down Expand Up @@ -81,7 +94,3 @@ dependencies {
testImplementation "com.linkedin.dexmaker:dexmaker-mockito-inline:2.19.1"
testImplementation 'androidx.test.ext:junit:1.1.1'
}

repositories {
mavenCentral()
}
29 changes: 19 additions & 10 deletions bitcoinkit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
compileSdkVersion 34
namespace 'io.horizontalsystems.bitcoinkit'
compileSdk 34

defaultConfig {
minSdkVersion 23
Expand All @@ -24,12 +38,11 @@ android {
test.java.srcDirs += 'src/test/kotlin'
}

kotlinOptions { jvmTarget = '17' }
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
namespace 'io.horizontalsystems.bitcoinkit'
kotlinOptions { jvmTarget = '17' }
}

dependencies {
Expand Down Expand Up @@ -63,7 +76,3 @@ dependencies {
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito-inline:2.19.1'
androidTestImplementation 'com.nhaarman:mockito-kotlin-kt1.1:1.6.0'
}

repositories {
mavenCentral()
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
ext.kotlin_version = '1.8.0'
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.1'
Expand All @@ -18,7 +18,7 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
Expand Down
29 changes: 19 additions & 10 deletions dashkit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
compileSdkVersion 34
namespace 'io.horizontalsystems.dashkit'
compileSdk 34

defaultConfig {
minSdkVersion 23
Expand Down Expand Up @@ -31,18 +45,17 @@ android {
test.java.srcDirs += 'src/test/kotlin'
}

kotlinOptions { jvmTarget = '17' }
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions { jvmTarget = '17' }

externalNativeBuild {
cmake {
path 'cpp/CMakeLists.txt'
}
}
namespace 'io.horizontalsystems.dashkit'
}

dependencies {
Expand Down Expand Up @@ -80,7 +93,3 @@ dependencies {
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito-inline:2.19.1'
androidTestImplementation 'com.nhaarman:mockito-kotlin-kt1.1:1.6.0'
}

repositories {
mavenCentral()
}
29 changes: 19 additions & 10 deletions ecashkit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
compileSdkVersion 34
namespace 'io.horizontalsystems.ecashkit'
compileSdk 34

defaultConfig {
minSdkVersion 23
Expand All @@ -24,12 +38,11 @@ android {
test.java.srcDirs += 'src/test/kotlin'
}

kotlinOptions { jvmTarget = '17' }
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
namespace 'io.horizontalsystems.ecashkit'
kotlinOptions { jvmTarget = '17' }
}

dependencies {
Expand Down Expand Up @@ -65,7 +78,3 @@ dependencies {
androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito-inline:2.19.1'
androidTestImplementation 'com.nhaarman:mockito-kotlin-kt1.1:1.6.0'
}

repositories {
mavenCentral()
}
24 changes: 19 additions & 5 deletions hodler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
compileSdkVersion 34
namespace 'io.horizontalsystems.hodler'
compileSdk 34

defaultConfig {
minSdkVersion 23
Expand All @@ -24,12 +39,11 @@ android {
test.java.srcDirs += 'src/test/kotlin'
}

kotlinOptions { jvmTarget = '17' }
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
namespace 'io.horizontalsystems.hodler'
kotlinOptions { jvmTarget = '17' }
}

dependencies {
Expand Down
29 changes: 19 additions & 10 deletions litecoinkit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}

android {
compileSdkVersion 34
namespace 'io.horizontalsystems.litecoinkit'
compileSdk 34

defaultConfig {
minSdkVersion 23
Expand All @@ -25,12 +39,11 @@ android {
test.java.srcDirs += 'src/test/kotlin'
}

kotlinOptions { jvmTarget = '17' }
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
namespace 'io.horizontalsystems.litecoinkit'
kotlinOptions { jvmTarget = '17' }

}

Expand All @@ -51,7 +64,3 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

repositories {
mavenCentral()
}

0 comments on commit ebd103b

Please sign in to comment.