Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven publication switched to Maven Central. #351

Merged
merged 6 commits into from
Mar 26, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Maven publication switched to the Nexus Repository.
  • Loading branch information
VDovidaytis-HORIS committed Mar 19, 2021
commit b894ab383a946b33ac82603ae9c16a607253763a
17 changes: 8 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ project.ext.buildSettings = settings

// Bintray settings

// define the package name in the Bintray Maven repository depending on the version name
def bintray_mvn_pkg_name = 'lets-plot-jars'
if (version.contains('alpha') || version.contains('rc')) {
bintray_mvn_pkg_name = 'lets-plot-jars-dev'
}

project.ext["bintraySettings"] = [
userOrg : 'jetbrains',
licenses : ['MIT'],
Expand All @@ -126,8 +120,13 @@ project.ext["bintraySettings"] = [
js_repo : "lets-plot",
js_pkg_name : 'lets-plot-js',
js_artifact_version: js_artifact_version,

mvn_repo : 'lets-plot-maven',
mvn_pkg_name : bintray_mvn_pkg_name,
]

// Maven publication setting
// define local Maven Repository path:
project.ext.localMavenRepository = "$rootDir/.maven-publish-dev-repo"

// define Sonatype nexus repository manager settings:
def sonatypeSnapshotUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
def sonatypeReleaseUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
project.ext.sonatypeUrl = version.contains('SNAPSHOT') ? sonatypeSnapshotUrl : sonatypeReleaseUrl
10 changes: 9 additions & 1 deletion build_settings.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,12 @@ pypi:
# -------------------------------------------------------------------
bintray:
user:
key:
key:


# -------------------------------------------------------------------
# Sonatype settings
# -------------------------------------------------------------------
sonatype:
username:
password:
38 changes: 11 additions & 27 deletions jvm-package/jvm-publish-batik/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id "org.jetbrains.kotlin.multiplatform"
id "maven-publish"
id "com.github.johnrengelman.shadow"
id "com.jfrog.bintray"
id "signing"
}

kotlin {
Expand Down Expand Up @@ -151,34 +151,18 @@ publishing {
}
repositories {
maven {
// url = uri("$rootDir/.maven-publish-dev-repo")
url = uri("https://jetbrains.bintray.com/lets-plot-maven")
url = project.sonatypeUrl
credentials {
username = project.buildSettings.sonatype.username
password = project.buildSettings.sonatype.password
}
}
mavenLocal {
url = uri(project.localMavenRepository)
}
}
}

// Provide Bintray-specific Information
def bintray_user = project.buildSettings?.bintray?.user
def bintray_key = project.buildSettings?.bintray?.key

if (bintray_user != null && bintray_key != null) {
bintray {
publications = ['letsPlotJvmBatik']
override = true

user = bintray_user
key = bintray_key
publish = project.bintraySettings.publish

pkg {
repo = project.bintraySettings.mvn_repo
name = project.bintraySettings.mvn_pkg_name
userOrg = project.bintraySettings.userOrg
licenses = project.bintraySettings.licenses
vcsUrl = project.bintraySettings.vcsUrl
version {
name = artifactVersion
}
}
}
signing {
sign publishing.publications.letsPlotJvmBatik
}
38 changes: 11 additions & 27 deletions jvm-package/jvm-publish-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id "org.jetbrains.kotlin.multiplatform"
id "maven-publish"
id "com.github.johnrengelman.shadow"
id "com.jfrog.bintray"
id "signing"
}

kotlin {
Expand Down Expand Up @@ -153,34 +153,18 @@ publishing {
}
repositories {
maven {
// url = uri("$rootDir/.maven-publish-dev-repo")
url = uri("https://jetbrains.bintray.com/lets-plot-maven")
url = project.sonatypeUrl
credentials {
username = project.buildSettings.sonatype.username
password = project.buildSettings.sonatype.password
}
}
mavenLocal {
url = uri(project.localMavenRepository)
}
}
}

// Provide Bintray-specific Information
def bintray_user = project.buildSettings?.bintray?.user
def bintray_key = project.buildSettings?.bintray?.key

if (bintray_user != null && bintray_key != null) {
bintray {
publications = ['letsPlotJvmCommon']
override = true

user = bintray_user
key = bintray_key
publish = project.bintraySettings.publish

pkg {
repo = project.bintraySettings.mvn_repo
name = project.bintraySettings.mvn_pkg_name
userOrg = project.bintraySettings.userOrg
licenses = project.bintraySettings.licenses
vcsUrl = project.bintraySettings.vcsUrl
version {
name = artifactVersion
}
}
signing {
sign publishing.publications.letsPlotJvmCommon
}
}
39 changes: 12 additions & 27 deletions jvm-package/jvm-publish-jfx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id "org.jetbrains.kotlin.multiplatform"
id "maven-publish"
id "com.github.johnrengelman.shadow"
id "com.jfrog.bintray"
id "signing"
}

kotlin {
Expand Down Expand Up @@ -134,34 +134,19 @@ publishing {
}
repositories {
maven {
// url = uri("$rootDir/.maven-publish-dev-repo")
url = uri("https://jetbrains.bintray.com/lets-plot-maven")
url = project.sonatypeUrl
credentials {
username = project.buildSettings.sonatype.username
password = project.buildSettings.sonatype.password
}
}
mavenLocal {
url = uri(project.localMavenRepository)
}
}
}

// Provide Bintray-specific Information
def bintray_user = project.buildSettings?.bintray?.user
def bintray_key = project.buildSettings?.bintray?.key

if (bintray_user != null && bintray_key != null) {
bintray {
publications = ['letsPlotJvmJfx']
override = true

user = bintray_user
key = bintray_key
publish = project.bintraySettings.publish

pkg {
repo = project.bintraySettings.mvn_repo
name = project.bintraySettings.mvn_pkg_name
userOrg = project.bintraySettings.userOrg
licenses = project.bintraySettings.licenses
vcsUrl = project.bintraySettings.vcsUrl
version {
name = artifactVersion
}
}
}
signing {
sign publishing.publications.letsPlotJvmJfx
}

40 changes: 11 additions & 29 deletions plot-image-export/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id "org.jetbrains.kotlin.multiplatform"
id "org.jetbrains.gradle.plugin.idea-ext"
id "maven-publish"
id "com.jfrog.bintray"
id "signing"
}

project.ext {
Expand Down Expand Up @@ -144,36 +144,18 @@ publishing {
}
repositories {
maven {
// url = uri("$rootDir/.maven-publish-dev-repo")
url = uri("https://jetbrains.bintray.com/lets-plot-maven")
}
}
}

// Provide Bintray-specific Information
def bintray_user = project.buildSettings?.bintray?.user
def bintray_key = project.buildSettings?.bintray?.key

if (bintray_user != null && bintray_key != null) {
bintray {
publications = ['letsPlotImageExport']
override = true

user = bintray_user
key = bintray_key
publish = project.bintraySettings.publish

pkg {
repo = project.bintraySettings.mvn_repo
name = project.bintraySettings.mvn_pkg_name
userOrg = project.bintraySettings.userOrg
licenses = project.bintraySettings.licenses
vcsUrl = project.bintraySettings.vcsUrl
version {
name = artifactVersion
url = project.sonatypeUrl
credentials {
username = project.buildSettings.sonatype.username
password = project.buildSettings.sonatype.password
}
}
mavenLocal {
url = uri(project.localMavenRepository)
}
}
}


signing {
sign publishing.publications.letsPlotImageExport
}