mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-23 15:31:53 +08:00
build: upgrade project JDK 8 to 17
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
|||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 17
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@v4
|
uses: gradle/actions/setup-gradle@v4
|
||||||
- name: Unit Test with Gradle
|
- name: Unit Test with Gradle
|
||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Export Integration Test Summary
|
- name: Export Integration Test Summary
|
||||||
run: cat integration-test/build/test-results/report.md >> $GITHUB_STEP_SUMMARY
|
run: cat integration-test/build/test-results/report.md >> $GITHUB_STEP_SUMMARY
|
||||||
- name: Merge Jacoco
|
- name: Merge Jacoco
|
||||||
run: ./gradlew jacocoTestReport
|
run: ./gradlew :jacocoTestReport
|
||||||
- name: Generate JaCoCo Badge
|
- name: Generate JaCoCo Badge
|
||||||
uses: cicirello/jacoco-badge-generator@v2
|
uses: cicirello/jacoco-badge-generator@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
+7
-7
@@ -1,11 +1,11 @@
|
|||||||
plugins {
|
allprojects {
|
||||||
id 'java'
|
apply(plugin: 'java')
|
||||||
id 'idea'
|
apply(plugin: 'idea')
|
||||||
id 'jacoco'
|
apply(plugin: 'jacoco')
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
idea {
|
idea {
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id "java"
|
|
||||||
id 'idea'
|
|
||||||
id "jacoco"
|
|
||||||
id "io.freefair.lombok" version "8.11"
|
id "io.freefair.lombok" version "8.11"
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
java {
|
||||||
mavenCentral()
|
toolchain {
|
||||||
|
languageVersion = JavaLanguageVersion.of(17)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'com.reajason.javaweb.memsell'
|
group = 'com.reajason.javaweb.memsell'
|
||||||
@@ -52,4 +51,5 @@ dependencies {
|
|||||||
|
|
||||||
testImplementation platform('org.junit:junit-bom:5.11.3')
|
testImplementation platform('org.junit:junit-bom:5.11.3')
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter'
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
||||||
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||||
}
|
}
|
||||||
@@ -1,12 +1,11 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id "java"
|
|
||||||
id "jacoco"
|
|
||||||
id 'idea'
|
|
||||||
id "io.freefair.lombok" version "8.11"
|
id "io.freefair.lombok" version "8.11"
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
java {
|
||||||
mavenCentral()
|
toolchain {
|
||||||
|
languageVersion = JavaLanguageVersion.of(17)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'com.reajason.javaweb'
|
group = 'com.reajason.javaweb'
|
||||||
@@ -21,6 +20,7 @@ dependencies {
|
|||||||
testImplementation 'org.testcontainers:testcontainers:1.20.4'
|
testImplementation 'org.testcontainers:testcontainers:1.20.4'
|
||||||
testImplementation 'org.testcontainers:junit-jupiter:1.20.4'
|
testImplementation 'org.testcontainers:junit-jupiter:1.20.4'
|
||||||
testImplementation platform('org.junit:junit-bom:5.11.3')
|
testImplementation platform('org.junit:junit-bom:5.11.3')
|
||||||
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter'
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
||||||
testImplementation 'org.junit.platform:junit-platform-reporting:1.11.3'
|
testImplementation 'org.junit.platform:junit-platform-reporting:1.11.3'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,8 +5,12 @@ plugins {
|
|||||||
group = 'com.reajason.javaweb.vul'
|
group = 'com.reajason.javaweb.vul'
|
||||||
version = ''
|
version = ''
|
||||||
|
|
||||||
repositories {
|
java {
|
||||||
mavenCentral()
|
toolchain {
|
||||||
|
languageVersion = JavaLanguageVersion.of(8)
|
||||||
|
}
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
@@ -5,11 +5,10 @@ plugins {
|
|||||||
group = 'com.reajason.javaweb.vul'
|
group = 'com.reajason.javaweb.vul'
|
||||||
version = ''
|
version = ''
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
toolchain {
|
||||||
|
languageVersion = JavaLanguageVersion.of(8)
|
||||||
|
}
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_6
|
sourceCompatibility = JavaVersion.VERSION_1_6
|
||||||
targetCompatibility = JavaVersion.VERSION_1_6
|
targetCompatibility = JavaVersion.VERSION_1_6
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user