Skip to content

while Gradle publish artifact to Jfrog Artifactory getting Skipping task ':publish' as it has no actions. #134

@reddymalyadri

Description

@reddymalyadri

Describe the bug

I am new to Gradle, I am configuring send artifacts to jfrog in gradle but while uploading getting as it has no actions.

/*

  • This file was generated by the Gradle 'init' task.
  • This project uses @Incubating implementations which are subject to change.
    */
    plugins {
    id 'java-library'
    id 'maven-publish'
    id 'org.springframework.boot' version '3.3.8'
    id 'io.spring.dependency-management' version '1.1.3'
    id "com.jfrog.artifactory" version "5.+"

}

repositories {
mavenLocal()
//
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
// maven {
// url = uri('http://jfrog.ashrayhome.com.au:8081/artifactory/gradle-local/')
// allowInsecureProtocol = true
// }
}
artifactory {
contextUrl = 'http://jfrog.ashrayhome.com.au:8081/artifactory'
publish {
repository {
repoKey = 'gradle-local'
username = project.findProperty("artifactory_user")
password = project.findProperty("artifactory_password")
}
defaults {
publications('mavenJava')
publishArtifacts = true
}
}
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
agent
}
jar {
enabled = true
archiveClassifier.set("") // Removes the '-plain' suffix
}

bootJar {
enabled = false
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation libs.org.hibernate.orm.hibernate.core
implementation libs.org.springframework.boot.spring.boot.starter.data.jpa
implementation libs.org.springframework.boot.spring.boot.starter.web
implementation libs.org.springframework.boot.spring.boot.starter.security
implementation libs.org.hibernate.validator.hibernate.validator
implementation libs.com.fasterxml.jackson.core.jackson.databind
implementation libs.org.hibernate.orm.hibernate.envers
implementation libs.org.springframework.spring.context
//implementation libs.org.apache.logging.log4j.log4j.implementation
implementation libs.org.apache.commons.commons.lang3
implementation libs.com.opencsv.opencsv
implementation libs.org.apache.commons.commons.math3
implementation libs.io.projectreactor.reactor.core
implementation libs.org.springframework.spring.web
implementation libs.org.springframework.boot.spring.boot.starter.webflux
compileOnly libs.org.projectlombok.lombok
annotationProcessor libs.org.projectlombok.lombok
// testImplementation libs.org.springframework.boot.spring.boot.starter.test
}

group = 'com.gf.exception'
version = '4.0.0-SNAPSHOT'
description = 'GF Global Exception'
java.sourceCompatibility = JavaVersion.VERSION_17

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId = 'com.gf.exception'
artifactId = 'gf-exception'
version = '4.0.0'
}
}}

Image

I can able to create artifact but i couldn't able to upload artifactto jfrog

Current behavior

Configure project :
Evaluating root project 'gf-exception' using build file 'D:\springboot-3x\gf-exception-service\build.gradle'.
Resolved plugin [id: 'java-library']
Resolved plugin [id: 'maven-publish']
Resolved plugin [id: 'org.springframework.boot', version: '3.3.8']
Resolved plugin [id: 'io.spring.dependency-management', version: '1.1.3']
Resolved plugin [id: 'com.jfrog.artifactory', version: '5.+']
Applying dependency management to configuration 'annotationProcessor' in project 'gf-exception'
Applying dependency management to configuration 'api' in project 'gf-exception'
Applying dependency management to configuration 'apiElements' in project 'gf-exception'
Applying dependency management to configuration 'archives' in project 'gf-exception'
Applying dependency management to configuration 'bootArchives' in project 'gf-exception'
Applying dependency management to configuration 'compileClasspath' in project 'gf-exception'
Applying dependency management to configuration 'compileOnly' in project 'gf-exception'
Applying dependency management to configuration 'compileOnlyApi' in project 'gf-exception'
Applying dependency management to configuration 'default' in project 'gf-exception'
Applying dependency management to configuration 'developmentOnly' in project 'gf-exception'
Applying dependency management to configuration 'implementation' in project 'gf-exception'
Applying dependency management to configuration 'mainSourceElements' in project 'gf-exception'
Applying dependency management to configuration 'productionRuntimeClasspath' in project 'gf-exception'
Applying dependency management to configuration 'runtimeClasspath' in project 'gf-exception'
Applying dependency management to configuration 'runtimeElements' in project 'gf-exception'
Applying dependency management to configuration 'runtimeOnly' in project 'gf-exception'
Applying dependency management to configuration 'testAndDevelopmentOnly' in project 'gf-exception'
Applying dependency management to configuration 'testAnnotationProcessor' in project 'gf-exception'
Applying dependency management to configuration 'testCompileClasspath' in project 'gf-exception'
Applying dependency management to configuration 'testCompileOnly' in project 'gf-exception'
Applying dependency management to configuration 'testImplementation' in project 'gf-exception'
Applying dependency management to configuration 'testResultsElementsForTest' in project 'gf-exception'
Applying dependency management to configuration 'testRuntimeClasspath' in project 'gf-exception'
Applying dependency management to configuration 'testRuntimeOnly' in project 'gf-exception'
Applying dependency management to configuration 'agent' in project 'gf-exception'
All projects evaluated.
Task name matched 'publish'
Selected primary task 'publish' from project :
Tasks to be executed: [task ':publish']
Tasks that were excluded: []
Resolve mutations for :publish (Thread[Execution worker,5,main]) started.
:publish (Thread[Execution worker,5,main]) started.

Task :publish UP-TO-DATE
Skipping task ':publish' as it has no actions.

Reproduction steps

No response

Expected behavior

No response

Artifactory Gradle plugin version

gradle-8.12

Operating system type and version

Windows and linux

JFrog Artifactory version

No response

Gradle version

gradle-8.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions