Skip to content

Emulate and deprecate generatedFilesBaseDir#636

Merged
ejona86 merged 8 commits into
google:masterfrom
ejona86:emulate-basedir
Jan 5, 2023
Merged

Emulate and deprecate generatedFilesBaseDir#636
ejona86 merged 8 commits into
google:masterfrom
ejona86:emulate-basedir

Conversation

@ejona86

@ejona86 ejona86 commented Nov 5, 2022

Copy link
Copy Markdown
Collaborator

Fixes #33 for users not changing generatedFilesBaseDir. Stop documenting generatedFilesBaseDir since it produces poor results, but keep it functional with its existing Copy semantics. Fixes #332

Fixes google#33 for users not changing generatedFilesBaseDir. Stop documenting
generatedFilesBaseDir since it produces poor results, but keep it
functional with its existing Copy semantics. Fixes google#332
Comment thread src/main/groovy/com/google/protobuf/gradle/ProtobufExtension.groovy Outdated
Comment thread src/main/groovy/com/google/protobuf/gradle/GenerateProtoTask.groovy Outdated
Can't reference project from action
I don't know how to make this trigger a warning, for either Groovy and
Kotlin. Both seem to ignore it.
This fixes `class java.lang.Object cannot be cast to class
com.google.protobuf.gradle.ProtobufPlugin` in "testProjectAndroid
succeeds with configuration cache". The configuration cache is somehow
confusing things, including defeating static typing. Redefining the
variable locally avoids the reference to ProtobufPlugin.
Comment thread src/main/groovy/com/google/protobuf/gradle/ProtobufExtension.groovy Outdated
@ejona86 ejona86 mentioned this pull request Jan 4, 2023
@ejona86
ejona86 requested a review from rougsig January 5, 2023 16:42
Comment thread src/main/groovy/com/google/protobuf/gradle/ProtobufExtension.groovy
Comment thread src/main/groovy/com/google/protobuf/gradle/ProtobufExtension.groovy
@ejona86
ejona86 merged commit 278f21b into google:master Jan 5, 2023
@ejona86
ejona86 deleted the emulate-basedir branch January 5, 2023 17:27
ikhoon added a commit to line/armeria that referenced this pull request Nov 19, 2025
Motivation:

Upgrading Gradle version to 9 is necessary to build and test Armeria on
Java 25.

References: 
- https://docs.gradle.org/current/userguide/compatibility.html
- [Migration guide for Gradle
9](https://docs.gradle.org/current/userguide/upgrading_major_version_9.html)

Modifications:

- Upgraded dependencies required for Gradle 9
  - Gradle 8.10.2 -> 9.2.0
  - JKube pluign 1.18.1 -> 1.18.2
  - Kotlin (plugin) 2.1.10 -> 2.2.21
  - Spring Boot (plugin) 3.5.4 -> 3.5.7
  - ktlint-gradle-plugin 13.0.0 -> 13.1.0
  - protobuf-gradle-plugin 0.8.19 -> 0.9.5
  - scalafmt-gradle-plugin 1.16.2 -> 1.21.5
- The plugin id has been migrated to `cz.augi.gradle.scalafmt` as the
original plugin is no longer maintained.
  - shadow-gradle-plugin 7.1.2 -> 8.3.9
- The plugin id has been migrated to
`com.gradleup.shadow:com.gradleup.shadow.gradle.plugin` as maintenance
is tranferred to Gradleup. GradleUp/shadow#908
- protbuf files are now generated to the default output directory
(`build/generated/sources/proto`).
- `generatedFilesBaseDir` is no longer supported since 0.9.2
google/protobuf-gradle-plugin#636
- Fixed all the warnings produced in Gradle 8.
- Removed `it/spring/boot2-tomcat8` tests:
  - Spring Boot no longer supports Tomcat 8.
  - Tests didn't run due to misconfigured configurations.
- Revived `it/thrift0.9.1` test which didn't run before because of
incorrect source location.


Result:

Armeria can now be built with Gradle 9
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.

Should deprecate usage of configuring generated file directory GenerateProtoTask should support incremental build and more thorough clean

3 participants