Closed elevenfive closed 1 year ago
Thanks for this contribution, @elevenfive! One of the Gradle tests is failing:
Gradle suite > Gradle test > org.jfrog.gradle.plugin.artifactory.GradlePluginTest.publicationsTestKotlinDsl0 FAILED org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /var/folders/dn/3smrq2yj2qddjccqlky47mpw0000gq/T/gradle_tests_space with arguments [clean, artifactoryPublish, --stacktrace]
Output:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'gradle_tests_space'.
> Could not open cache directory 55ogsh56r3ls2qvvelop96jkt (/private/var/folders/dn/3smrq2yj2qddjccqlky47mpw0000gq/T/.gradle-test-kit-yahavi/caches/4.10.3/gradle-kotlin-dsl-accessors/55ogsh56r3ls2qvvelop96jkt).
> org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).
Steps to reproduce:
./gradlew build-info-extractor-gradle:test
Would you consider taking a look?
Hi @yahavi, thank you for looking! I just updated my branch to resolve conflicts with main branch and also to pull new updates as applicable.
We can upgrade to Java 11, I'm not sure if the project is ready for that (builder env must have Java 11 of course), so I put notes for that regarding updating the Testng library
All tests that don't require network connection to the test instance pass for me, can you retest with the updates I posted?
Thanks @elevenfive,
publicationsTestKotlinDsl
failed again.
You can start an OSS server to run the Gradle tests. See https://github.com/jfrog/build-info#testing-on-artifactory-oss.
I don't know what is the root cause, but it looks like upgrading Gradle from 5 to 6 caused this issue. I'm not sure whether Gradle 4 with Kotlin is in use by somebody, maybe we can drop Gradle 4 support on the Gradle plugin and skip the test on Gradle 4 - @eyalbe4 WDYT?Thank you I will try to repro locally and see if there is a fix.
AFAICT Gradle 4 & 5 are both EOL, with 5 last receiving an update in 2019 and 4 last receiving an update in 2018; I would personally suggest dropping Gradle 4 support at a minimum.
Hi @elevenfive, We had a team conversation about it. Dropping Gradle 4's support requires a new major (5). We do have plans in the near future to separate the Gradle Artifactory plugin code from the build-info repository and release a new major. After the separation, it will be easier to make structural changes and dependency upgrades in the build-info repository. In the meanwhile, we prefer to use Gradle 5 to build this project.
Gotcha - I have reverted back to Gradle 5 and added a comment. Thanks for looking into it team!
[x] All tests passed. If this feature is not already covered by the tests, I added new tests.
Replacement for #653 with Gradle 6 instead of Gradle 7 cc @yahavi