如何从GitHub使用最新的gradle-ospackage-plugin。

huangapple go评论64阅读模式
英文:

How to use latest gradle-ospackage-plugin from GitHub

问题

I have recently upgraded to Gradle 8 finding out that the nebula.ospackage plugin distributed in Gradle plugin Portal is not compatible.

In gradle-ospackage-plugin GitHub repo, there's the 11 version which claim to resolve the incompatibility with Gradle 8.

This code doesn't work:

plugins {
    id "nebula.ospackage" version "11.0.0"
}

with:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'nebula.ospackage:nebula.ospackage.gradle.plugin:11.0.0')
  Searched in the following repositories:
    Gradle Central Plugin Repository

How to use in Gradle a plugin from GitHub and not from the official Gradle Plugin site?

Thanks

英文:

I have recently upgraded to Gradle 8 finding out that the nebula.ospackage plugin distributed in Gradle plugin Portal is not compatible.

In gradle-ospackage-plugin GitHub repo, there's the 11 version which claim to resolve the incompatibility with Gradle 8.

This code doesn't work:

plugins {
    id "nebula.ospackage" version "11.0.0"
}

with:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'nebula.ospackage:nebula.ospackage.gradle.plugin:11.0.0')
  Searched in the following repositories:
    Gradle Central Plugin Repository

How to use in Gradle a plugin from GitHub and not from the official Gradle Plugin site?

Thanks

答案1

得分: 3

我已经找到了使用最新的Gradle OSPackage插件的方法,它只是从nebula.ospackage更改为com.netflix.nebula.ospackage,所以:

plugins {
    id "com.netflix.nebula.ospackage" version "11.0.0"
}

完美运行!

英文:

I have found the way to use the latest gradle ospackage plugin, it has just changed name from nebula.ospackage to com.netflix.nebula.ospackage so:

plugins {
    id "com.netflix.nebula.ospackage" version "11.0.0"
}

works perfectly !

huangapple
  • 本文由 发表于 2023年2月26日 19:13:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/75571594.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定