Skip to content

Commit

Permalink
Release version 1.5.52.
Browse files Browse the repository at this point in the history
  • Loading branch information
anastr committed Oct 9, 2021
1 parent 3f05e03 commit d6408ef
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 59 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 30
compileSdkVersion 31
buildToolsVersion '31.0.0'

defaultConfig {
applicationId 'com.github.anastr.speedviewapp'
minSdkVersion 14
targetSdkVersion 30
targetSdkVersion 31
versionCode 2
versionName "1.1"
}
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.5.21'
ext.kotlin_version = '1.5.31'
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.1'
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
118 changes: 63 additions & 55 deletions speedviewlib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ apply plugin: 'maven-publish'
apply plugin: 'signing'

android {
compileSdkVersion 30
buildToolsVersion '29.0.3'
compileSdkVersion 31
buildToolsVersion '31.0.0'

defaultConfig {
minSdkVersion 11
targetSdkVersion 30
targetSdkVersion 31
versionCode 1
versionName "1.0"
}
Expand Down Expand Up @@ -56,76 +56,84 @@ artifacts {
archives androidSourcesJar
}

version = '1.5.51'
version = '1.5.52'

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

publishing {
publications {
release(MavenPublication) {
groupId = 'com.github.anastr'
artifactId = 'speedviewlib'
version = this.version
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
groupId = 'com.github.anastr'
artifactId = 'speedviewlib'
version = this.version

// Two artifacts, the `aar` (or `jar`) and the sources
if (project.plugins.findPlugin("com.android.library")) {
artifact("$buildDir/outputs/aar/${project.getName()}-release.aar")
} else {
artifact("$buildDir/libs/${project.getName()}-${version}.jar")
}
artifact androidSourcesJar
// Two artifacts, the `aar` (or `jar`) and the sources
if (project.plugins.findPlugin("com.android.library")) {
artifact("$buildDir/outputs/aar/${project.getName()}-release.aar")
} else {
artifact("$buildDir/libs/${project.getName()}-${version}.jar")
}
artifact androidSourcesJar

pom {
name = 'SpeedView'
description = 'Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape.'
url = 'https://github.com/anastr/SpeedView'
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
pom {
name = 'SpeedView'
description = 'Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape.'
url = 'https://github.com/anastr/SpeedView'
signing {
sign publishing.publications.release
// sign configurations.archives
}
}
developers {
developer {
id = 'anastr'
name = 'Anas Altair'
email = properties.getProperty("userEmail")
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
}
scm {
connection = 'scm:git:github.com/anastr/SpeedView.git'
developerConnection = 'scm:git:ssh://github.com/anastr/SpeedView.git'
url = 'https://github.com/anastr/SpeedView'
}
withXml {
def dependenciesNode = asNode().appendNode('dependencies')
developers {
developer {
id = 'anastr'
name = 'Anas Altair'
email = properties.getProperty("userEmail")
}
}
scm {
connection = 'scm:git:github.com/anastr/SpeedView.git'
developerConnection = 'scm:git:ssh://github.com/anastr/SpeedView.git'
url = 'https://github.com/anastr/SpeedView'
}
withXml {
def dependenciesNode = asNode().appendNode('dependencies')

project.configurations.implementation.allDependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
project.configurations.implementation.allDependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}
}
}
}
}
}
repositories {
maven {
name = "sonatype"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = properties.getProperty("ossrhUsername")
password = properties.getProperty("ossrhPassword")
repositories {
maven {
name = "sonatype"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = properties.getProperty("ossrhUsername")
password = properties.getProperty("ossrhPassword")
}
}
}
}
}

signing {
sign publishing.publications
}
//signing {
// sign publishing.publications.release
// sign configurations.archives
//// sign publishing.publications
//}

dependencies {
}
Expand Down

0 comments on commit d6408ef

Please sign in to comment.