Skip to content

Commit

Permalink
Changed release process to MavenCentral; released version 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdapioneer committed Apr 3, 2021
1 parent cac8edf commit 536b7d6
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 108 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Custom
release_guide.md
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Argon2Kt is licensed under the MIT license. See the [LICENSE file](https://githu
Add the dependency to your gradle.build file:

```groovy
implementation 'com.lambdapioneer.argon2kt:argon2kt:1.2.0'
implementation 'com.lambdapioneer.argon2kt:argon2kt:1.3.0'
```

Use the `Argon2Kt` class to hash and verify using Argon2:
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ android {

dependencies {
implementation project(":lib")
// implementation 'com.lambdapioneer.argon2kt:argon2kt:0.1'
// implementation 'com.lambdapioneer.argon2kt:argon2kt:1.3.0'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.appcompat:appcompat:$appcompat_version"
Expand Down
13 changes: 7 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,24 @@ buildscript {
roboelectric_version = '4.3'
testrunner_version = '1.3.0'

// for bintray upload and publishing
gradle_bintray_plugin_version = '1.8.1'
android_maven_gradle_plugin_version = '2.1'
// for maven central upload and publishing
gradle_maven_publish_plugin_version = '0.14.2'
dokka_gradle_plugin_version = '1.4.30'
}

repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
classpath "com.android.tools.build:gradle:$gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// for bintray upload and publishing
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$gradle_bintray_plugin_version"
classpath "com.github.dcendents:android-maven-gradle-plugin:$android_maven_gradle_plugin_version"
// for maven central upload and publishing
classpath "com.vanniktech:gradle-maven-publish-plugin:$gradle_maven_publish_plugin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_gradle_plugin_version"
}
}

Expand Down
26 changes: 26 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,29 @@ org.gradle.jvmargs=-Xmx1536m
android.useAndroidX=true
android.enableJetifier=true
kotlin.code.style=official

# Maven release configuration
GROUP=com.lambdapioneer.argon2kt
POM_ARTIFACT_ID=argon2kt
VERSION_NAME=1.3.0

POM_NAME=My Library
POM_DESCRIPTION=A description of what my library does.
POM_INCEPTION_YEAR=2020

POM_URL=https://github.com/lambdapioneer/argon2kt
POM_SCM_URL=https://github.com/lambdapioneer/argon2kt
POM_SCM_CONNECTION=scm:git:git://github.com/lambdapioneer/argon2kt.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://github.com/lambdapioneer/argon2kt.git

POM_LICENCE_NAME=MIT License
POM_LICENCE_URL=https://github.com/lambdapioneer/argon2kt/blob/master/LICENSE
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=lambdapioneer
POM_DEVELOPER_NAME=Daniel Hugenroth
POM_DEVELOPER_URL=https://github.com/lambdapioneer/

# New sonatype URLs: https://github.com/vanniktech/gradle-maven-publish-plugin/issues/206
RELEASE_REPOSITORY_URL=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/
SNAPSHOT_REPOSITORY_URL=https://s01.oss.sonatype.org/content/repositories/snapshots/
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip
35 changes: 1 addition & 34 deletions lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
apply plugin: "com.android.library"
apply plugin: "com.vanniktech.maven.publish"
apply plugin: "kotlin-android"
apply plugin: "maven"

ext {
version_code = 120
version_name = '1.2.0'
}

android {
compileSdkVersion project.ext.compileSdkVersion

defaultConfig {
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion

versionCode version_code
versionName version_name

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

ndk {
Expand Down Expand Up @@ -65,29 +58,3 @@ dependencies {
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version"
androidTestImplementation "org.assertj:assertj-core:$jassert_version"
}

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

ext {
bintrayRepo = 'android_artifacts'
bintrayOrg = 'lambdapioneer'
bintrayName = 'argon2kt'

publishedGroupId = 'com.lambdapioneer.argon2kt'
libraryName = 'argon2kt'
artifact = 'argon2kt'

libraryDescription = 'An Android/Kotlin binding for the Argon2 hash'

siteUrl = 'https://github.com/lambdapioneer/argon2kt'
gitUrl = 'https://github.com/lambdapioneer/argon2kt.git'

developerId = 'lambdapioneer'

licenseName = 'MIT License'
licenseUrl = 'https://github.com/lambdapioneer/argon2kt/blob/master/LICENSE'
allLicenses = ["MIT-License"]
}

apply from: file('publish.gradle')
65 changes: 0 additions & 65 deletions lib/publish.gradle

This file was deleted.

0 comments on commit 536b7d6

Please sign in to comment.