diff --git a/README.md b/README.md index 279b9b8649..da949e9c40 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ Please see `third-party-licenses/`. ## How to use -The latest released and snapshot software artifacts (e.g. `.jar` files) are available from Unidata's Nexus repository: +The latest released and snapshot software artifacts (e.g. `.jar` files) are available from Unidata's artifacts repository: * https://artifacts.unidata.ucar.edu/#browse/browse:unidata-all diff --git a/build-logic/src/main/kotlin/artifact-publishing-conventions.gradle.kts b/build-logic/src/main/kotlin/artifact-publishing-conventions.gradle.kts index 40e1971144..5eeabde8fb 100644 --- a/build-logic/src/main/kotlin/artifact-publishing-conventions.gradle.kts +++ b/build-logic/src/main/kotlin/artifact-publishing-conventions.gradle.kts @@ -16,8 +16,8 @@ publishing { url = uri("https://artifacts.unidata.ucar.edu/repository/unidata-snapshots/") } credentials { - username = extra.properties["nexus.username"] as? String - password = extra.properties["nexus.password"] as? String + username = extra.properties["artifacts.username"] as? String + password = extra.properties["artifacts.password"] as? String } } } diff --git a/docs/src/site/pages/netcdfJava/developer/DocGuide.md b/docs/src/site/pages/netcdfJava/developer/DocGuide.md index c0f865d44c..39b8bac80a 100644 --- a/docs/src/site/pages/netcdfJava/developer/DocGuide.md +++ b/docs/src/site/pages/netcdfJava/developer/DocGuide.md @@ -9,8 +9,8 @@ permalink: doc_guide.html ## Working with the Docs The THREDDS project utilizes Jekyll for building and organizing documentation. -We use JRuby to run Jekyll, and have included into our gradle build system. -Jekyll can build an html based documentation set for publication on the web, which we run in an automated fashon and publish to our nexus server with each github commit. +We use Docker to run Jekyll, and have included into our gradle build system. +Jekyll can build an html based documentation set for publication on the web. Jekyll also has the capability to stand up a local webserver to allow for live editing of the documentation. Simply execute the following from the command line at the top level of the github repo: diff --git a/docs/src/site/pages/netcdfJava_tutorial/overview/BuildingFromSource.md b/docs/src/site/pages/netcdfJava_tutorial/overview/BuildingFromSource.md index c55efd87e1..959dc820cc 100644 --- a/docs/src/site/pages/netcdfJava_tutorial/overview/BuildingFromSource.md +++ b/docs/src/site/pages/netcdfJava_tutorial/overview/BuildingFromSource.md @@ -56,9 +56,9 @@ The uber jars, such as `toolsUI.jar` and `netcdfAll.jar`, will be found in `buil ## Publishing NetCDF-Java comprises several modules, many of which you can use within your own projects, as described [here](using_netcdf_java_artifacts.html). -At Unidata, we publish the artifacts that those modules generate to our Nexus repository. +At Unidata, we publish the artifacts that those modules generate to our artifacts repository. -However, it may happen that you need artifacts for the in-development version of netCDF-Java in your local branch, which we usually don’t upload to Nexus. +However, it may happen that you need artifacts for the in-development version of netCDF-Java in your local branch, which we usually don’t upload to the artifacts' server. We do publish nightly SNAPSHOTS, but those may not have the development changes you are currently working on. Never fear: you can build them yourself and publish them to your local Maven repository! diff --git a/native-compression/libaec-native/build.gradle.kts b/native-compression/libaec-native/build.gradle.kts index 980c300e8a..097c1bfc1e 100644 --- a/native-compression/libaec-native/build.gradle.kts +++ b/native-compression/libaec-native/build.gradle.kts @@ -72,6 +72,18 @@ tasks.processResources { dependsOn(processNativeResources) } var publishTaskName = "nativeLibs" publishing { + // we only publish releases of the native jars + repositories.clear() + repositories { + maven { + name = "releases" + url = uri("https://artifacts.unidata.ucar.edu/repository/unidata-releases/") + credentials { + username = extra.properties["artifacts.username"] as? String + password = extra.properties["artifacts.password"] as? String + } + } + } publications { create(publishTaskName) { from(components["java"]) diff --git a/native-compression/libblosc2-native/build.gradle.kts b/native-compression/libblosc2-native/build.gradle.kts index ccfe5fd9e3..8fb65b122b 100644 --- a/native-compression/libblosc2-native/build.gradle.kts +++ b/native-compression/libblosc2-native/build.gradle.kts @@ -73,6 +73,18 @@ tasks.processResources { dependsOn(processNativeResources) } var publishTaskName = "nativeLibs" publishing { + // we only publish releases of the native jars + repositories.clear() + repositories { + maven { + name = "releases" + url = uri("https://artifacts.unidata.ucar.edu/repository/unidata-releases/") + credentials { + username = extra.properties["artifacts.username"] as? String + password = extra.properties["artifacts.password"] as? String + } + } + } publications { create(publishTaskName) { from(components["java"]) diff --git a/project-files/jenkins/pipelines/docs b/project-files/jenkins/pipelines/docs index ce392353c4..5df502c464 100644 --- a/project-files/jenkins/pipelines/docs +++ b/project-files/jenkins/pipelines/docs @@ -28,8 +28,8 @@ pipeline { select-java temurin 11 set +x ./gradlew \ - -Pnexus.username=`get_pw NEXUS_USER` \ - -Pnexus.password=`get_pw NEXUS_PW` \ + -Partifacts.username=`get_pw ARTIFACTS_USER` \ + -Partifacts.password=`get_pw ARTIFACTS_PW` \ -x :docs:buildJekyllSite \ :docs:publishAsVersionedUserGuide '''