0

Suddunly got an error which state that

     Could not resolve all artifacts for configuration ':common:security:cas-server:classpath'.
   > Could not resolve org.scaldingspoon.gradle:gradle-waroverlay-plugin:0.9.3.
     Required by:
         project :common:security:cas-server
      > Could not resolve org.scaldingspoon.gradle:gradle-waroverlay-plugin:0.9.3.
         > Could not get resource 'https://repo.spring.io/libs-milestone/org/scaldingspoon/gradle/gradle-waroverlay-plugin/0.9.3/gradle-waroverlay-plugin-0.9.3.pom'.
            > Could not GET 'https://repo.spring.io/libs-milestone/org/scaldingspoon/gradle/gradle-waroverlay-plugin/0.9.3/gradle-waroverlay-plugin-0.9.3.pom'. Received status code 401 from server: 

tried by changing version and all, but still got the issue

**Gradle Version: 6.8.3**

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath "org.scaldingspoon.gradle:gradle-waroverlay-plugin:0.9.3"
    }
}
apply plugin: 'waroverlay'

war {
    includeWarJars = true
    entryCompression = ZipEntryCompression.STORED

}

Shafeeq Mohammed
  • 1,193
  • 17
  • 25
  • How did you import plugin? – Egor Jun 23 '23 at 08:32
  • It seems pretty clean from the 401, try getting ```https://repo.spring.io/libs-milestone/org/scaldingspoon/gradle/gradle-waroverlay-plugin/0.9.3/gradle-waroverlay-plugin-0.9.3.pom``` by just pasting it in the browser using your credentials. – Ali Ben Zarrouk Jun 23 '23 at 09:06
  • resolved the issue by changing the dependencies. posted the changes as answer. Thank you for the replay – Shafeeq Mohammed Jun 23 '23 at 09:52

1 Answers1

0

Resolved the issue by changing dependencies.

dependencies {
            classpath "io.freefair.war-overlay:io.freefair.war-overlay.gradle.plugin:0.10.0"
             }
apply plugin: "io.freefair.war-overlay"

war {
    //includeWarJars = true - this line removed
    entryCompression = ZipEntryCompression.STORED
}
Shafeeq Mohammed
  • 1,193
  • 17
  • 25