0

I am trying to release a project/module using the net researchgate release plugin, and I can't seem to get it to work.

Here's my build.gradle

plugins {
    id 'application'
    id 'java'
    id 'org.springframework.boot' version '2.7.2'
    id 'io.spring.dependency-management' version '1.0.12.RELEASE'
    id 'maven-publish'
    id 'net.researchgate.release' version '3.0.1'
}

configurations {
    compileOnly {
        extendsFrom annotationProcessor
    }
}

jar {
    enabled = false
}

repositories {
    mavenLocal()
    mavenCentral()
}

release {
    failOnCommitNeeded = false
}

publishing {
    publications {
        library(MavenPublication) {
            from components.java
        }
    }
    repositories {
        mavenLocal()
    }
}

In my gradle.properties I have:

version=0.0.17-SNAPSHOT
release.useAutomaticVersion=true

When running

./gradlew clean build release

I am getting the following files in the build folder:

libs/myapp-0.0.16-SNAPSHOT.jar
libs/distributions/myapp-0.0.16-SNAPSHOT.tar
libs/distributions/myapp-0.0.16-SNAPSHOT.zip
libs/distributions/myapp-boot-0.0.16-SNAPSHOT.tar
libs/distributions/myapp-boot-0.0.16-SNAPSHOT.zip

I'm expecting a myapp-0.0.16.jar somewhere, that I can then publish to a Maven repo like a Nexus.

Any help would be greatly appreciated. Thanks.

D. Joe
  • 573
  • 1
  • 9
  • 17

0 Answers0