Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6088d5b0
Commit
6088d5b0
authored
Mar 17, 2022
by
Katrin Leinweber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify that ~/.gradle/ is not hard-coded
parent
4c543ced
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
doc/user/packages/maven_repository/index.md
doc/user/packages/maven_repository/index.md
+4
-3
No files found.
doc/user/packages/maven_repository/index.md
View file @
6088d5b0
...
...
@@ -283,7 +283,8 @@ To authenticate to the Package Registry, you need either a personal access token
### Authenticate with a personal access token in Gradle
Create a file `~/.gradle/gradle.properties` with the following content:
In [your `GRADLE_USER_HOME` directory](https://docs.gradle.org/current/userguide/directory_layout.html#dir:gradle_user_home),
create a file `gradle.properties` with the following content:
```
groovy
gitLabPrivateToken=REPLACE_WITH_YOUR_PERSONAL_ACCESS_TOKEN
...
...
@@ -586,7 +587,7 @@ To publish a package by using Gradle:
url "https://gitlab.example.com/api/v4/projects/<PROJECT_ID>/packages/maven"
credentials(HttpHeaderCredentials) {
name = "Private-Token"
value = gitLabPrivateToken // the variable resides in
~/.gradle
/gradle.properties
value = gitLabPrivateToken // the variable resides in
$GRADLE_USER_HOME
/gradle.properties
}
authentication {
header(HttpHeaderAuthentication)
...
...
@@ -820,7 +821,7 @@ rm -rf ~/.m2/repository
If you're using Gradle, run this command to clear the cache:
```
shell
rm -rf ~/.gradle/caches
rm -rf ~/.gradle/caches
# Or replace ~/.gradle with your custom GRADLE_USER_HOME
```
### Review network trace logs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment