https://github.com/dnalchemist/maven-publish-plugin
Simple plugin to upload java components to Maven repository
https://github.com/dnalchemist/maven-publish-plugin
gradle maven-repository plugin publish upload
Last synced: 17 days ago
JSON representation
Simple plugin to upload java components to Maven repository
- Host: GitHub
- URL: https://github.com/dnalchemist/maven-publish-plugin
- Owner: DNAlchemist
- License: other
- Created: 2020-02-03T22:02:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T12:09:34.000Z (over 5 years ago)
- Last Synced: 2025-02-15T09:41:27.355Z (over 1 year ago)
- Topics: gradle, maven-repository, plugin, publish, upload
- Language: Groovy
- Homepage:
- Size: 73.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Maven Publish Plugin
**Simple plugin to upload java components to Maven repository**
You can specify url as a file or a Maven repository
## Applying plugin
Using the plugins DSL:
plugins {
id 'one.chest.maven-publish-plugin' version '0.0.1'
}
Using legacy plugin application:
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.one.chest:maven-publish-plugin:0.0.1'
}
}
apply plugin: 'one.chest.maven-publish-plugin'
## Plugin setup
### via gradle properties
publish.repository.url=https://nexus.example.com/repository/maven-releases
publish.repository.username=admin
publish.repository.password=password
### via project settings
project.group = 'com.example'
project.name = 'application'
project.version = '0.1'
### via build.gradle extension
*Any parameter declared in extension has the highest priority*
publish {
repository {
url 'https://nexus.example.com/repository/maven-releases'
username 'admin'
password 'admin'
}
groupId 'com.example'
artifactId 'application'
version '0.1'
}