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