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

Build failure when using with Gradle 7.2 and Application plugin #199

Closed
tbnguyen1407 opened this issue Aug 19, 2021 · 1 comment
Closed

Comments

@tbnguyen1407
Copy link

Reproduction:

// update gradlew
./gradlew wrapper --gradle-version=7.2

// build test
cd test-project
../gradlew clean build

Build log:

To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

> Configure project :
Project :greeter.api => 'greeter.api' Java module
Project :greeter.javaexec => 'greeter.javaexec' Java module
Project :greeter.provider => 'greeter.provider' Java module
Project :greeter.provider.test => 'greeter.provider.test' Java module
Project :greeter.provider.testfixture => 'greeter.provider.testfixture' Java module
Project :greeter.runner => 'greeter.runner' Java module
Project :greeter.startscripts => 'greeter.startscripts' Java module

> Task :greeter.javaexec:compileJava
Skipped patching jsr250-api-1.0.jar into java.annotation
Skipped patching jsr305-3.0.2.jar into java.annotation

> Task :greeter.provider.test:compileJava
Skipped patching jsr305-3.0.2.jar into java.annotation
Skipped patching jsr250-api-1.0.jar into java.annotation

> Task :greeter.provider.testfixture:compileJava
Skipped patching jsr305-3.0.2.jar into java.annotation
Skipped patching jsr250-api-1.0.jar into java.annotation

> Task :greeter.runner:compileJava
Skipped patching jsr305-3.0.2.jar into java.annotation
Skipped patching jsr250-api-1.0.jar into java.annotation

> Task :greeter.startscripts:compileJava
Skipped patching jsr250-api-1.0.jar into java.annotation
Skipped patching jsr305-3.0.2.jar into java.annotation

> Task :greeter.provider.test:compileTestJava
Skipped patching jsr305-3.0.2.jar into java.annotation
Skipped patching jsr250-api-1.0.jar into java.annotation

> Task :greeter.provider.testfixture:compileTestJava
Skipped patching jsr305-3.0.2.jar into java.annotation
Skipped patching jsr250-api-1.0.jar into java.annotation

> Task :greeter.runner:startScripts FAILED
> Task :greeter.startscripts:startScripts FAILED

> Task :greeter.api:javadoc
C:\Users\ben\src\gradle-modules-plugin\test-project\greeter.api\src\main\java\examples\greeter\api\Greeter.java:3: warning: no comment
public interface Greeter {
       ^
C:\Users\ben\src\gradle-modules-plugin\test-project\greeter.api\src\main\java\examples\greeter\api\Greeter.java:4: warning: no comment
    String hello();
           ^
C:\Users\ben\src\gradle-modules-plugin\test-project\greeter.api\src\main\java\module-info.java:1: warning: no comment
module greeter.api {
^
3 warnings

> Task :greeter.javaexec:javadoc
Skipped patching jsr250-api-1.0.jar into java.annotation
Skipped patching jsr305-3.0.2.jar into java.annotation
C:\Users\ben\src\gradle-modules-plugin\test-project\greeter.javaexec\src\main\java\demo\Demo1.java:6: warning: no comment
public class Demo1 {
       ^
C:\Users\ben\src\gradle-modules-plugin\test-project\greeter.javaexec\src\main\java\demo\Demo2.java:6: warning: no comment
public class Demo2 {
       ^
C:\Users\ben\src\gradle-modules-plugin\test-project\greeter.javaexec\src\main\java\demo\Demo1.java:7: warning: no comment
    public static void main(String[] args) {
                       ^
C:\Users\ben\src\gradle-modules-plugin\test-project\greeter.javaexec\src\main\java\demo\Demo2.java:7: warning: no comment
    public static void main(String[] args) {
                       ^
C:\Users\ben\src\gradle-modules-plugin\test-project\greeter.javaexec\src\main\java\module-info.java:3: warning: no comment
module greeter.javaexec {
^
5 warnings

> Task :greeter.provider.testfixture:test

GreeterTest > testLocate() PASSED

> Task :greeter.provider.test:test

GreeterTest > testLocate() PASSED

> Task :greeter.provider:test

FriendlyTest > testGreeting() PASSED

ScriptingTest > testScripting() PASSED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':greeter.runner:startScripts'.
> Couldn't replace placeholder in C:\Users\ben\src\gradle-modules-plugin\test-project\greeter.runner\build\scripts\greeter.runner

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':greeter.startscripts:startScripts'.
> Couldn't replace placeholder in C:\Users\ben\src\gradle-modules-plugin\test-project\greeter.startscripts\build\scripts\demo

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 6s
35 actionable tasks: 35 executed
@siordache
Copy link
Collaborator

Fixed in release 1.8.8.

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

2 participants