Skip to content

Unresolved reference 'decodeBase64' #1287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
sugmanue opened this issue May 19, 2025 · 1 comment
Closed
1 task

Unresolved reference 'decodeBase64' #1287

sugmanue opened this issue May 19, 2025 · 1 comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@sugmanue
Copy link
Contributor

Describe the bug

Building the smithy protocol tests with a standalone smithy-build.json creates Kotlin files that cannot be compiled.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected behavior

The project should compile without unresolved references

Current behavior

The project fails to build with Unresolved reference 'decodeBase64'

Steps to Reproduce

  1. Checkout smithy-kotlin, build it and publish to maven local (./gradle clean build pTML)
  2. Create an smithy-build.json files with
{
    "version": "1.0",
    "outputDirectory": "build/output",
    "maven": {
        "repositories": [
            {
                "url": "file:///${HOME}/.m2/repository"
            },
            {
                "url": "https://repo.maven.apache.org/maven2"
            }

        ],
        "dependencies": [
            "software.amazon.smithy:smithy-aws-traits:1.57.1",
            "software.amazon.smithy:smithy-aws-protocol-tests:1.57.1",
            "software.amazon.smithy:smithy-protocol-tests:1.57.1",
            "software.amazon.smithy.kotlin:smithy-kotlin-codegen:0.34.17-SNAPSHOT",
            "software.amazon.smithy.kotlin:smithy-aws-kotlin-codegen:0.34.17-SNAPSHOT"
        ]
    },
    "plugins": {
        "kotlin-codegen": {
            "service": "aws.protocoltests.restjson#RestJson",
            "package": {
                "name": "com.amazon.aws.sdk",
                "version": "2018-01-01"
            },
            "build": {
                "generateFullProject": true,
                "optInAnnotations": ["aws.smithy.kotlin.runtime.InternalApi"],
                "rootProject": true
            }                    
        }
    }            
}
  1. Build the project running smithy build
  2. Build the codegen Kotlin project by running cd build/output/source/kotlin-codegen/; gradle clean build

Possible Solution

See #1281

Context

No response

Smithy-Kotlin version

latest

Platform (JVM/JS/Native)

any

Operating system and version

linux

@sugmanue sugmanue added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels May 19, 2025
@0marperez
Copy link
Contributor

Resolved by #1281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants