Skip to content

Publish the Gradle plugin to the Gradle Plugin Portal #309

Open

Description

@fladulima

I am trying to use the gradle plugin using plugins DSL, but the version 0.29 can't be found in gradle plugin repository.

plugins {
    id 'org.springframework.boot' version '2.6.2'
    id 'io.spring.dependency-management' version '1.0.11.RELEASE'
    id 'java-library'
    id 'io.spring.javaformat' version '0.0.29'
}

Thanks

Activity

  1. wilkinsona commented on Jan 29, 2022

    @wilkinsona
    Contributor

    Publishing the Gradle plugin to the Portal was removed as part of 9a485f8. Unfortunately, following Bintray's sunset there's no automated way in which a Maven-based build can publish a plugin to the Portal. Building this project with Gradle isn't easy due to its reliance on Tycho.

    The README describes how to obtain the plugin from Maven Central. That's the recommended approach at this time.

  2. changed the title [-]Publish the gradle plugin 0.29 to the gradle Plugin Portal.[/-] [+]Publish the Gradle plugin to the Gradle Plugin Portal[/+] on Jan 29, 2022
  3. added this to the 0.0.x milestone on Jan 29, 2022
  4. fladulima commented on Jan 29, 2022

    @fladulima
    Author

    thanks for the info.

    I just found out that I can also provide a resolutionStrategy in settings.gradle.

    build.gradle

    plugins {
        id 'io.spring.javaformat'
    }
    
    

    settings.gradle

    pluginManagement {
        resolutionStrategy {
            eachPlugin {
                if (requested.id.name == 'javaformat') {
                    useModule('io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.29')
                }
            }
        }
    }
    
  5. philwebb commented on Feb 2, 2022

    @philwebb
    Contributor

    I'd like to keep this open in case we can publish directly without needing Bintray.

  6. SayakMukhopadhyay commented on Apr 2, 2023

    @SayakMukhopadhyay

    @philwebb Seems like this was fixed in #321. It works for me.

  7. philwebb commented on Apr 5, 2023

    @philwebb
    Contributor

    Thanks @SayakMukhopadhyay, I think #321 improved things but we've still got an old version at https://plugins.gradle.org/plugin/io.spring.javaformat so there's probably some value in leaving this open.

  8. philwebb commented on Dec 11, 2023

    @philwebb
    Contributor

    When we fix this we should also look at updating the docs (see #394).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions