Skip to content

Commit

Permalink
Publish Java jars on Mavencentral too
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmyrev committed Nov 7, 2021
1 parent 44f7dd2 commit f71c62a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
3 changes: 0 additions & 3 deletions java/demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ application {

repositories {
mavenCentral()
maven {
url 'https://alphacephei.com/maven/'
}
}

dependencies {
Expand Down
27 changes: 20 additions & 7 deletions java/lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
buildscript {
repositories {
mavenCentral()
}
}

plugins {
id 'java-library'
id 'maven-publish'
id 'com.vanniktech.maven.publish' version '0.18.0'
}

repositories {
mavenCentral()
}

archivesBaseName = 'vosk'
group = 'com.alphacephei'
version = '0.3.32'

repositories {
mavenCentral()
mavenPublish {
group = 'com.alphacephei'
version = version
sonatypeHost = 's01'
}

dependencies {
Expand Down Expand Up @@ -45,14 +58,14 @@ publishing {
}
}
}
repositories {
maven {
url = "repo"
}
}
}

test {
dependsOn cleanTest
testLogging.showStandardStreams = true
}

java {
withSourcesJar()
withJavadocJar()
}

0 comments on commit f71c62a

Please sign in to comment.