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 f88f177 commit 03b739b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {
alias(libs.plugins.versions)
}

val baseVersion = "1.0.1"
val baseVersion = "2.0.0"
val isSnapshot = true

val isCIServer = System.getenv("CTHING_CI") != null
Expand All @@ -39,7 +39,7 @@ java {
// This project is a dependency of all C Thing Software projects. Therefore, to avoid circular
// dependencies, it should not depend on any C Thing Software project.
dependencies {
api(libs.jsr305)
api(libs.jspecify)

testImplementation(libs.assertJ)
testImplementation(libs.equalsVerifier)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ versions = { id = "com.github.ben-manes.versions", version = "0.51.0" }
[libraries]
assertJ = "org.assertj:assertj-core:3.26.3"
equalsVerifier = "nl.jqno.equalsverifier:equalsverifier:3.17.1"
jsr305 = "com.google.code.findbugs:jsr305:3.0.2"
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 @@ -15,7 +15,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.annotation.Nullable;
import org.jspecify.annotations.Nullable;


/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/cthing/projectversion/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Provides a version object for C Thing Software projects.
*/
@ParametersAreNonnullByDefault
@NullMarked
package org.cthing.projectversion;

import javax.annotation.ParametersAreNonnullByDefault;
import org.jspecify.annotations.NullMarked;

0 comments on commit 03b739b

Please sign in to comment.