Skip to content

Commit

Permalink
Fixed maven pub version.
Browse files Browse the repository at this point in the history
(cherry picked from commit 7993ca9)
  • Loading branch information
mobilekosmos committed Oct 3, 2021
1 parent 86ec5c0 commit fd22aa0
Showing 1 changed file with 36 additions and 12 deletions.
48 changes: 36 additions & 12 deletions lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,33 +1,57 @@
apply plugin: "kotlin"
apply plugin: 'maven'

repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
plugins {
id 'java-library'
id 'kotlin'
id 'maven-publish'
}

dependencies {
implementation "com.github.komputing:khex:1.1.0"
// KHex is a Kotlin multiplatform library to deal with hexadecimal encoding and decoding.
implementation "com.github.komputing:khex:$versions.khex"

implementation "org.bouncycastle:bcprov-jdk15to18:1.68"
implementation "org.bouncycastle:bcprov-jdk15to18:1.69"

implementation 'com.squareup.moshi:moshi:1.8.0'
implementation "com.squareup.moshi:moshi:${versions.moshi}"
// TODO: it would be better to use the generated adapter by moshi
// but for that we should move the implementations in different modules
//kapt "com.squareup.moshi:moshi-kotlin-codegen:$versions.moshi"
implementation "com.squareup.moshi:moshi-kotlin:$versions.moshi"

implementation "com.squareup.okhttp3:okhttp:$versions.okhttp"

// We need to specify this extra because the kotlin plugin adds an older version leading
// to warning about using different kotlin versions.
implementation "org.jetbrains.kotlin:kotlin-reflect:$versions.kotlin"

testImplementation 'org.assertj:assertj-core:3.19.0'

// (Required) Writing and executing Unit Tests on the JUnit Platform
testImplementation "org.junit.jupiter:junit-jupiter-api:${versions.jupiter}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${versions.jupiter}"
testRuntime "org.junit.jupiter:junit-jupiter-engine:${versions.jupiter}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${versions.jupiter}"

// (Optional) If you need "Parameterized Tests"
testImplementation "org.junit.jupiter:junit-jupiter-params:${versions.jupiter}"

testImplementation "com.squareup.okhttp3:mockwebserver:$versions.okhttp"
}

test {
useJUnitPlatform()
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called “walletconnectPublication”.
walletconnectPublication(MavenPublication) {
// Applies the component for the debug build variant.
from components.java
}
}
}
}

0 comments on commit fd22aa0

Please sign in to comment.