diff options
author | Jason Penilla <[email protected]> | 2021-12-25 15:11:42 -0800 |
---|---|---|
committer | Jason Penilla <[email protected]> | 2021-12-25 15:27:04 -0800 |
commit | 498a265e7cbd8578d456c98f55299ffb2c2056e8 (patch) | |
tree | bd36ea90cc95be010f02fefb4f51a6b24108d5aa /patches/api/0002-Build-system-changes.patch | |
parent | 464b1715bb8fb3c87b1f0f1f76d136b581794228 (diff) | |
download | Paper-498a265e7cbd8578d456c98f55299ffb2c2056e8.tar.gz Paper-498a265e7cbd8578d456c98f55299ffb2c2056e8.zip |
declare capabilities for old artifact id and alternate api implementationsapi-capabilities
closes #7190
Diffstat (limited to 'patches/api/0002-Build-system-changes.patch')
-rw-r--r-- | patches/api/0002-Build-system-changes.patch | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/patches/api/0002-Build-system-changes.patch b/patches/api/0002-Build-system-changes.patch index b9c0bae06d..2862d7bbf2 100644 --- a/patches/api/0002-Build-system-changes.patch +++ b/patches/api/0002-Build-system-changes.patch @@ -5,10 +5,31 @@ Subject: [PATCH] Build system changes diff --git a/build.gradle.kts b/build.gradle.kts -index c76bfbcfbe034700bdbd9396643cfca625273a14..1f680baffba17265e8ce38b3516624bffd034075 100644 +index c76bfbcfbe034700bdbd9396643cfca625273a14..2ab670041bd82cab8d51dbc53a796a51d54e5f34 100644 --- a/build.gradle.kts +++ b/build.gradle.kts -@@ -15,15 +15,27 @@ dependencies { +@@ -8,6 +8,20 @@ java { + withJavadocJar() + } + ++configurations { ++ val outgoing = arrayOf(runtimeElements, apiElements, named("sourcesElements"), named("javadocElements")) ++ for (config in outgoing) { ++ config { ++ outgoing { ++ capability("${project.group}:${project.name}:${project.version}") ++ capability("com.destroystokyo.paper:paper-api:${project.version}") ++ capability("org.spigotmc:spigot-api:${project.version}") ++ capability("org.bukkit:bukkit-api:${project.version}") ++ } ++ } ++ } ++} ++ + dependencies { + // api dependencies are listed transitively to API consumers + api("commons-lang:commons-lang:2.6") +@@ -15,15 +29,27 @@ dependencies { api("com.google.code.gson:gson:2.8.8") api("net.md-5:bungeecord-chat:1.16-R0.4") api("org.yaml:snakeyaml:1.30") @@ -37,7 +58,7 @@ index c76bfbcfbe034700bdbd9396643cfca625273a14..1f680baffba17265e8ce38b3516624bf testImplementation("junit:junit:4.13.2") testImplementation("org.hamcrest:hamcrest-library:1.3") testImplementation("org.ow2.asm:asm-tree:9.2") -@@ -60,7 +72,7 @@ tasks.withType<Javadoc> { +@@ -60,7 +86,7 @@ tasks.withType<Javadoc> { (options as StandardJavadocDocletOptions).links( "https://guava.dev/releases/31.0.1-jre/api/docs/", "https://javadoc.io/doc/org.yaml/snakeyaml/1.30/", |