Skip to content

Commit

Permalink
Publish to sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmyrev committed Nov 7, 2021
1 parent 15a9508 commit 44f7dd2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gradlew
gradlew.bat
gradle
local.properties
gradle.properties

# Android
android/build
Expand Down
28 changes: 18 additions & 10 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.android.tools.build:gradle:4.2.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
}
}

allprojects {
version = '0.3.32'

}

subprojects {

apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'com.vanniktech.maven.publish'

plugins.withId('com.vanniktech.maven.publish') {
mavenPublish {
group = 'com.alphacephei'
version = version
sonatypeHost = 's01'
androidVariantToPublish = 'release'
}
}

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

publishing {
Expand All @@ -29,8 +41,8 @@ subprojects {
version version
pom {
url = 'http://www.alphacephei.com.com/vosk/'
licenses {
license {
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
Expand All @@ -49,10 +61,6 @@ subprojects {
}
}
}
repositories {
maven {
url = "$rootDir/repo"
}
}
}

}
1 change: 1 addition & 0 deletions android/lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ android {
versionCode 6
versionName = version
archivesBaseName = archiveName
ndkVersion = "22.1.7171670"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down

0 comments on commit 44f7dd2

Please sign in to comment.