Skip to content

Commit

Permalink
update gradle to new version 8.3-rc-4
Browse files Browse the repository at this point in the history
- new method 'isAncestor' in interface ITree created that checks if a given tree node is an ancestor of this tree node
- new method 'isDescendant' in interface ITree created that checks if a given tree node is a descendant of this tree node
- new method 'move' in interface ITree created that moves a given tree node to the given new parent tree node
- update of gradle-plugin dependency 'lombok-plugin' to new minor version 8.2.2
- update of gradle-plugin dependency 'spotless-plugin-gradle' to new minor version 6.20.0
- update of test dependency junit-jupiter-* to new minor version 5.10.0
  • Loading branch information
astrapi69 committed Aug 16, 2023
1 parent eaaf3a0 commit cc53283
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 7 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
Version 1.4-SNAPSHOT
-------------

ADDED:

- new method 'isAncestor' in interface ITree created that checks if a given tree node is an ancestor of this tree node
- new method 'isDescendant' in interface ITree created that checks if a given tree node is a descendant of this tree node
- new method 'move' in interface ITree created that moves a given tree node to the given new parent tree node

CHANGED:

- update gradle to new version 8.3-rc-4
- update of gradle-plugin dependency 'lombok-plugin' to new minor version 8.2.2
- update of gradle-plugin dependency 'spotless-plugin-gradle' to new minor version 6.20.0
- update of test dependency junit-jupiter-* to new minor version 5.10.0

Version 1.3
-------------

Expand Down
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ apply from: "gradle/publishing.gradle"
apply from: "gradle/repositories.gradle"
apply from: "gradle/testing.gradle"

sourceCompatibility = "$projectSourceCompatibility" as Object
java {
sourceCompatibility = "$projectSourceCompatibility" as Object
}

tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ projectRepositoriesSnapshotsName=Sonatype Nexus Snapshots
###########################
# gradle-plugins versions #
###########################
gradlePluginLombokVersion=8.0.1
gradlePluginLombokVersion=8.2.2
gradlePluginVersionsVersion=0.47.0
licenseGradlePluginVersion=0.16.1
grgitGradlePluginVersion=5.2.0
spotlessGradlePluginVersion=6.19.0
spotlessGradlePluginVersion=6.20.0
#########################
# dependencies versions #
#########################
Expand All @@ -48,7 +48,7 @@ sillyIoVersion=2.2
throwableVersion=2.3
gradleMigrationDataVersion=1.3
meanbeanVersion=2.0.3
junitJupiterVersion=5.10.0-M1
junitJupiterVersion=5.10.0
##########################
# for deploy on sonatype #
##########################
Expand Down
4 changes: 3 additions & 1 deletion gradle/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ task sourcesJar(type: Jar) {
task javadocJar(type: Jar) {
from javadoc
archiveClassifier.set("javadoc")
javadoc.properties.failOnError = true
javadoc {
failOnError = false
}
}

javadoc {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Wed Feb 19 18:39:09 CET 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-rc-2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-rc-4-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
30 changes: 29 additions & 1 deletion src/main/java/io/github/astrapi69/tree/api/ITree.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,34 @@ public interface ITree<V, T> extends Serializable
*/
void setLeaf(boolean leaf);

/**
* Checks if this {@link ITree} is an ancestor {@link ITree} object
*
* @param treeNode
* the tree node to check
* @return true, if this {@link ITree} is an ancestor {@link ITree} object otherwise false
*/
boolean isAncestor(final T treeNode);

/**
* Checks if this {@link ITree} is a descendant {@link ITree} object
*
* @param treeNode
* the tree node to check
* @return true, if this {@link ITree} is a descendant {@link ITree} object otherwise false
*/
boolean isDescendant(final T treeNode);

/**
* Moves this {@link ITree} object to the new given parent {@link ITree} object
*
* @param newParentTreeNode
* the new parent tree node
* @return true, if this {@link ITree} object was moved to the new given parent {@link ITree}
* object otherwise false
*/
boolean move(final T newParentTreeNode);

/**
* Checks if this node is a node
*
Expand All @@ -226,7 +254,7 @@ public interface ITree<V, T> extends Serializable
/**
* Checks if this {@link ITree} is the root {@link ITree} object
*
* @return true, if this {@link ITree} is the root {@link ITree} object
* @return true, if this {@link ITree} is the root {@link ITree} object otherwise false
*/
boolean isRoot();

Expand Down

0 comments on commit cc53283

Please sign in to comment.