Skip to content

Commit

Permalink
update of jdk to version 17
Browse files Browse the repository at this point in the history
- new class module-info.java that provides this library as a module
- update of gradle to new version 8.4-rc-1
- update of com.github.ben-manes.versions.gradle.plugin to new version 0.48.0
- update of gradle-plugin dependency of 'com.diffplug.spotless:spotless-plugin-gradle' in version 6.21.0
- update of test dependency equalsverifier to new version 3.15.1
- update of test dependency test-ng to new version 7.8.0
  • Loading branch information
astrapi69 committed Sep 22, 2023
1 parent 7221ea2 commit cf64739
Show file tree
Hide file tree
Showing 19 changed files with 57 additions and 24 deletions.
17 changes: 11 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
## Change log
----------------------

Version 9.1-SNAPSHOT
Version 10-SNAPSHOT
-------------

ADDED:

- new class module-info.java that provides this library as a module

CHANGED:

- update of gradle to new version 8.2.1
- update of com.github.ben-manes.versions.gradle.plugin to new version 0.47.0
- update of gradle-plugin dependency of 'com.diffplug.spotless:spotless-plugin-gradle' in version 6.20.0
- update of test dependency equalsverifier to new version 3.15
- update of jdk to version 17
- update of gradle to new version 8.4-rc-1
- update of com.github.ben-manes.versions.gradle.plugin to new version 0.48.0
- update of gradle-plugin dependency of 'com.diffplug.spotless:spotless-plugin-gradle' in version 6.21.0
- update of dependency jobj-core to new version 8
- update of test dependency equalsverifier to new version 3.15.1
- update of test dependency test-ng to new version 7.8.0


Version 9
-------------

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
######################
# project properties #
######################
projectVersion=9.1-SNAPSHOT
projectVersion=10-SNAPSHOT
groupPackage=io.github.astrapi69
projectSourceCompatibility=17
projectInceptionYear=2015
Expand Down Expand Up @@ -35,7 +35,7 @@ spotlessGradlePluginVersion=6.21.0
#########################
# dependencies versions #
#########################
jobjCoreVersion=7.1
jobjCoreVersion=8
jobjReflectVersion=1
sillyCollectionVersion=27
vintageTimeVersion=6
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 Jan 22 15:59:51 CET 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import io.github.astrapi69.date.CreateDateExtensions;
import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.SecureRandomFactory;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;
import io.github.astrapi69.random.number.RandomBooleanFactory;
import io.github.astrapi69.random.number.RandomIntFactory;
import io.github.astrapi69.random.number.RandomLongFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package io.github.astrapi69.random.enums;
package io.github.astrapi69.random.enumeration;

/**
* The enum {@link RandomAlgorithm} holds the algorithm for calculate random values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import java.util.Objects;

import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;

/**
* Utility class for producing random primitive boolean types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import java.util.Objects;

import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;

/**
* Utility class for producing random primitive byte types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import io.github.astrapi69.math.MathExtensions;
import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;

/**
* Utility class for producing random primitive double types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import io.github.astrapi69.math.MathExtensions;
import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.SecureRandomFactory;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;

/**
* Utility class for producing random primitive float types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import io.github.astrapi69.math.MathExtensions;
import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;

/**
* Utility class for producing random primitive int types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import io.github.astrapi69.math.MathExtensions;
import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.SecureRandomFactory;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;

/**
* Utility class for producing random primitive long types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.RandomCharacters;
import io.github.astrapi69.random.date.RandomDateFactory;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;
import io.github.astrapi69.random.number.RandomBigDecimalFactory;
import io.github.astrapi69.random.number.RandomBigIntegerFactory;
import io.github.astrapi69.random.number.RandomBooleanFactory;
Expand Down Expand Up @@ -160,6 +160,7 @@ public static <T> T newRandomObject(final Class<T> cls, String... ignoreFieldNam
* @throws ClassNotFoundException
* is thrown if the class cannot be located
*/
@SuppressWarnings("unchecked")
public static <T> T newRandomObject(final T obj, String... ignoreFieldNames)
throws IllegalAccessException, InstantiationException, NoSuchFieldException,
ClassNotFoundException
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/**
* The MIT License
*
* Copyright (C) 2015 Asterios Raptis
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
* NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
module randomizer.main
{
requires java.desktop;
Expand All @@ -7,4 +27,12 @@
requires jobj.copy.main;
requires silly.math;
requires vintage.time.main;

exports io.github.astrapi69.random;
exports io.github.astrapi69.random.address;
exports io.github.astrapi69.random.date;
exports io.github.astrapi69.random.enumeration;
exports io.github.astrapi69.random.number;
exports io.github.astrapi69.random.object;
exports io.github.astrapi69.random.util;
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

import io.github.astrapi69.math.MathExtensions;
import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;

/**
* The unit test class for the class {@link RandomDoubleFactory}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

import io.github.astrapi69.math.MathExtensions;
import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;

/**
* The unit test class for the class {@link RandomFloatFactory}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import io.github.astrapi69.collection.map.MapFactory;
import io.github.astrapi69.math.MathExtensions;
import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;

/**
* The unit test class for the class {@link RandomIntFactory}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

import io.github.astrapi69.math.MathExtensions;
import io.github.astrapi69.random.DefaultSecureRandom;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;

/**
* The unit test class for the class {@link RandomLongFactory}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import io.github.astrapi69.test.object.auth.AccessRight;
import io.github.astrapi69.test.object.auth.Role;
import io.github.astrapi69.test.object.auth.Roles;
import io.github.astrapi69.test.object.exception.ExceptionEvent;

/**
* The unit test class for the class {@link RandomObjectFactory}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

import io.github.astrapi69.collection.list.ListFactory;
import io.github.astrapi69.math.MathExtensions;
import io.github.astrapi69.random.enums.RandomAlgorithm;
import io.github.astrapi69.random.enumeration.RandomAlgorithm;
import io.github.astrapi69.test.object.Employee;
import io.github.astrapi69.test.object.EmployeeList;
import io.github.astrapi69.test.object.Person;
Expand Down

0 comments on commit cf64739

Please sign in to comment.