pinpoint icon indicating copy to clipboard operation
pinpoint copied to clipboard

Gradle

Open feelform opened this issue 2 years ago • 0 comments

  • [x] Support Java 7 https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation https://docs.gradle.org/current/userguide/toolchains.html
tasks.compileJava {
    options.release.set(7)
}

java {
    toolchain {
        languageVersion.set(JavaLanguageVersion.of(7))
    }
}
  • [x] > Task :pinpoint-akka-http-plugin:compileJava FAILED
.m2/repository/com/typesafe/akka/akka-http-core_2.12/10.1.0-RC1/akka-http-core_2.12-10.1.0-RC1.jar(akka/http/javadsl/model/Uri.class): major version 52 is newer than 51, the highest major version supported by this compiler.

plugins/akka-http/src/main/java/com/navercorp/pinpoint/plugin/akka/http/HttpRequestAdaptor.java:32: error: cannot find symbol
import java.util.Optional;
  • [x] Fix pinpoint-agent Incompatible because this component declares a component compatible with Java 9 and the consumer needed a component compatible with Java 8 Understanding variant selection: https://docs.gradle.org/current/userguide/variant_model.html The Java Library Plugin: https://docs.gradle.org/current/userguide/java_library_plugin.html
* What went wrong:
Could not determine the dependencies of task ':pinpoint-agent:compileJava'.
> Could not resolve all task dependencies for configuration ':pinpoint-agent:compileClasspath'.
   > Could not resolve project :pinpoint-bootstrap-java9.
     Required by:
         project :pinpoint-agent
      > No matching variant of project :pinpoint-bootstrap-java9 was found. The consumer was configured to find an API of a library compatible with Java 8, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally but:
          - Variant 'apiElements' capability com.navercorp.pinpoint:pinpoint-bootstrap-java9:2.4.0-SNAPSHOT declares an API of a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 9 and the consumer needed a component compatible with Java 8
              - Other compatible attribute:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
          - Variant 'mainSourceElements' capability com.navercorp.pinpoint:pinpoint-bootstrap-java9:2.4.0-SNAPSHOT declares a component, and its dependencies declared externally:
              - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about its target Java version (required compatibility with Java 8)
                  - Doesn't say anything about its elements (required them preferably in the form of class files)
                  - Doesn't say anything about its usage (required an API)
          - Variant 'runtimeElements' capability com.navercorp.pinpoint:pinpoint-bootstrap-java9:2.4.0-SNAPSHOT declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 9 and the consumer needed a component compatible with Java 8
              - Other compatible attribute:
  • [x] property expansion project.version https://www.baeldung.com/spring-boot-auto-property-expansion
Does not support properties with dots (e.g. user.name). Gradle understands dots as object property delimiters
Filters all the resource files and not just a specific set of configuration files
Uses the default dollar-sign placeholders ${…} thus conflicting with the standard Spring placeholders
  • [x] io.spring.dependency-management plugins

plugin in precompiled script

  • pinpoint-java-conventions.gradle.kts
plugins {
    `java-library`
    `maven-publish`
    id("io.spring.dependency-management")
}


> Configure project :pinpoint-websphere-plugin
Evaluating project ':pinpoint-websphere-plugin' using build file '/Users/feelform/workspace/pinpoint/pinpoint/plugins/websphere/build.gradle.kts'.
Caching disabled for Kotlin DSL script compilation (Project/TopLevel/stage1) because:
  Build cache is disabled
Kotlin DSL script compilation (Project/TopLevel/stage1) is not up-to-date because:
  No history is available.
Applying dependency management to configuration 'annotationProcessor' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'api' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'apiElements' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'archives' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'compileClasspath' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'compileOnly' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'compileOnlyApi' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'default' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'implementation' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'mainSourceElements' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'runtimeClasspath' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'runtimeElements' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'runtimeOnly' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'testAnnotationProcessor' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'testCompileClasspath' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'testCompileOnly' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'testImplementation' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'testResultsElementsForTest' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'testRuntimeClasspath' in project 'pinpoint-websphere-plugin'
Applying dependency management to configuration 'testRuntimeOnly' in project 'pinpoint-websphere-plugin'
Caching disabled for Kotlin DSL accessors for project ':pinpoint-websphere-plugin' because:
  • buildSrc/build.gradle.kts
plugins {
    // Support convention plugins written in Kotlin. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
    `kotlin-dsl`
    `java-library`
    id("io.spring.dependency-management") version "1.0.11.RELEASE"
}


> Configure project :buildSrc
Evaluating project ':buildSrc' using build file '/Users/feelform/workspace/pinpoint/pinpoint/buildSrc/build.gradle.kts'.
Caching disabled for Kotlin DSL plugin accessors for classpath 'e5c6096a41cb78f91b453d8031d0fb84' because:
  Build cache is disabled
Skipping Kotlin DSL plugin accessors for classpath 'e5c6096a41cb78f91b453d8031d0fb84' as it is up-to-date.
Caching disabled for Kotlin DSL script compilation (Project/TopLevel/stage1) because:
  Build cache is disabled
Kotlin DSL script compilation (Project/TopLevel/stage1) is not up-to-date because:
  No history is available.
kotlin scripting plugin: created the scripting discovery configuration: kotlinScriptDef
kotlin scripting plugin: created the scripting discovery configuration: testKotlinScriptDef
file or directory '/Users/feelform/workspace/pinpoint/pinpoint/buildSrc/src/main/resources', not found
file or directory '/Users/feelform/workspace/pinpoint/pinpoint/buildSrc/src/main/java', not found
file or directory '/Users/feelform/workspace/pinpoint/pinpoint/buildSrc/src/main/groovy', not found
Applying dependency management to configuration 'annotationProcessor' in project 'buildSrc'
Applying dependency management to configuration 'api' in project 'buildSrc'
Applying dependency management to configuration 'apiDependenciesMetadata' in project 'buildSrc'
Applying dependency management to configuration 'apiElements' in project 'buildSrc'
Applying dependency management to configuration 'archives' in project 'buildSrc'
Applying dependency management to configuration 'compileClasspath' in project 'buildSrc'
Applying dependency management to configuration 'compileOnly' in project 'buildSrc'
Applying dependency management to configuration 'compileOnlyApi' in project 'buildSrc'
Applying dependency management to configuration 'compileOnlyDependenciesMetadata' in project 'buildSrc'
Applying dependency management to configuration 'default' in project 'buildSrc'
Applying dependency management to configuration 'embeddedKotlin' in project 'buildSrc'
Applying dependency management to configuration 'implementation' in project 'buildSrc'
Applying dependency management to configuration 'implementationDependenciesMetadata' in project 'buildSrc'
Applying dependency management to configuration 'intransitiveDependenciesMetadata' in project 'buildSrc'
Applying dependency management to configuration 'kotlinCompilerClasspath' in project 'buildSrc'
Applying dependency management to configuration 'kotlinCompilerPluginClasspath' in project 'buildSrc'
Applying dependency management to configuration 'kotlinCompilerPluginClasspathMain' in project 'buildSrc'
Applying dependency management to configuration 'kotlinCompilerPluginClasspathTest' in project 'buildSrc'
Applying dependency management to configuration 'kotlinKlibCommonizerClasspath' in project 'buildSrc'
Applying dependency management to configuration 'kotlinNativeCompilerPluginClasspath' in project 'buildSrc'
Applying dependency management to configuration 'kotlinScriptDef' in project 'buildSrc'
Applying dependency management to configuration 'kotlinScriptDefExtensions' in project 'buildSrc'
Applying dependency management to configuration 'mainSourceElements' in project 'buildSrc'
Applying dependency management to configuration 'runtimeClasspath' in project 'buildSrc'
Applying dependency management to configuration 'runtimeElements' in project 'buildSrc'
Applying dependency management to configuration 'runtimeOnly' in project 'buildSrc'
Applying dependency management to configuration 'runtimeOnlyDependenciesMetadata' in project 'buildSrc'
Applying dependency management to configuration 'sourceArtifacts' in project 'buildSrc'
Applying dependency management to configuration 'testAnnotationProcessor' in project 'buildSrc'
Applying dependency management to configuration 'testApi' in project 'buildSrc'
Applying dependency management to configuration 'testApiDependenciesMetadata' in project 'buildSrc'
Applying dependency management to configuration 'testCompileClasspath' in project 'buildSrc'
Applying dependency management to configuration 'testCompileOnly' in project 'buildSrc'
Applying dependency management to configuration 'testCompileOnlyDependenciesMetadata' in project 'buildSrc'
Applying dependency management to configuration 'testImplementation' in project 'buildSrc'
Applying dependency management to configuration 'testImplementationDependenciesMetadata' in project 'buildSrc'
Applying dependency management to configuration 'testIntransitiveDependenciesMetadata' in project 'buildSrc'
Applying dependency management to configuration 'testKotlinScriptDef' in project 'buildSrc'
Applying dependency management to configuration 'testKotlinScriptDefExtensions' in project 'buildSrc'
Applying dependency management to configuration 'testResultsElementsForTest' in project 'buildSrc'
Applying dependency management to configuration 'testRuntimeClasspath' in project 'buildSrc'
Applying dependency management to configuration 'testRuntimeOnly' in project 'buildSrc'
Applying dependency management to configuration 'testRuntimeOnlyDependenciesMetadata' in project 'buildSrc'
Caching disabled for Kotlin DSL accessors for project ':buildSrc' because:
  Build cache is disabled
Skipping Kotlin DSL accessors for project ':buildSrc' as it is up-to-date.
Caching disabled for Kotlin DSL script compilation (Project/TopLevel/stage2) because:
  Build cache is disabled
Kotlin DSL script compilation (Project/TopLevel/stage2) is not up-to-date because:
  No history is available.
Applying dependency management to configuration 'apiElements-published' in project 'buildSrc'
Applying dependency management to configuration 'runtimeElements-published' in project 'buildSrc'
Selected primary task 'build' from project :
:buildSrc:generateExternalPluginSpecBuilders (Thread[Execution worker for ':buildSrc',5,main]) started.


feelform avatar Mar 16 '22 11:03 feelform