update README

This commit is contained in:
2026-03-09 22:55:58 +03:30
parent a0b0d7bf99
commit fe71f1d2fc

View File

@@ -12,7 +12,7 @@ The steps below cover the process from **creating the repository** to
------------------------------------------------------------------------ ------------------------------------------------------------------------
# 2. Create the Repository # 1. Create the Repository
1. Log in to the Nexus UI: 1. Log in to the Nexus UI:
@@ -28,12 +28,12 @@ The steps below cover the process from **creating the repository** to
4. Configure the repository: 4. Configure the repository:
Setting Value | Setting | Value |
------------------- ---------------- |-------------------|----------------|
Name kotlin-mirror | Name | kotlin-mirror |
Version policy Release | Version policy | Release |
Layout policy Strict | Layout policy | Strict |
Deployment policy Allow redeploy | Deployment policy | Allow redeploy |
5. Click **Save**. 5. Click **Save**.
@@ -42,7 +42,7 @@ environment.
------------------------------------------------------------------------ ------------------------------------------------------------------------
# 3. Repository URL # 2. Repository URL
After creation, the repository is accessible at: After creation, the repository is accessible at:
@@ -54,7 +54,7 @@ https://mirror.mahgit.ir/repository/kotlin-mirror/org/jetbrains/kotlin/kotlin-st
------------------------------------------------------------------------ ------------------------------------------------------------------------
# 4. Upload the Artifact # 3. Upload the Artifact
Because the server has **no internet access**, artifacts must be Because the server has **no internet access**, artifacts must be
downloaded externally and uploaded manually. downloaded externally and uploaded manually.
@@ -67,12 +67,12 @@ Steps:
2. Fill the fields: 2. Fill the fields:
Field Value | Field | Value |
----------- ---------------------- |-----------|----------------------|
Group org.jetbrains.kotlin | Group | org.jetbrains.kotlin |
Artifact kotlin-stdlib | Artifact | kotlin-stdlib |
Version 1.9.0 | Version | 1.9.0 |
Packaging jar | Packaging | jar |
3. Upload the following files: 3. Upload the following files:
@@ -85,7 +85,7 @@ The artifact will now be stored inside the repository.
------------------------------------------------------------------------ ------------------------------------------------------------------------
# 5. Test Artifact Download # 4. Test Artifact Download
Open the artifact URL in a browser: Open the artifact URL in a browser:
@@ -95,7 +95,7 @@ If the file downloads successfully, the repository is working correctly.
------------------------------------------------------------------------ ------------------------------------------------------------------------
# 6. Configure Gradle to Use the Mirror # 5. Configure Gradle to Use the Mirror
Modify your Gradle project configuration to use the Nexus mirror instead Modify your Gradle project configuration to use the Nexus mirror instead
of Maven Central. of Maven Central.
@@ -118,19 +118,7 @@ Gradle will now resolve dependencies from the Nexus mirror.
------------------------------------------------------------------------ ------------------------------------------------------------------------
# 7. Prepare for Offline Dependency Usage # 6. Test Build in Offline Environment
Ensure that all required dependencies are uploaded to Nexus beforehand.\
For Kotlin projects this may include additional dependencies such as:
- kotlin-stdlib-common
- org.jetbrains.annotations
These must also be downloaded externally and uploaded to the mirror.
------------------------------------------------------------------------
# 8. Test Build in Offline Environment
Run the Gradle build on the offline server: Run the Gradle build on the offline server: