neoforged / NeoGradle

Gradle plugin for NeoForge development
GNU Lesser General Public License v2.1
47 stars 24 forks source link

Rework how download locations for libraries are resolved #206

Closed shartte closed 5 months ago

shartte commented 5 months ago

Speeds up publishing of NeoForge by:

Further work: Instead of caching on the tool-level, it should cache on the (List<URI> repositoryUri, String path) level, since a transitive dependency may still be used by multiple different tools, but a download URI for it only has to be looked up once.

neoforged-pr-publishing[bot] commented 5 months ago

Last commit published: a4b50c544a7ce40133c4dfe52b38a8e7354d5fa4.

PR Publishing ### The artifacts published by this PR: - :package: [`net.neoforged.gradle:common:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173585) - :package: [`net.neoforged.gradle.common:net.neoforged.gradle.common.gradle.plugin:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173587) - :package: [`net.neoforged.gradle:dsl-common:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173588) - :package: [`net.neoforged.gradle:dsl-platform:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173591) - :package: [`net.neoforged.gradle:dsl-vanilla:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173593) - :package: [`net.neoforged.gradle:dsl-mixin:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173589) - :package: [`net.neoforged.gradle:mixin:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173594) - :package: [`net.neoforged.gradle.mixin:net.neoforged.gradle.mixin.gradle.plugin:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173595) - :package: [`net.neoforged.gradle:dsl-neoform:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173590) - :package: [`net.neoforged.gradle:dsl-userdev:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173592) - :package: [`net.neoforged.gradle.neoform:net.neoforged.gradle.neoform.gradle.plugin:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173597) - :package: [`net.neoforged.gradle.platform:net.neoforged.gradle.platform.gradle.plugin:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173600) - :package: [`net.neoforged.gradle:test-utils:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173601) - :package: [`net.neoforged.gradle:userdev:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173602) - :package: [`net.neoforged.gradle:neoform:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173596) - :package: [`net.neoforged.gradle.userdev:net.neoforged.gradle.userdev.gradle.plugin:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173603) - :package: [`net.neoforged.gradle:platform:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173599) - :package: [`net.neoforged.gradle:vanilla:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173605) - :package: [`net.neoforged.gradle:utils:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173604) - :package: [`net.neoforged.gradle.vanilla:net.neoforged.gradle.vanilla.gradle.plugin:7.0.148-pr-206-library-optimization`](https://github.com/neoforged/NeoGradle/packages/2173607) ### Repository Declaration In order to use the artifacts published by the PR, add the following repository to your buildscript: ```gradle repositories { maven { name 'Maven for PR #206' // https://github.com/neoforged/NeoGradle/pull/206 url 'https://prmaven.neoforged.net/NeoGradle/pr206' content { includeModule('net.neoforged.gradle', 'common') includeModule('net.neoforged.gradle.common', 'net.neoforged.gradle.common.gradle.plugin') includeModule('net.neoforged.gradle', 'dsl-common') includeModule('net.neoforged.gradle', 'dsl-platform') includeModule('net.neoforged.gradle', 'dsl-vanilla') includeModule('net.neoforged.gradle', 'dsl-mixin') includeModule('net.neoforged.gradle', 'mixin') includeModule('net.neoforged.gradle.mixin', 'net.neoforged.gradle.mixin.gradle.plugin') includeModule('net.neoforged.gradle', 'dsl-neoform') includeModule('net.neoforged.gradle', 'dsl-userdev') includeModule('net.neoforged.gradle.neoform', 'net.neoforged.gradle.neoform.gradle.plugin') includeModule('net.neoforged.gradle.platform', 'net.neoforged.gradle.platform.gradle.plugin') includeModule('net.neoforged.gradle', 'test-utils') includeModule('net.neoforged.gradle', 'userdev') includeModule('net.neoforged.gradle', 'neoform') includeModule('net.neoforged.gradle.userdev', 'net.neoforged.gradle.userdev.gradle.plugin') includeModule('net.neoforged.gradle', 'platform') includeModule('net.neoforged.gradle', 'vanilla') includeModule('net.neoforged.gradle', 'utils') includeModule('net.neoforged.gradle.vanilla', 'net.neoforged.gradle.vanilla.gradle.plugin') } } } ```