I'm trying to make my project send the JARs files to a nexus repository (maven 2) but I'm not getting it. The project is scheduled in kotlin.
This code snippet is closest to what I got from a result:
plugins {
id 'maven'
}
allprojects {
uploadArchives {
repositories {
mavenDeployer {
repository(url: "http://meusite.com/repository/meurepo-releases/") {
authentication(userName: variavelComUser, password: variavelComPass)
}
snapshotRepository(url: "http://meusite.com/repository/meurepo-snapshots/") {
authentication(userName: variavelComUser, password: variavelComPass)
}
}
}
}
}
When I run the task publish
this occurs:
20:02:07: Executing task 'uploadArchives'...
> Task :uploadArchives
> Task :environment:core:compileJava NO-SOURCE
> Task :environment:core:compileKotlinCommon
> Task :environment:core:processResources NO-SOURCE
> Task :environment:core:classes
> Task :environment:core:inspectClassesForKotlinIC
> Task :environment:core:jar
> Task :environment:core:uploadArchives
> Task :environment:js:compileJava NO-SOURCE
> Task :environment:js:compileKotlin2Js
> Task :environment:js:processResources NO-SOURCE
> Task :environment:js:classes
> Task :environment:js:inspectClassesForKotlinIC
> Task :environment:js:jar
> Task :environment:js:uploadArchives
> Task :environment:jvm:compileKotlin
> Task :environment:jvm:compileJava NO-SOURCE
> Task :environment:jvm:processResources NO-SOURCE
> Task :environment:jvm:classes UP-TO-DATE
> Task :environment:jvm:inspectClassesForKotlinIC
> Task :environment:jvm:jar
> Task :environment:jvm:uploadArchives
BUILD SUCCESSFUL in 14s
But when I access the nexus I see nothing there, it is still empty.
What am I doing wrong or what is missing to do?