forked from alphacep/vosk-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update publishing plugin and simplify gradle build
- Loading branch information
Showing
6 changed files
with
49 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,62 +4,50 @@ buildscript { | |
mavenCentral() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:4.2.0' | ||
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0' | ||
classpath 'com.android.tools.build:gradle:7.4.0' | ||
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.24.0' | ||
} | ||
} | ||
|
||
allprojects { | ||
version = '0.3.46' | ||
version = '0.3.47' | ||
} | ||
|
||
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() | ||
mavenCentral() | ||
} | ||
|
||
publishing { | ||
publications { | ||
aar(MavenPublication) { | ||
groupId 'com.alphacephei' | ||
version version | ||
pom { | ||
url = 'http://www.alphacephei.com.com/vosk/' | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'com.alphacephei' | ||
name = 'Alpha Cephei Inc' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/alphacep/vosk-api.git' | ||
url = 'https://github.com/alphacep/vosk-api/' | ||
} | ||
mavenPublishing { | ||
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.S01, false) | ||
signAllPublications() | ||
} | ||
|
||
mavenPublishing { | ||
pom { | ||
url = 'http://www.alphacephei.com.com/vosk/' | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'com.alphacephei' | ||
name = 'Alpha Cephei Inc' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/alphacep/vosk-api.git' | ||
url = 'https://github.com/alphacep/vosk-api/' | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.vosk"> | ||
<manifest> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="org.vosk.model.en"> | ||
<manifest> | ||
</manifest> |