Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Migrated Build System to Gradle 8.9 and Java 17#186

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fishercoder1534 merged 4 commits intofishercoder1534:masterfromjscrdev:gradle_8_9
Aug 16, 2024
Merged

Migrated Build System to Gradle 8.9 and Java 17#186

fishercoder1534 merged 4 commits intofishercoder1534:masterfromjscrdev:gradle_8_9
Aug 16, 2024

Conversation

javadev
Copy link
Contributor

This is the new Gradle script, but it currently doesn't include Checkstyle.

@fishercoder1534
Copy link
Owner

Thanks for the effort, is it possible to add any basic checkStyle as well?

@javadev
Copy link
ContributorAuthor

I have example with checkstyle gradle plugin

plugins {    id 'java'    id 'checkstyle' // Apply the Checkstyle plugin}group = 'com.fishercoder'version = '1.0-SNAPSHOT'java {    toolchain {        languageVersion = JavaLanguageVersion.of(17)    }}tasks.javadoc {    options.encoding = 'UTF-8'}tasks.compileJava {    options.encoding = 'UTF-8'}repositories {    mavenCentral()}dependencies {    implementation 'com.google.code.gson:gson:2.10.1'    implementation 'org.apache.commons:commons-collections4:4.0'    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3'    testImplementation 'org.assertj:assertj-core:3.11.1'    compileOnly 'org.projectlombok:lombok:1.18.32'    annotationProcessor 'org.projectlombok:lombok:1.18.32'    testCompileOnly 'org.projectlombok:lombok:1.18.32'    testAnnotationProcessor 'org.projectlombok:lombok:1.18.32'}testing {    suites {        test {            useJUnitJupiter()        }    }}tasks.withType(Test).configureEach {    maxParallelForks = Runtime.runtime.availableProcessors()}// Configure Checkstylecheckstyle {    toolVersion = '10.12.0' // Set Checkstyle version    config = rootProject.resources.text.fromFile('config/checkstyle/checkstyle.xml') // Path to Checkstyle configuration file}tasks.checkstyleMain {    reports {        xml.required.set(false) // Disable XML report        html.required.set(true)  // Enable HTML report    }}tasks.checkstyleTest {    reports {        xml.required.set(false) // Disable XML report        html.required.set(true)  // Enable HTML report    }}

@javadev
Copy link
ContributorAuthor

Could you please let me know which checkstyle tool version is currently being used?

@javadev
Copy link
ContributorAuthor

I've added Checkstyle version 6.17.

@fishercoder1534fishercoder1534 merged commit29f7c04 intofishercoder1534:masterAug 16, 2024
1 check passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fishercoder1534fishercoder1534fishercoder1534 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@javadev@fishercoder1534

[8]ページ先頭

©2009-2025 Movatter.jp