Skip to content

fix: Gradle 9.x compatibility#38

Closed
FxRayHughes wants to merge 1 commit intoTabooLib:2.1.0from
FxRayHughes:fix/gradle-9-compat
Closed

fix: Gradle 9.x compatibility#38
FxRayHughes wants to merge 1 commit intoTabooLib:2.1.0from
FxRayHughes:fix/gradle-9-compat

Conversation

@FxRayHughes
Copy link
Copy Markdown

Summary

  • Update Gradle wrapper from 7.5 to 9.2.0
  • Remove explicit org.codehaus.groovy:groovy:3.0.11 dependency(Gradle 9 bundles Groovy 4,localGroovy() suffices)
  • Raise Java/Kotlin target from 1.8 to 21(Gradle 9 requires Java 17+)
  • Change @Input to @Internal for Project and TabooLibExtension in TabooLibMainTask(these types are not serializable as Gradle task inputs)

Test plan

  • ./gradlew jar builds successfully with Gradle 9.2.0
  • ./gradlew publishToMavenLocal publishes successfully
  • Applied plugin used in a downstream project(TabooCoreFirstPlugin)with Gradle 9.x, builds and runs correctly

- Update Gradle wrapper from 7.5 to 9.2.0
- Remove explicit Groovy 3.x dependency (Gradle 9 bundles Groovy 4, localGroovy() suffices)
- Raise Java/Kotlin target from 1.8 to 21 (Gradle 9 requires Java 17+)
- Change @input to @internal for Project and TabooLibExtension in TabooLibMainTask
  (these types are not serializable as task inputs)
@TheFloodDragon
Copy link
Copy Markdown
Contributor

Codex之前也是这么改的w
然后我给它改回去(Java8 Gradle7)了

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.

2 participants