GradleCN / GradleSide

Gradle 示例大全
MIT License
209 stars 61 forks source link

Initialized native services #25

Open yanxiaochuan opened 4 years ago

yanxiaochuan commented 4 years ago

执行命令 -i 的时候 ./gradlew assemble --no-daemon -rerun-tasks -i

Initialized native services in: /home/logroot/.gradle/native To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.8.1/userguide/gradle_daemon.html. Starting process 'Gradle build daemon'. Working directory: /home/logroot/.gradle/daemon/4.8.1 Command: /data/public/jdk/java8/bin/java -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /home/logroot/.gradle/wrapper/dists/gradle-4.8.1-bin/e8p42vx1m7a3mz9ydmjagn6wn/gradle-4.8.1/lib/gradle-launcher-4.8.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.8.1 Successfully started process 'Gradle build daemon' An attempt to start the daemon took 1.939 secs. The client will now receive all logging from the daemon (pid: 9327). The daemon log file: /home/logroot/.gradle/daemon/4.8.1/daemon-9327.out.log Daemon will be stopped at the end of the build stopping after processing Using 16 worker leases. Starting Build Settings evaluated using settings file '/home/logroot/.jenkins/workspace/aao_develop/settings.gradle'. Projects loaded. Root project using build file '/home/logroot/.jenkins/workspace/aao_develop/build.gradle'. Included projects: [root project 'aao']

Configure project : Evaluating root project 'aao' using build file '/home/logroot/.jenkins/workspace/aao_develop/build.gradle'. Default docker.url set to unix:///var/run/docker.sock All projects evaluated. Selected primary task 'assemble' from project : Tasks to be executed: [task ':compileJava', task ':processResources', task ':classes', task ':war', task ':assemble'] :compileJava (Thread[Task worker for ':',5,main]) started.

想问下这段过程gradle在干嘛,发现这段时间还是蛮久的,在测试环境大概有10秒左右,如果可以优化,优化的空间在哪?

Task :compileJava