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

Gradle build refactoring and version upgrade (6 to 8) 🚀🚀 #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dejan2609
Copy link
Contributor

@dejan2609 dejan2609 commented Sep 29, 2024

Note: dependencies versions are not changed (i.e. only the build logic is improved/refactored).

details:

  • gradle version upgrade: 6.8.2 -->> 8.11.1
  • 'launch4j' plugin upgrade: 2.4.9 -->> 3.0.6
  • 'shadow' plugin is introduced (in order to replace 'fatJar' task and to simplify gradle build): https://github.com/GradleUp/shadow
  • dependencies configurations are changed (note that dependencies versions are left intact):
    • 'compile' is replaced with 'implementation'
    • 'testCompile' is replaced with 'testImplementation'
    • 'sourceCompatibility' is removed in favor of 'toolchain'
    • Java project compatibility version is bumped from 7 to 8 (note: Gradle build JDK required version is >=8, i.e. 8, 11, 17, 21, etc.)
    • checksum verification for Gradle distribution is added (using 'distributionSha256Sum' property in 'gradle-wrapper.properties')

related links:

details:
   * gradle version upgrade: 6.8.2 -->> 8.11.1
   * 'launch4j' plugin upgrade: 2.4.9 -->> 3.0.6
   * 'shadow' plugin is introduced (in order to replace 'fatJar' task and to simplify gradle build): https://github.com/GradleUp/shadow
   * dependencies configurations are changed (note that dependencies versions are left intact):
      ** 'compile' is replaced with 'implementation'
      ** 'testCompile' is replaced with 'testImplementation'
   * 'sourceCompatibility' removed in favor of 'toolchain'
   * Java project compatibility version is bumped from 7 to 8 (note: Gradle build JDK required version is >=8, i.e. 8, 11, 17, 21, etc.)
   * checksum verification for Gradle distribution is added (using 'distributionSha256Sum' property in 'gradle-wrapper.properties')

related links:
  * https://docs.gradle.org/8.11.1/userguide/upgrading_version_6.html#sec:configuration_removal
  * https://docs.gradle.org/8.11.1/userguide/upgrading_version_7.html#wrapper_task_configuration
  * https://docs.gradle.org/8.11.1/userguide/upgrading_version_8.html#java_convention_deprecation
  * https://docs.gradle.org/8.11.1/userguide/gradle_wrapper.html#configuring_checksum_verification
  * https://docs.gradle.org/8.11.1/userguide/toolchains.html
  * https://docs.gradle.org/8.11.1/dsl/org.gradle.api.plugins.JavaPluginExtension.html#org.gradle.api.plugins.JavaPluginExtension:toolchain
@dejan2609 dejan2609 force-pushed the Gradle-version-upgrade-6-to-8 branch from 89952a9 to 5e8a8b2 Compare November 29, 2024 08:39
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.

1 participant