Skip to content

Commit

Permalink
removed unused dependency objenesis
Browse files Browse the repository at this point in the history
- update of gradle version to new 8.4
  • Loading branch information
astrapi69 committed Oct 27, 2023
1 parent a08de8d commit c811dd7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 19 deletions.
15 changes: 7 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,24 @@ projectRepositoriesPasswordKey=ossrhPassword
###########################
# gradle-plugins versions #
###########################
gradlePluginLombokVersion=8.3
gradlePluginVersionsVersion=0.48.0
gradlePluginLombokVersion=8.4
gradlePluginVersionsVersion=0.49.0
licenseGradlePluginVersion=0.16.1
grgitGradlePluginVersion=5.2.0
spotlessGradlePluginVersion=6.21.0
grgitGradlePluginVersion=5.2.1
spotlessGradlePluginVersion=6.22.0
#########################
# dependencies versions #
#########################
lombokVersion=1.18.28
objenesisVersion=3.3
lombokVersion=1.18.30
commonsLang3Version=3.13.0
jobjCloneVersion=3.4
jdkSerializableFunctionalVersion=1.9.0
##############################
# test dependencies versions #
##############################
jobjCloneVersion=3.4
testngVersion=7.8.0
hamcrestAllVersion=1.3
testObjectVersion=7.2
testObjectVersion=8
##########################
# for deploy on sonatype #
##########################
Expand Down
1 change: 0 additions & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ dependencies {
compileOnly("org.projectlombok:lombok:$lombokVersion")
annotationProcessor("org.projectlombok:lombok:$lombokVersion")
implementation("org.apache.commons:commons-lang3:$commonsLang3Version")
implementation("org.objenesis:objenesis:$objenesisVersion")
implementation("org.danekja:jdk-serializable-functional:$jdkSerializableFunctionalVersion")
testImplementation("org.hamcrest:hamcrest-all:$hamcrestAllVersion")
testImplementation("io.github.astrapi69:test-object:$testObjectVersion")
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 @@
#Tue May 26 22:30:57 CEST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
*/
module model.data
{
requires lombok;
requires java.base;
requires java.desktop;
requires java.logging;
requires lombok;
requires org.apache.commons.lang3;
requires java.desktop;
requires org.objenesis;
requires org.danekja.jdk.serializable.functional;

exports io.github.astrapi69.model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ public class CachingMethodResolverTest
@Test
public void test() throws Exception
{
final Method method = getClass().getMethod("test");
final Serializable id = "";
final int[] count = new int[1];
Method method;
Serializable id;
int[] count;

method = getClass().getMethod("test");
id = "";
count = new int[1];

IMethodResolver resolver = new CachingMethodResolver(new IMethodResolver()
{
Expand Down Expand Up @@ -64,15 +68,12 @@ public Method getSetter(Method getter)
}
});

resolver.getId(method);
resolver.getId(method);
assertEquals(1, count[0]);

resolver.getMethod(getClass(), id);
resolver.getMethod(getClass(), id);
assertEquals(2, count[0]);

resolver.getSetter(method);
resolver.getSetter(method);
assertEquals(3, count[0]);
}
Expand Down

0 comments on commit c811dd7

Please sign in to comment.