Hi
Thank you for reading. I am in the process of pushing build file to a remote nexus repository. I have followed the instructions by nana from her devops bootcamp.
When I type ./gradlew publish i dont see the jar file being pushed into the remote repo.
this is build file code
plugins {
id ‘java’
id ‘org.springframework.boot’ version ‘2.2.2.RELEASE’
id ‘io.spring.dependency-management’ version ‘1.0.8.RELEASE’
}
group ‘com.example’
version ‘1.0-SNAPSHOT’
sourceCompatibility = 1.8
apply plugin: ‘maven-publish’
publishing {
publications {
maven(MavenPublication) {
artifact(“build/libs/my-app-$version”+“.jar”) {
extension ‘jar’
}}
}
}
repositories {
maven {
name 'nexus'
url "http://159.65.23.158:8081/repository/maven-snapshots/"
credentials {
username project.repoUser
password project.repoPassword
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation ‘org.springframework.boot:spring-boot-starter-web’
implementation group: ‘net.logstash.logback’, name: ‘logstash-logback-encoder’, version: ‘5.2’
testImplementation group: ‘junit’, name: ‘junit’, version: ‘4.12’
}
When I check the nexus repo I dont see no files uploaded?