Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Gradle and stuff #190

Merged
merged 13 commits into from
Jun 24, 2024
Merged

Bump Gradle and stuff #190

merged 13 commits into from
Jun 24, 2024

Conversation

dagguh
Copy link
Contributor

@dagguh dagguh commented Jun 13, 2024

Diff might be big, but commits should make sense.

@dagguh dagguh requested a review from a team as a code owner June 13, 2024 15:56
pczuj
pczuj previously approved these changes Jun 13, 2024
Copy link
Contributor

@pczuj pczuj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So much goodness. Respect that you care to make those fixes ⭐️

@dagguh
Copy link
Contributor Author

dagguh commented Jun 13, 2024

Thanks mate! I appreciate the reviews and responsiveness.

@dagguh
Copy link
Contributor Author

dagguh commented Jun 13, 2024

PS. pushed a YAML typo fix.

@dagguh dagguh enabled auto-merge (rebase) June 13, 2024 17:40
pczuj
pczuj previously approved these changes Jun 13, 2024
@dagguh
Copy link
Contributor Author

dagguh commented Jun 14, 2024

Bumped gradle-release detected illegal licenses and failed the build:

:verifyLicensing FAILED	
Illegal license found 'BSD License' in 'com.atlassian.performance:selenium-js:1.0.1'	
Illegal license found 'No license found' in 'net.jcip:jcip-annotations:1.0'	
Illegal license found 'BSD License' in 'com.atlassian.data:random-data:1.4.3'

Noice. Fixing...

mgrzaslewicz
mgrzaslewicz previously approved these changes Jun 14, 2024
dagguh added 12 commits June 24, 2024 10:04
Bump via `./gradlew wrapper`,
then bump the Gradle plugins,
then rewrite the locks,
then switch buildscans to develocity.
And rewrite locks.
Our `eachDependency.useVersion` is a hack.
And we accidentally overrode the Kotlin stdlib used by the compiler.

Maybe in the future we should consider an allowlist of configs to lock.

The compiler warning:
```
> Task :compileKotlin
Compilation with Kotlin compile daemon was not successful
java.lang.Exception: Parameter specified as non-null is null: method org.jetbrains.kotlin.incremental.CacheVersionsKt.customCacheVersionManager, parameter fileName
        at org.jetbrains.kotlin.daemon.common.CompileService$CallResult$Error.get(CompileService.kt:60)
        at org.jetbrains.kotlin.daemon.common.CompileService$CallResult$Error.get(CompileService.kt:59)
        at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemon(GradleKotlinCompilerWork.kt:192)
        at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.compileWithDaemonOrFallbackImpl(GradleKotlinCompilerWork.kt:132)
        at org.jetbrains.kotlin.compilerRunner.GradleKotlinCompilerWork.run(GradleKotlinCompilerWork.kt:100)
        at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runCompilerAsync(GradleKotlinCompilerRunner.kt:152)
        at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runCompilerAsync(GradleKotlinCompilerRunner.kt:147)
        at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runJvmCompilerAsync(GradleKotlinCompilerRunner.kt:87)
        at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompilerAsync$kotlin_gradle_plugin(Tasks.kt:409)
        at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompilerAsync$kotlin_gradle_plugin(Tasks.kt:319)
        at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.execute(Tasks.kt:276)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
        at org.gradle.api.internal.project.taskfactory.IncrementalTaskInputsTaskAction.doExecute(IncrementalTaskInputsTaskAction.java:47)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
...
Could not connect to kotlin daemon. Using fallback strategy.
```
Previous commit triggerred some compiler language level warnings.
And some bad memories. Bumping Kotlin is never a pleasant journey.
I'll harvest a bunch of fixes/workarounds worked out in aws-infrastructure and virtual-users.

atlassian-labs/aws-resources@e89d41e
Since we have Build Scans, they already offer detaild test output.
So we don't need to do anything special for CI.
Locally, you have HTML reports linked in the terminal
or live interactive logs in the IDE.
Most logic is expressed within the Gradle project.
Previously rewriting locks would include a FAIL for:
`kotlinKlibCommonizerClasspath`.
Fix:
```
> Task :verifyLicensing FAILED
Illegal license found 'BSD License' in 'com.atlassian.performance:selenium-js:1.0.1'
Illegal license found 'BSD License' in 'com.atlassian.data:random-data:1.4.3'
```
Fix:
```
> Task :verifyLicensing FAILED
Illegal license found 'No license found' in 'javax.activation:activation:1.1.1'
```
Also, centralize the workaround.
@dagguh dagguh requested a review from a team June 24, 2024 10:31
@dagguh
Copy link
Contributor Author

dagguh commented Jun 24, 2024

Rebased after #193

@dagguh dagguh merged commit 1d4fed9 into master Jun 24, 2024
3 checks passed
@dagguh dagguh deleted the bump-gradle-and-stuff branch June 24, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants