gesellix / gradle-debian-plugin

Gradle plugin to create Debian packages
http://www.gesellix.net/
MIT License
39 stars 14 forks source link

Getting error "Received status code 403 from server: Forbidden" with v2022-07-28T23-23-00 #53

Open itsthamarai opened 3 days ago

itsthamarai commented 3 days ago

Hi - We are using this version "v2022-07-28T23-23-00" in our project, we are getting the error "Could not GET 'https://mvnrepository.com/artifact/de.gesellix/gradle-debian-plugin/org/apache/maven/maven-archiver/3.8.5/maven-archiver-3.8.5.pom'. Received status code 403 from server: Forbidden" for the last couple of days.

gesellix commented 3 days ago

Hey, can you share more details about your project configuration? The download path looks suprising to me, because the maven-archiver pom should not be a subdirectory of the gradle-debian-plugin. I suppose your repository configuration might point to mvnrepository.com instead of something like https://repo1.maven.org/maven2/.

itsthamarai commented 3 days ago

Sure. This is what we have in build.gradle.

buildscript { repositories { maven { url "https://mvnrepository.com/artifact/de.gesellix/gradle-debian-plugin" } mavenCentral() } dependencies { classpath("de.gesellix:gradle-debian-plugin:2022-07-28T23-23-00") } } I hope this helps.

gesellix commented 2 days ago

So, the url should be changed. Please check the description at the plugin portal: https://plugins.gradle.org/plugin/de.gesellix.debian

For modern versions of Gradle your config should be replaced by:

plugins {
  id("de.gesellix.debian") version "2022-07-28T23-23-00"
}