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
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions.github/workflows/gradle.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,14 +14,14 @@ jobs:
runs-on:ubuntu-latest

steps:
-uses:actions/checkout@v3
-uses:actions/checkout@v4
with:
fetch-depth:0
-name:Set up JDK11
uses:actions/setup-java@v3
-name:Set up JDK17
uses:actions/setup-java@v4
with:
distribution:'temurin'
java-version:'11'
java-version:'17'
cache:'gradle'
-name:Build with Gradle
run:chmod +x gradlew && ./gradlew build
64 changes: 37 additions & 27 deletionsbuild.gradle
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,56 @@
apply plugin: 'java'
apply plugin: 'checkstyle'
plugins {
id 'java'
id 'checkstyle'
}

group = 'com.fishercoder'
version = '1.0-SNAPSHOT'

javadoc.options.encoding = 'UTF-8'
compileJava.options.encoding = 'UTF-8'

checkstyle {
//include ( '**/*.java')
configFile = file("${rootDir}/fishercoder_checkstyle.xml")
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

sourceSets {
main {
java {
srcDir 'src/fishercoder'
}
}
tasks.javadoc {
options.encoding = 'UTF-8'
}

description = """"""
tasks.compileJava {
options.encoding = 'UTF-8'
}

repositories {
mavenCentral()
maven { url "http://repo.maven.apache.org/maven2" }
}

dependencies {
compile 'com.google.code.gson:gson:2.8.0'
compile group:'org.apache.commons', name: 'commons-collections4', version: '4.0'
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.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3'

testCompile("org.assertj:assertj-core:3.11.1")
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
testCompileOnly 'org.projectlombok:lombok:1.18.12'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
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'
}

test {
useJUnitPlatform()
testing {
suites {
test {
useJUnitJupiter()
}
}
}

tasks.withType(Test).configureEach {
maxParallelForks = Runtime.runtime.availableProcessors()
}

checkstyle {
toolVersion = '6.17'
config = rootProject.resources.text.fromFile('fishercoder_checkstyle.xml')
}
Binary file modifiedgradle/wrapper/gradle-wrapper.jar
View file
Open in desktop
Binary file not shown.
4 changes: 3 additions & 1 deletiongradle/wrapper/gradle-wrapper.properties
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

[8]ページ先頭

©2009-2025 Movatter.jp