Skip to content

Commit

Permalink
Remove deprecated code for Micronaut Framework 5 and document breakin…
Browse files Browse the repository at this point in the history
…g changes. (#196)
  • Loading branch information
wetted authored Apr 1, 2024
1 parent 2b03a51 commit e9b2f66
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import io.micronaut.core.annotation.NonNull;
import io.micronaut.core.annotation.Nullable;
import io.micronaut.serde.annotation.Serdeable;

import jakarta.validation.constraints.NotBlank;

/**
Expand Down Expand Up @@ -53,14 +52,6 @@ public class Space {
@Nullable
private String displayName;

/**
* The type of a space.
* @deprecated Use {@link Space#singleUserBotDm} or {@link Space#spaceType} (developer preview) instead.
*/
@Deprecated
@Nullable
private Type type;

/**
* The type of space. Required when creating a space. Output only for other usage.
*/
Expand Down Expand Up @@ -141,23 +132,6 @@ public void setDisplayName(@Nullable String displayName) {
this.displayName = displayName;
}

/**
*
* @return The type of a space.
*/
@Nullable
public Type getType() {
return type;
}

/**
*
* @param type The type of a space.
*/
public void setType(@Nullable Type type) {
this.type = type;
}

/**
*
* @return The type of a space.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
projectVersion=1.1.0-SNAPSHOT
projectVersion=2.0.0-SNAPSHOT
projectGroup=io.micronaut.chatbots

title=Micronaut Chatbots
Expand Down
10 changes: 10 additions & 0 deletions src/main/docs/guide/breaks.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
This section documents breaking changes between Micronaut Chatbots versions:

=== Micronaut Chatbots 2.0.0

==== Deprecations

- The private class field `io.micronaut.chatbots.google.api.Space.type` deprecated previously has been removed.
As a consequence the corresponding accessor/mutator methods `getType()` and `setType(Type)` have also been removed,
even though they were not deprecated explicitly.
Use the accessor/mutator methods for `singleUserBotDm` or `spaceType` (developer preview) instead.
1 change: 1 addition & 0 deletions src/main/docs/guide/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ basecamp:
basecampGcp: Basecamp Chatbots as a Google Cloud Function
basecampAzure: Basecamp Chatbots as an Azure Function
basecampHttp: Basecamp Chatbots Controller
breaks: Breaking Changes
repository: Repository

0 comments on commit e9b2f66

Please sign in to comment.