gradle上传jar到nexus

阅读更多
原文地址: https://docs.gradle.org/current/userguide/maven_plugin.html
configurations {
    deployerJars
}

dependencies {
    deployerJars "org.apache.maven.wagon:wagon-http:2.2"
}

uploadArchives {
    configuration = configurations.deployerJars
    repositories {
        mavenDeployer {
            repository(url: "http://127.0.0.1:9081/nexus/content/repositories/releases/") {
                authentication(userName: "admin", password: "admin123")
            }
        }
    }
}
I get

aromanov@ws:~/etc/apache-s4-0.6.0$ gradle -i upload

你可能感兴趣的:(gradle上传jar到nexus)