Skip to content

Commit

Permalink
Migrate from JSR 305 to JSpecify.
Browse files Browse the repository at this point in the history
  • Loading branch information
baron1405 committed Oct 26, 2024
1 parent 8606769 commit a9aa3b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 4 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ plugins {
alias(libs.plugins.versions)
}

version = ProjectVersion("1.0.1", BuildType.snapshot)
version = ProjectVersion("2.0.0", BuildType.snapshot)
group = "org.cthing"
description = "A Gradle plugin that generates a Java source file with constants for keys in properties files."

Expand All @@ -54,7 +54,9 @@ gradlePlugin {
}

dependencies {
implementation(libs.cthingAnnots)
implementation(libs.jspecify)

compileOnly(libs.cthingAnnots)

testImplementation(libs.assertJ)
testImplementation(libs.commonsIO)
Expand Down
7 changes: 4 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ junit = "5.11.2"
spotbugs = "4.8.6"

[plugins]
cthingVersioning = { id = "org.cthing.cthing-versioning", version = "1.0.1" }
dependencyAnalysis = { id = "com.autonomousapps.dependency-analysis", version = "2.2.0" }
cthingVersioning = { id = "org.cthing.cthing-versioning", version = "2.0.0" }
dependencyAnalysis = { id = "com.autonomousapps.dependency-analysis", version = "2.3.0" }
pluginPublish = { id = "com.gradle.plugin-publish", version = "1.3.0" }
spotbugs = { id = "com.github.spotbugs", version = "6.0.25" }
versions = { id = "com.github.ben-manes.versions", version = "0.51.0" }

[libraries]
assertJ = "org.assertj:assertj-core:3.26.3"
commonsIO = "commons-io:commons-io:2.17.0"
cthingAnnots = "org.cthing:cthing-annotations:1.0.0"
cthingAnnots = "org.cthing:cthing-annotations:2.0.0"
jspecify = "org.jspecify:jspecify:1.0.0"
junitApi = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit" }
junitEngine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit" }
junitLauncher = "org.junit.platform:junit-platform-launcher:1.11.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

@PackageNonnullByDefault
@NullMarked
package org.cthing.gradle.plugins.properties;

import org.cthing.annotations.PackageNonnullByDefault;
import org.jspecify.annotations.NullMarked;

0 comments on commit a9aa3b8

Please sign in to comment.