Grale

问题

gradle版本7.5
idea执行build任务时报错,如下所示

解决

删除net.ltgt.apt相关的插件依赖,https://github.com/tbroyer/gradle-apt-plugin#readme

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Some problems were found with the configuration of task ':compileJava' (type 'JavaCompile').
- Type 'org.gradle.api.tasks.compile.JavaCompile' property 'options.compilerArgumentProviders.apt$0.name' is missing an input or output annotation.

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Exception is:
org.gradle.internal.execution.WorkValidationException: Some problems were found with the configuration of task ':compileJava' (type 'JavaCompile').
- Type 'org.gradle.api.tasks.compile.JavaCompile' property 'options.compilerArgumentProviders.apt$0.name' is missing an input or output annotation.

Reason: A property without annotation isn't considered during up-to-date checking.

Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.

Please refer to https://docs.gradle.org/7.6/userguide/validation_problems.html#missing_annotation for more details about this problem.
- Type 'org.gradle.api.tasks.compile.JavaCompile' property 'options.compilerArgumentProviders.apt$0.publicType' is missing an input or output annotation.

Reason: A property without annotation isn't considered during up-to-date checking.

Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.

Please refer to https://docs.gradle.org/7.6/userguide/validation_problems.html#missing_annotation for more details about this problem.