cryptimeleon / math

Library providing mathematical basics for (pairing-based) cryptography.
Apache License 2.0
10 stars 2 forks source link

./gradlew build requires colon #108

Closed this-kramer closed 3 years ago

this-kramer commented 3 years ago

Gradle build only work with colon ./gradlew :build. I am not sure if this is intended, i guess it is due to the android compatibiliy tests. Since it confused me (and possible others), maybe explain this in the readme or change it :)

paul@paul-T480:~/t2/math$ ./gradlew build

> Configure project :
Maven publication 'mavenJava' pom metadata warnings (silence with 'suppressPomMetadataWarningsFor(variant)'):
  - Variant testApiElements:
      - Declares capability org.cryptimeleon:math-tests:2.0.0-SNAPSHOT which cannot be mapped to Maven
  - Variant testRuntimeElements:
      - Declares capability org.cryptimeleon:math-tests:2.0.0-SNAPSHOT which cannot be mapped to Maven
These issues indicate information that is lost in the published 'pom' metadata file, which may be an issue if the published library is consumed by an old Gradle version or Apache Maven.
The 'module' metadata file, which is used by Gradle 6+ is not affected.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':android-test:compileReleaseJavaWithJavac'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/home/paul/t2/math/local.properties'.

* 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

BUILD FAILED in 594ms
paul@paul-T480:~/t2/math$ ./gradlew :build

> Configure project :
Maven publication 'mavenJava' pom metadata warnings (silence with 'suppressPomMetadataWarningsFor(variant)'):
  - Variant testApiElements:
      - Declares capability org.cryptimeleon:math-tests:2.0.0-SNAPSHOT which cannot be mapped to Maven
  - Variant testRuntimeElements:
      - Declares capability org.cryptimeleon:math-tests:2.0.0-SNAPSHOT which cannot be mapped to Maven
These issues indicate information that is lost in the published 'pom' metadata file, which may be an issue if the published library is consumed by an old Gradle version or Apache Maven.
The 'module' metadata file, which is used by Gradle 6+ is not affected.

BUILD SUCCESSFUL in 629ms
7 actionable tasks: 7 up-to-date
rheitjoh commented 3 years ago

Yeah, that is because the default build command executes build for all the project, so even for the android tests. :build only builds the root project.

rheitjoh commented 3 years ago

I added a DEVELOPER.md file with that information. Don't think it should be part of the readme since it only affects people that build the project, which should be only developers. Users should use the prebuilt release versions.