update README
This commit is contained in:
48
README.md
48
README.md
@@ -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:
|
||||
|
||||
@@ -28,12 +28,12 @@ The steps below cover the process from **creating the repository** to
|
||||
|
||||
4. Configure the repository:
|
||||
|
||||
Setting Value
|
||||
------------------- ----------------
|
||||
Name kotlin-mirror
|
||||
Version policy Release
|
||||
Layout policy Strict
|
||||
Deployment policy Allow redeploy
|
||||
| Setting | Value |
|
||||
|-------------------|----------------|
|
||||
| Name | kotlin-mirror |
|
||||
| Version policy | Release |
|
||||
| Layout policy | Strict |
|
||||
| Deployment policy | Allow redeploy |
|
||||
|
||||
5. Click **Save**.
|
||||
|
||||
@@ -42,7 +42,7 @@ environment.
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
||||
# 3. Repository URL
|
||||
# 2. Repository URL
|
||||
|
||||
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
|
||||
downloaded externally and uploaded manually.
|
||||
@@ -67,12 +67,12 @@ Steps:
|
||||
|
||||
2. Fill the fields:
|
||||
|
||||
Field Value
|
||||
----------- ----------------------
|
||||
Group org.jetbrains.kotlin
|
||||
Artifact kotlin-stdlib
|
||||
Version 1.9.0
|
||||
Packaging jar
|
||||
| Field | Value |
|
||||
|-----------|----------------------|
|
||||
| Group | org.jetbrains.kotlin |
|
||||
| Artifact | kotlin-stdlib |
|
||||
| Version | 1.9.0 |
|
||||
| Packaging | jar |
|
||||
|
||||
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:
|
||||
|
||||
@@ -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
|
||||
of Maven Central.
|
||||
@@ -118,19 +118,7 @@ Gradle will now resolve dependencies from the Nexus mirror.
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
||||
# 7. Prepare for Offline Dependency Usage
|
||||
|
||||
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
|
||||
# 6. Test Build in Offline Environment
|
||||
|
||||
Run the Gradle build on the offline server:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user