Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
Widget
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Android Widget
Widget
Commits
387f6ed4
Commit
387f6ed4
authored
Aug 12, 2019
by
王韦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[new] 完善readme
parent
4ac3cfd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
30 deletions
+17
-30
readme.md
readme.md
+17
-30
No files found.
readme.md
View file @
387f6ed4
...
@@ -28,45 +28,32 @@ Also see it in [Gradle plugins](https://plugins.gradle.org/plugin/com.whl.gradle
...
@@ -28,45 +28,32 @@ Also see it in [Gradle plugins](https://plugins.gradle.org/plugin/com.whl.gradle
then, configuration in your build.gradle,such as:
then, configuration in your build.gradle,such as:
simple example:
group 'com.example'
version '1.0-SNAPSHOT'
gradlePublish {
releaseRepository {
url = "http://your repository.com/nexus/content/repositories/releases"
userName = "wangwei"
password = "caihong520"
}
}
complete example:
complete example:
group 'com.example'
group 'com.example'
version '1.0-SNAPSHOT'
version '1.0-SNAPSHOT'
gradlePublish {
gradlePublish {
sourceJarEnabled = true
sourceJarEnabled = true
javaDocEnabled = tru
e
javaDocEnabled = fals
e
signEnabled = false
signEnabled = false
releaseRepository {
releaseRepository {
url = "http://your repository.com/nexus/content/repositories/releases
"
url = "https://hub.zmcms.cn/repository/maven-public/
"
userName = "your release account
"
userName = "wangwei
"
password = "your release account
"
password = "caihong520
"
}
}
snapshotRepository {
snapshotRepository {
url = "http://your repository.com/nexus/content/repositories/snapshots"
url = "https://hub.zmcms.cn/repository/maven-snapshots/"
userName = "your snapshot account"
userName = "wangwei"
password = "your snapshot account"
password = "caihong520"
}
}
}
}
last, execute
`./gradlew publish`
or
`./gradlew :library:publish`
task to publish your library to specified maven repository
last, execute
`./gradlew publish`
or
`./gradlew :library:publish`
task to publish your library to specified maven repository
...
...
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