Skip to content

[share] release builds are not able to compile with JDK 12 #66513

@mig35

Description

@mig35

After upgrading from share 0.6.5 to share 0.6.5+2 my release application is not able to compile anymore.

The problem is that in share plugin there are this lines of code:

def args = ["-Xlint:deprecation","-Xlint:unchecked","-Werror"]

project.getTasks().withType(JavaCompile){
    options.compilerArgs.addAll(args)
}

As a result of this lines third party plugins that have warnings now are not able to compile anymore. And I can not override this behavior from my app's gradle file.

Can you remove this lines please? Basically only the last one gives an error (-Werror), so we can keep others if you want.

The commit with the issue: flutter/plugins@17d7548#diff-1777f3163389c6f6a0846e45aba1b739

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projecta: releaseChallenges faced when attempting to productionize an appc: new featureNothing broken; request for a new capabilityp: shareThe Share pluginpackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions