Upgrade gradle and sdk and dependency versions
This commit is contained in:
parent
e4a7e4efa1
commit
cd55d01f72
@ -69,11 +69,11 @@ val newAddress = wallet.getNewAddress()
|
|||||||
```
|
```
|
||||||
1. Publish
|
1. Publish
|
||||||
```shell
|
```shell
|
||||||
./gradlew :jvm:publishReleasePublicationToMavenLocal
|
./gradlew :jvm:publishToMavenLocal
|
||||||
./gradlew :android:publishReleasePublicationToMavenLocal
|
./gradlew :android:publishToMavenLocal
|
||||||
```
|
```
|
||||||
|
|
||||||
### How to publish to maven central (project maintainers only)
|
### How to publish to maven central with [Gradle Nexus Publish Plugin] (project maintainers only)
|
||||||
|
|
||||||
1. Set your `~/.gradle/gradle.properties` signing key values and SONATYPE login
|
1. Set your `~/.gradle/gradle.properties` signing key values and SONATYPE login
|
||||||
```properties
|
```properties
|
||||||
@ -96,3 +96,4 @@ val newAddress = wallet.getNewAddress()
|
|||||||
[`bdk`]: https://github.com/bitcoindevkit/bdk
|
[`bdk`]: https://github.com/bitcoindevkit/bdk
|
||||||
[`bdk-ffi`]: https://github.com/bitcoindevkit/bdk-ffi
|
[`bdk-ffi`]: https://github.com/bitcoindevkit/bdk-ffi
|
||||||
["Getting Started (Developer)"]: https://github.com/bitcoindevkit/bdk-ffi#getting-started-developer
|
["Getting Started (Developer)"]: https://github.com/bitcoindevkit/bdk-ffi#getting-started-developer
|
||||||
|
[Gradle Nexus Publish Plugin]: https://github.com/gradle-nexus/publish-plugin
|
||||||
|
@ -4,11 +4,11 @@ apply plugin: 'maven-publish'
|
|||||||
apply plugin: 'signing'
|
apply plugin: 'signing'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 30
|
compileSdkVersion 31
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 31
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
|
|
||||||
@ -27,13 +27,13 @@ android {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation 'net.java.dev.jna:jna:5.8.0@aar'
|
implementation 'net.java.dev.jna:jna:5.8.0@aar'
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||||
implementation 'androidx.appcompat:appcompat:1.3.0'
|
implementation 'androidx.appcompat:appcompat:1.4.0'
|
||||||
implementation 'androidx.core:core-ktx:1.5.0'
|
implementation 'androidx.core:core-ktx:1.7.0'
|
||||||
api "org.slf4j:slf4j-api:1.7.30"
|
api "org.slf4j:slf4j-api:1.7.30"
|
||||||
|
|
||||||
androidTestImplementation 'com.github.tony19:logback-android:2.0.0'
|
androidTestImplementation 'com.github.tony19:logback-android:2.0.0'
|
||||||
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
||||||
androidTestImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1'
|
androidTestImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,14 +43,13 @@ afterEvaluate {
|
|||||||
publications {
|
publications {
|
||||||
// Creates a Maven publication called "release".
|
// Creates a Maven publication called "release".
|
||||||
release(MavenPublication) {
|
release(MavenPublication) {
|
||||||
|
// Applies the component for the release build variant.
|
||||||
|
from components.release
|
||||||
|
|
||||||
// You can then customize attributes of the publication as shown below.
|
// You can then customize attributes of the publication as shown below.
|
||||||
groupId = 'org.bitcoindevkit'
|
groupId = 'org.bitcoindevkit'
|
||||||
artifactId = 'bdk-android'
|
artifactId = 'bdk-android'
|
||||||
version = '0.2.0'
|
version = '0.2.2'
|
||||||
|
|
||||||
// Applies the component for the release build variant.
|
|
||||||
from components.release
|
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
name = 'bdk-android'
|
name = 'bdk-android'
|
||||||
|
13
build.gradle
13
build.gradle
@ -1,30 +1,21 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = '1.5.10'
|
ext.kotlin_version = '1.6.10'
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.2.1'
|
classpath 'com.android.tools.build:gradle:7.0.4'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "java-library"
|
|
||||||
id "signing"
|
id "signing"
|
||||||
id "maven-publish"
|
id "maven-publish"
|
||||||
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
|
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
|
||||||
publications {
|
|
||||||
mavenJava(MavenPublication) {
|
|
||||||
from(components.java)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
signing {
|
signing {
|
||||||
def signingKey = findProperty("signingKey")
|
def signingKey = findProperty("signingKey")
|
||||||
def signingPassword = findProperty("signingPassword")
|
def signingPassword = findProperty("signingPassword")
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
@ -34,11 +34,11 @@ afterEvaluate {
|
|||||||
publications {
|
publications {
|
||||||
|
|
||||||
release(MavenPublication) {
|
release(MavenPublication) {
|
||||||
|
from components.java
|
||||||
|
|
||||||
groupId = 'org.bitcoindevkit'
|
groupId = 'org.bitcoindevkit'
|
||||||
artifactId = 'bdk-jvm'
|
artifactId = 'bdk-jvm'
|
||||||
version = '0.2.0'
|
version = '0.2.2'
|
||||||
|
|
||||||
from components.java
|
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
name = 'bdk-jvm'
|
name = 'bdk-jvm'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user