Skip to content
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

Shadow plugin incompatible with Gradle 7.0 - transformers's property missing an input or output annotation #665

Closed
avillev opened this issue Apr 19, 2021 · 3 comments
Milestone

Comments

@avillev
Copy link

avillev commented Apr 19, 2021

Please check the User Guide before submitting "how do I do 'x'?" questions!

Shadow Version

6.1.0

Gradle Version

7.0

Expected Behavior

To function

Actual Behavior

This error happens:

`
Some problems were found with the configuration of task ':utils:utils-shaded-ahc:shadowJar' (type 'ShadowJar').

  • Type 'ShadowJar' property 'transformers.$0.keyTransformer' is missing an input or output annotation.

Gradle Build Script(s)

import com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer

final pomName = 'RAPID General asynchttpclient Shaded utility libraries'

//Shadow jar definition
shadowJar {
    manifest { inheritFrom project.tasks.manifestTask.manifest }
    archiveBaseName.set(artifactName)
    //No classifier, no -all on the jar (works only with the deprecated field because of https://github.com/johnrengelman/shadow/issues/463)
    classifier = ''

    //Relocation of the dependencies
    relocate 'org.asynchttpclient.',    'rapid.shaded.org.asynchttpclient.'
    relocate 'io.netty.',               'rapid.shaded.io.netty.'
    relocate 'com.typesafe.netty.',     'rapid.shaded.com.typesafe.netty.'
    relocate 'org.reactivestreams.',    'rapid.shaded.org.reactivestreams.'

    dependencies {
        exclude(dependency('io.netty::.*'))
        exclude(dependency('org.slf4j::.*'))
    }

    exclude 'javax/activation/**'
    exclude 'com/sun/activation/**'

    exclude 'META-INF/maven/com.sun.activation/**'

    transform(PropertiesFileTransformer) {
        keyTransformer = { key ->
            key.replaceAll('^(org\\.asynchttpclient\\..*)$', 'rapid.shaded.$1')
        }
    }
}

dependencies {
    implementation(Libraries.ahc)
    api(Libraries.slf4j)
}

ext.excluded_dependencies = [Libraries.ahc]
@avillev avillev changed the title Shadow plugin incompatible with Gradle 7.0 Shadow plugin incompatible with Gradle 7.0 - transformers's property missing an input or output annotation Apr 19, 2021
@VitaliyKulikov
Copy link

seems, something in progress #657

@m8nmueller
Copy link
Contributor

This was fixed in #647 and will be included in the next release.

rudi added a commit to rudi/abstools that referenced this issue Apr 25, 2021
- The shadowJar plugin does not support gradle 7.0 yet; see
  johnrengelman/shadow#665
rudi added a commit to rudi/abstools that referenced this issue Apr 25, 2021
- Revert to earlier gradle since the shadowJar plugin does not support
  gradle 7.0 yet; see
  johnrengelman/shadow#665

- Set `LANG` environment variable for all steps
rudi added a commit to rudi/abstools that referenced this issue Apr 25, 2021
- Revert to earlier gradle since the shadowJar plugin does not support
  gradle 7.0 yet; see
  johnrengelman/shadow#665

- Use Erlang 23.3.1

- Set `LANG` environment variable for all steps
@breskeby
Copy link

@MaxM123 Any plans already when 6.2 will be released?

@johnrengelman johnrengelman modified the milestones: 7.0, 6.2 Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants