Skip to content

Deprecated API usage in ShadowJar 'input.set' for Gradle 8+ Architectury template #33

Description

@Saverio2008

Minecraft Development for IntelliJ plugin version

2025.2-1.8.9

IntelliJ version

2025.2.5 (Ultimate Edition)

Operating System

MacOS

Target platform

Architectury

Description of the bug

In the Architectury mod template projects, the remapJar task in the build.gradle files of the subprojects (Fabric, Forge, NeoForge, etc.) uses the deprecated input property, for example:

remapJar {
    input.set shadowJar.archiveFile
}

Gradle 8+ indicates that input is deprecated and should be replaced with inputFile. This is a minor issue, but for users creating multiple projects, it becomes inconvenient because each time the template is used or updated, the deprecated usage must be manually fixed.

The template could use the following instead:

remapJar {
    inputFile.set shadowJar.archiveFile
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions