kieker-monitoring / kieker

Kieker's main repository
Apache License 2.0
70 stars 41 forks source link

[KIEKER-1383] Gradle target replaceHardCodedVersionNames not executed #2429

Closed rju closed 2 days ago

rju commented 3 days ago

JIRA Issue: KIEKER-1383 Gradle target replaceHardCodedVersionNames not executed Original Reporter: Andre van Hoorn


When changing the Kieker version in build.gradle and executing the distribute target, the target replaceHardCodedVersionNames of kieker-examples/build.gradle is not executed. Everything is fine after running replaceHardCodedVersionNames separately in a subsequent step. From the output below it seems that the target is executed too late ...

avhAndrè van Hoorn-ThinkPad-RSS:0:~/git_work/kieker <master>* $ git diff gradle.properties
diff --git a/gradle.properties b/gradle.properties
index 6d55f75..54af79b 100644
--- a/gradle.properties
+++ b/gradle.properties
 -1,6 +1,6 
 kiekerPackagenamebase = kieker
 kiekerName = Kieker Framework
-kiekerVersion = 1.13
+kiekerVersion = 1.13-SNAPSHOT
 kiekerCopyright = Kieker Project

 dirConfig = config
avhAndrè van Hoorn-ThinkPad-RSS:0:~/git_work/kieker <master>* $ ./gradlew clean distribute -x check -x test
JAR to delete: ArchivePublishArtifact kieker:jar:jar:
:clean
:kieker-analysis:clean
:kieker-checkstyle-extension:clean
:kieker-common:clean
:kieker-documentation:clean UP-TO-DATE
:kieker-examples:cleanStandaloneExamplesAnalysisKax
:kax-files:clean
:kieker-examples:cleanStandaloneExamplesAnalysisOpad
:opad-anomaly-detection:clean
:kieker-examples:cleanStandaloneExamplesAnalysisTraceAnalysis
:trace-analysis:clean
:kieker-examples:cleanStandaloneExamplesMonitoringAdaptive
:adaptive-monitoring:clean
:kieker-examples:cleanStandaloneExamplesMonitoringAspectJ
:probe-aspectj:clean
:kieker-examples:cleanStandaloneExamplesMonitoringJVM
:sampler-jvm:clean
:kieker-examples:cleanStandaloneExamplesMonitoringManual
:probe-manual:clean
:kieker-examples:cleanStandaloneExamplesMonitoringSigar
:sampler-sigar:clean
:kieker-examples:cleanStandaloneExamplesMonitoringSpring
:probe-spring:clean
:kieker-examples:cleanStandaloneExamplesMonitoringTimesource
:custom-timesource:clean
:kieker-examples:cleanStandaloneExamplesUserguideAppendixAMQP
:appendix-AMQP:clean
:kieker-examples:cleanStandaloneExamplesUserguideAppendixJMS
:appendix-JMS:clean
:kieker-examples:cleanStandaloneExamplesUserguideAppendixJavaEE
:JavaEEServletContainerExample:clean
:kieker-examples:cleanStandaloneExamplesUserguideAppendixSigar
:appendix-Sigar:clean
:kieker-examples:cleanStandaloneExamplesUserguideCh2App
:ch2--bookstore-application:clean
:kieker-examples:cleanStandaloneExamplesUserguideCh2Instr
:ch2--manual-instrumentation:clean
:kieker-examples:cleanStandaloneExamplesUserguideCh34
:ch3-4--custom-components:clean
:kieker-examples:cleanStandaloneExamplesUserguideCh5
:ch5--trace-monitoring-aspectj:clean
:kieker-examples:cleanStandaloneExamples
:kieker-examples:clean UP-TO-DATE
:kieker-monitoring:clean
:kieker-tools:clean
:kieker-documentation:userguide:clean UP-TO-DATE
:kieker-common:replaceHardCodedVersionNames
:kieker-common:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:kieker-common:processResources UP-TO-DATE
:kieker-common:classes
:kieker-common:jar
:kieker-analysis:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:kieker-analysis:processResources UP-TO-DATE
:kieker-analysis:classes
:kieker-analysis:jar
:kieker-analysis:assemble
:kieker-analysis:build
:kieker-common:assemble
:kieker-common:build
:kieker-monitoring:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:kieker-monitoring:processResources
:kieker-monitoring:classes
:kieker-monitoring:jar
:kieker-monitoring:assemble
:kieker-monitoring:build
:kieker-tools:replaceHardCodedVersionNames
:kieker-tools:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
:kieker-tools:processResources
:kieker-tools:classes
:kieker-tools:jar
:kieker-tools:assemble
:kieker-tools:build
:aspectJJar
:docs

[...]

834 warnings
:emfJar
:mainJar
:kieker-examples:copyLibsStandaloneExamplesAnalysisKax
:kieker-examples:buildStandaloneExamplesAnalysisKax
:kax-files:compileJava
:kax-files:processResources UP-TO-DATE
:kax-files:classes
:kax-files:jar
:kax-files:eclipseClasspath
:kax-files:eclipseJdt
:kieker-examples:copyLibsStandaloneExamplesAnalysisOpad
:kieker-examples:copyScriptsStandaloneExamplesAnalysisOpad UP-TO-DATE
:kieker-examples:buildStandaloneExamplesAnalysisOpad
:opad-anomaly-detection:compileJava
:opad-anomaly-detection:processResources UP-TO-DATE
:opad-anomaly-detection:classes
:opad-anomaly-detection:jar
:opad-anomaly-detection:eclipseClasspath
:opad-anomaly-detection:eclipseJdt
:kieker-examples:copyLibsStandaloneExamplesAnalysisTraceAnalysis
:kieker-examples:buildStandaloneExamplesAnalysisTraceAnalysis
:trace-analysis:compileJava
:trace-analysis:processResources UP-TO-DATE
:trace-analysis:classes
:trace-analysis:jar
:trace-analysis:eclipseClasspath
:trace-analysis:eclipseJdt
:kieker-examples:copyLibsStandaloneExamplesMonitoringAdaptive
:kieker-examples:buildStandaloneExamplesMonitoringAdaptive
:adaptive-monitoring:compileJava
:adaptive-monitoring:processResources UP-TO-DATE
:adaptive-monitoring:classes
:adaptive-monitoring:jar
:adaptive-monitoring:eclipseClasspath
:adaptive-monitoring:eclipseJdt
:kieker-examples:copyLibsStandaloneExamplesMonitoringAspectJ
:kieker-examples:buildStandaloneExamplesMonitoringAspectJ
:probe-aspectj:compileJava
:probe-aspectj:processResources UP-TO-DATE
:probe-aspectj:classes
:probe-aspectj:jar
:probe-aspectj:eclipseClasspath
:probe-aspectj:eclipseJdt
:kieker-examples:copyLibsStandaloneExamplesMonitoringJVM
:kieker-examples:buildStandaloneExamplesMonitoringJVM
:sampler-jvm:compileJava
:sampler-jvm:processResources UP-TO-DATE
:sampler-jvm:classes
:sampler-jvm:jar
:sampler-jvm:eclipseClasspath
:sampler-jvm:eclipseJdt
:kieker-examples:copyLibsStandaloneExamplesMonitoringManual
:kieker-examples:buildStandaloneExamplesMonitoringManual
:probe-manual:compileJava
:probe-manual:processResources UP-TO-DATE
:probe-manual:classes
:probe-manual:jar
:probe-manual:eclipseClasspath
:probe-manual:eclipseJdt
:kieker-examples:copyLibsStandaloneExamplesMonitoringSigar
:kieker-examples:buildStandaloneExamplesMonitoringSigar
:sampler-sigar:compileJava
:sampler-sigar:processResources UP-TO-DATE
:sampler-sigar:classes
:sampler-sigar:jar
:sampler-sigar:eclipseClasspath
:sampler-sigar:eclipseJdt
:kieker-examples:copyLibsStandaloneExamplesMonitoringSpring
:kieker-examples:buildStandaloneExamplesMonitoringSpring
:probe-spring:compileJava
:probe-spring:processResources
:probe-spring:classes
:probe-spring:jar
:probe-spring:eclipseClasspath
:probe-spring:eclipseJdt
:kieker-examples:copyLibsStandaloneExamplesMonitoringTimesource
:kieker-examples:buildStandaloneExamplesMonitoringTimesource
:custom-timesource:compileJava
/mnt/sda1/avh-data/kieker/kieker-examples/monitoring/custom-timesource/src/kieker/monitoring/timer/CustomTimeSource.java:22: error: package kieker.common.configuration does not exist
import kieker.common.configuration.Configuration;
                                  ^
/mnt/sda1/avh-data/kieker/kieker-examples/monitoring/custom-timesource/src/kieker/monitoring/timer/CustomTimeSource.java:23: error: cannot find symbol
import kieker.monitoring.timer.AbstractTimeSource;
                              ^
  symbol:   class AbstractTimeSource
  location: package kieker.monitoring.timer
/mnt/sda1/avh-data/kieker/kieker-examples/monitoring/custom-timesource/src/kieker/monitoring/timer/CustomTimeSource.java:25: error: cannot find symbol
public class CustomTimeSource extends AbstractTimeSource {
                                      ^
  symbol: class AbstractTimeSource
/mnt/sda1/avh-data/kieker/kieker-examples/monitoring/custom-timesource/src/kieker/monitoring/timer/CustomTimeSource.java:29: error: cannot find symbol
        public CustomTimeSource(final Configuration configuration) {
                                      ^
  symbol:   class Configuration
  location: class CustomTimeSource
/mnt/sda1/avh-data/kieker/kieker-examples/monitoring/custom-timesource/src/kieker/monitoring/timer/CustomTimeSource.java:33: error: method does not override or implement a method from a supertype
        Override
        ^
/mnt/sda1/avh-data/kieker/kieker-examples/monitoring/custom-timesource/src/kieker/monitoring/timer/CustomTimeSource.java:38: error: method does not override or implement a method from a supertype
        Override
        ^
/mnt/sda1/avh-data/kieker/kieker-examples/monitoring/custom-timesource/src/kieker/monitoring/timer/CustomTimeSource.java:43: error: method does not override or implement a method from a supertype
        Override
        ^
/mnt/sda1/avh-data/kieker/kieker-examples/monitoring/custom-timesource/src/kieker/monitoring/timer/CustomTimeSource.java:48: error: method does not override or implement a method from a supertype
        Override
        ^
8 errors
:custom-timesource:compileJava FAILED
:kieker-examples:buildStandaloneExamplesMonitoringTimesource FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

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

BUILD FAILED

Total time: 48.362 secs
avhAndrè van Hoorn-ThinkPad-RSS:0:~/git_work/kieker/kieker-examples <master>* $ gradle replaceHardCodedVersionNames
JAR to delete: ArchivePublishArtifact kieker:jar:jar:
:kieker-examples:replaceHardCodedVersionNames

BUILD SUCCESSFUL

Total time: 8.873 secs
avhAndrè van Hoorn-ThinkPad-RSS:0:~/git_work/kieker <master>* $ ./gradlew clean distribute -x check -x test
JAR to delete: ArchivePublishArtifact kieker:jar:jar:

...

:distributeBinaryTar
:distributeBinaryZip
:distributeSourceTar
:distributeSourceZip
:replaceHardCodedVersionNames
:distribute

BUILD SUCCESSFUL

Total time: 1 mins 42.659 secs
rju commented 2 days ago

author André van Hoorn -- Tue, 8 Aug 2017 22:44:56 +0200

Double-check

rju commented 2 days ago

author André van Hoorn -- Mon, 2 Oct 2017 20:56:14 +0200

Didn't notice problems related to this during the release creation for Kieker 1.13.

Potential problems will be revealed as part of KIEKER-1624 Done .