Skip to content

Commit b6ad629

Browse files
feat: bump vulnerable dependencies
bump coverage point jvmTarget to 11
1 parent c37121e commit b6ad629

13 files changed

Lines changed: 191 additions & 176 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ jobs:
1616
uses: mxenabled/path-tools/.github/workflows/ci.yml@master
1717
with:
1818
force: ${{ inputs.force != '' && inputs.force }}
19-
java-version: '8'
19+
java-version: '11'
2020
skip-dependency-checks: true

build.gradle

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
plugins {
2-
id "com.github.mxenabled.coppuccino" version "3.2.1"
2+
id "com.github.mxenabled.coppuccino" version "4.4.2"
33
id "groovy"
44
id "java"
55
id "maven-publish"
66
id "java-gradle-plugin"
7-
id "org.jetbrains.kotlin.jvm" version "1.6.10"
7+
id "org.jetbrains.kotlin.jvm" version "2.1.0"
88
}
99

1010
group "com.mx.vogue"
11-
version "1.0.3" // x-release-please-version
12-
sourceCompatibility = 1.8
11+
version "2.0.0-SNAPSHOT" // x-release-please-version
12+
sourceCompatibility = JavaVersion.VERSION_11
13+
targetCompatibility = JavaVersion.VERSION_11
1314

1415
repositories {
1516
mavenCentral()
@@ -19,22 +20,17 @@ repositories {
1920
}
2021

2122
dependencies {
22-
implementation "org.apache.bcel:bcel:[6.6.0,7.0[" // Security update
23-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
23+
implementation "org.apache.bcel:bcel:[6.11.0,7.0[" // Security update
24+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.1.0"
2425
implementation "com.google.code.gson:gson:[2.0,3.0["
25-
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.3"
26-
implementation "com.github.ben-manes.versions:com.github.ben-manes.versions.gradle.plugin:0.42.0"
27-
implementation "com.github.spotbugs:spotbugs-annotations:4.7.2" // For annotating classes and methods to suppress SpotBugs violations
26+
//FIXME this is pulling in snakeyaml 2.0, which is breaking higher libraries because we are not ready for it
27+
//upgrade to 2.15.0 after snakeyaml2
28+
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.3"
29+
implementation "com.github.ben-manes.versions:com.github.ben-manes.versions.gradle.plugin:0.53.0"
30+
implementation "com.github.spotbugs:spotbugs-annotations:4.9.8" // For annotating classes and methods to suppress SpotBugs violations
2831

29-
constraints {
30-
implementation ("com.thoughtworks.xstream:xstream:1.4.19") { because "It resolves a bajillion CVEs" }
31-
}
32-
33-
// Unit tests
34-
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:[5.8.0,5.9.0["
35-
testImplementation "org.junit.jupiter:junit-jupiter-api:[5.8.0,5.9.0["
36-
testImplementation "org.mockito:mockito-inline:[4.0,5.0["
37-
testImplementation "org.spockframework:spock-core:2.2-M1-groovy-3.0"
32+
api "org.mockito:mockito-inline:[4.0,5.0["
33+
api "org.spockframework:spock-core:2.4-M6-groovy-3.0"
3834
}
3935

4036
gradlePlugin {
@@ -52,31 +48,37 @@ gradlePlugin {
5248

5349
compileKotlin {
5450
kotlinOptions {
55-
jvmTarget = "1.8"
56-
} }
51+
jvmTarget = "11"
52+
}
53+
}
5754

5855
compileTestKotlin {
5956
kotlinOptions {
60-
jvmTarget = "1.8"
61-
} }
57+
jvmTarget = "11"
58+
}
59+
}
6260

6361
coppuccino {
6462
kotlin { enabled = true }
6563
coverage {
66-
minimumCoverage = 0.70
64+
minimumCoverage = 0.73
6765
excludes = [
6866
"com/mx/vogue/core/models/**"
6967
]
7068
}
7169
}
7270

7371
sourceSets {
74-
test { groovy { srcDirs "src/test/groovy" } }
72+
test {
73+
groovy {
74+
srcDirs "src/test/groovy"
75+
}
76+
}
7577
}
7678

7779
test { useJUnitPlatform() }
7880

7981
wrapper {
80-
gradleVersion = "7.4.1"
82+
gradleVersion = "7.6.3"
8183
distributionType = Wrapper.DistributionType.ALL
8284
}

gradle.lockfile

Lines changed: 126 additions & 129 deletions
Large diffs are not rendered by default.

gradle/wrapper/gradle-wrapper.jar

2.04 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

gradlew

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ pluginManagement {
77
}
88
}
99

10-
rootProject.name = "vogue"
10+
rootProject.name = "vogue"

src/main/kotlin/com/mx/vogue/VoguePlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import org.gradle.api.Project
3838
import org.gradle.api.logging.LogLevel
3939

4040
class VoguePlugin : Plugin<Project> {
41-
@Suppress("MaxLineLength")
41+
@Suppress("ktlint:standard:max-line-length")
4242
override fun apply(project: Project) {
4343
var dependenciesExtension = project.extensions.create("vogue", VogueDependenciesExtension::class.java)
4444

src/main/kotlin/com/mx/vogue/core/ReportRenderer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ private fun buildUpgradeMessages(dependencyContexts: List<DependencyContext>, bu
7979
}
8080
}
8181

82-
@Suppress("MaxLineLength")
82+
@Suppress("ktlint:standard:max-line-length")
8383
private fun buildWarningUpgradeMessage(dependencyContext: DependencyContext): String {
8484
return " - ${yellow(getPackage(dependencyContext.versionsPluginDependency))} [${green(dependencyContext.current.toString())} -> ${green(dependencyContext.latest.toString())}]\n"
8585
}
8686

87-
@Suppress("MaxLineLength")
87+
@Suppress("ktlint:standard:max-line-length")
8888
private fun buildErrorUpgradeMessage(dependencyContext: DependencyContext): String {
8989
return " - ${red(getPackage(dependencyContext.versionsPluginDependency))} [${green(dependencyContext.current.toString())} -> ${green(dependencyContext.latest.toString())}]\n"
9090
}

0 commit comments

Comments
 (0)