Hi Vladimir,

Thanks to you quick response

What do you mean by " it might be better to add src/har-importer module
rather than put it into src/core"

I have try your first solution without success

I have this error
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':src:dist:populateLibs'.
> Could not resolve all task dependencies for configuration
':src:dist:runtimeClasspath'.
   > Could not find com.github.sdstoehr:har-reader:2.2.1.
     Searched in the following locations:
       -
https://repo.maven.apache.org/maven2/com/github/sdstoehr/har-reader/2.2.1/har-reader-2.2.1.pom
     If the artifact you are trying to retrieve can be found in the
repository but without metadata in 'Maven POM' format, you need to adjust
the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :src:dist > project :src:bom-thirdparty
   > Could not find com.github.sdstoehr:har-reader:2.2.1.
     Searched in the following locations:
       -
https://repo.maven.apache.org/maven2/com/github/sdstoehr/har-reader/2.2.1/har-reader-2.2.1.pom
     If the artifact you are trying to retrieve can be found in the
repository but without metadata in 'Maven POM' format, you need to adjust
the 'metadataSources { ... }' of the repository declaration.
     Required by:
         project :src:dist > project :src:core


I hev modified
implementation("com.github.sdstoehr:har-reader")
by
implementation("de.sstoehr:har-reader")

and
api("de.sstoehr:har-reader:2.2.1")

because in https://github.com/sdstoehr/har-reader he write

<dependency>
  <groupId>de.sstoehr</groupId>
  <artifactId>har-reader</artifactId>
  <version>2.2.1</version>
</dependency>

Now I have
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':src:dist:populateLibs'.
> Checksum/PGP violations detected on resolving configuration
:src:dist:runtimeClasspath
    No trusted PGP keys are configured for group de.sstoehr:
      de.sstoehr:har-reader:2.2.1
(pgp=[ffcd6605daa43db4290eca4898e2d057e0d58dc6], sha512=[computation
skipped])

  There might be more checksum violations, however, current configuration
specifies the build to fail on the first violation.
  You might use the following properties:
    * -PchecksumIgnore temporary disables checksum-dependency-plugin (e.g.
to try new dependencies)
    * -PchecksumUpdate updates checksum.xml and it will fail after the
first violation so you can review the diff
    * -PchecksumUpdateAll (insecure) updates checksum.xml with all the new
discovered checksums
    * -PchecksumFailOn=build_finish (insecure) It will postpone the failure
till the build finish
  It will collect all the violations, however untrusted code might be
executed (e.g. from a plugin)
  You can find updated checksum.xml file at
D:\src\build\checksum\checksum.xml.
  You might add -PchecksumUpdate to update root checksum.xml file.

DO I need to add a checksum?

Regards
Antonio


Le mar. 6 juin 2023 à 18:50, Vladimir Sitnikov <[email protected]>
a écrit :

> > I have added
> api("com.github.sdstoehr:har-reader:2.2.1")
> in src/bom-thirdparty/build.gradle.kts
>
> That’s right.
> You declare version in bom-thirdparty, and then you add a dependency
> without version.
> For instance, add implementation(“
> com.github.sdstoehr:har-reader”) to src/core/build.gradle.kts.
>
> However, you might need to depend on other modules (e.g. protocols:http),
> so it might be better to add src/har-importer module rather than put it
> into src/core
>
> I would suggest going with MenuCreator.
>
> Vladimir
> --
> Vladimir
>

Reply via email to